naftiko: 1.0.0-alpha2 info: label: Commvault REST API — Subclients description: 'Commvault REST API — Subclients. 2 operations. Lead operation: Commvault List subclients. Self-contained Naftiko capability covering one Commvault business surface.' tags: - Commvault - Subclients created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: COMMVAULT_API_KEY: COMMVAULT_API_KEY capability: consumes: - type: http namespace: rest-subclients baseUri: https://{webserver}/webconsole/api description: Commvault REST API — Subclients business capability. Self-contained, no shared references. resources: - name: Subclient path: /Subclient operations: - name: listsubclients method: GET description: Commvault List subclients outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: clientId in: query type: integer description: Client ID required: true - name: applicationId in: query type: integer description: Application/agent type ID - name: Subclient-subclientId path: /Subclient/{subclientId} operations: - name: getsubclient method: GET description: Commvault Get subclient details 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-subclients-rest port: 8080 description: REST adapter for Commvault REST API — Subclients. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/subclient name: subclient description: REST surface for Subclient. operations: - method: GET name: listsubclients description: Commvault List subclients call: rest-subclients.listsubclients with: clientId: rest.clientId applicationId: rest.applicationId outputParameters: - type: object mapping: $. - path: /v1/subclient/{subclientid} name: subclient-subclientid description: REST surface for Subclient-subclientId. operations: - method: GET name: getsubclient description: Commvault Get subclient details call: rest-subclients.getsubclient outputParameters: - type: object mapping: $. - type: mcp namespace: rest-subclients-mcp port: 9090 transport: http description: MCP adapter for Commvault REST API — Subclients. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: commvault-list-subclients description: Commvault List subclients hints: readOnly: true destructive: false idempotent: true call: rest-subclients.listsubclients with: clientId: tools.clientId applicationId: tools.applicationId outputParameters: - type: object mapping: $. - name: commvault-get-subclient-details description: Commvault Get subclient details hints: readOnly: true destructive: false idempotent: true call: rest-subclients.getsubclient outputParameters: - type: object mapping: $.