Commvault · Capability

Commvault REST API — Plans

Commvault REST API — Plans. 5 operations. Lead operation: Commvault List server plans. Self-contained Naftiko capability covering one Commvault business surface.

Run with Naftiko CommvaultPlans

What You Can Do

GET
Listplans — Commvault List server plans
/v1/v4/serverplan
POST
Createplan — Commvault Create a server plan
/v1/v4/serverplan
GET
Getplan — Commvault Get server plan details
/v1/v4/serverplan/{planid}
PUT
Updateplan — Commvault Update a server plan
/v1/v4/serverplan/{planid}
DELETE
Deleteplan — Commvault Delete a server plan
/v1/v4/serverplan/{planid}

MCP Tools

commvault-list-server-plans

Commvault List server plans

read-only idempotent
commvault-create-server-plan

Commvault Create a server plan

commvault-get-server-plan-details

Commvault Get server plan details

read-only idempotent
commvault-update-server-plan

Commvault Update a server plan

idempotent
commvault-delete-server-plan

Commvault Delete a server plan

idempotent

Capability Spec

rest-plans.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Commvault REST API — Plans
  description: 'Commvault REST API — Plans. 5 operations. Lead operation: Commvault List server plans. Self-contained Naftiko
    capability covering one Commvault business surface.'
  tags:
  - Commvault
  - Plans
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    COMMVAULT_API_KEY: COMMVAULT_API_KEY
capability:
  consumes:
  - type: http
    namespace: rest-plans
    baseUri: https://{webserver}/webconsole/api
    description: Commvault REST API — Plans business capability. Self-contained, no shared references.
    resources:
    - name: V4-ServerPlan
      path: /V4/ServerPlan
      operations:
      - name: listplans
        method: GET
        description: Commvault List server plans
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createplan
        method: POST
        description: Commvault Create a server plan
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: V4-ServerPlan-planId
      path: /V4/ServerPlan/{planId}
      operations:
      - name: getplan
        method: GET
        description: Commvault Get server plan details
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateplan
        method: PUT
        description: Commvault Update a server plan
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteplan
        method: DELETE
        description: Commvault Delete a server plan
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: Authtoken
      value: '{{env.COMMVAULT_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: rest-plans-rest
    port: 8080
    description: REST adapter for Commvault REST API — Plans. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/v4/serverplan
      name: v4-serverplan
      description: REST surface for V4-ServerPlan.
      operations:
      - method: GET
        name: listplans
        description: Commvault List server plans
        call: rest-plans.listplans
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createplan
        description: Commvault Create a server plan
        call: rest-plans.createplan
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v4/serverplan/{planid}
      name: v4-serverplan-planid
      description: REST surface for V4-ServerPlan-planId.
      operations:
      - method: GET
        name: getplan
        description: Commvault Get server plan details
        call: rest-plans.getplan
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateplan
        description: Commvault Update a server plan
        call: rest-plans.updateplan
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteplan
        description: Commvault Delete a server plan
        call: rest-plans.deleteplan
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: rest-plans-mcp
    port: 9090
    transport: http
    description: MCP adapter for Commvault REST API — Plans. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: commvault-list-server-plans
      description: Commvault List server plans
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-plans.listplans
      outputParameters:
      - type: object
        mapping: $.
    - name: commvault-create-server-plan
      description: Commvault Create a server plan
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: rest-plans.createplan
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: commvault-get-server-plan-details
      description: Commvault Get server plan details
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-plans.getplan
      outputParameters:
      - type: object
        mapping: $.
    - name: commvault-update-server-plan
      description: Commvault Update a server plan
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: rest-plans.updateplan
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: commvault-delete-server-plan
      description: Commvault Delete a server plan
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: rest-plans.deleteplan
      outputParameters:
      - type: object
        mapping: $.