naftiko: 1.0.0-alpha2 info: label: APIContext Platform API — API Calls description: 'APIContext Platform API — API Calls. 6 operations. Lead operation: List API calls. Self-contained Naftiko capability covering one business surface.' tags: - APIContext - API Calls created: '2026-05-20' modified: '2026-05-20' binds: - namespace: env keys: APICONTEXT_API_KEY: APICONTEXT_API_KEY capability: consumes: - type: http namespace: platform-api-calls baseUri: https://client.apimetrics.io/api/2 description: APIContext Platform API — API Calls business capability. Self-contained, no shared references. resources: - name: calls path: /calls/ operations: - name: listapicalls method: GET description: List API calls outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: [] - name: createapicall method: POST description: Create an API call outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: calls-call-id path: /calls/{call_id} operations: - name: getapicall method: GET description: Get an API call outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: call_id in: path type: string description: API call id. required: true - name: updateapicall method: PUT description: Update an API call outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: call_id in: path type: string description: path parameter call_id. required: true - name: body in: body type: object description: Request body (JSON). required: true - name: deleteapicall method: DELETE description: Delete an API call outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: call_id in: path type: string description: path parameter call_id. required: true - name: calls-call-id-run path: /calls/{call_id}/run operations: - name: runapicall method: POST description: Trigger an API call outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: call_id in: path type: string description: path parameter call_id. required: true - name: body in: body type: object description: Request body (JSON). required: true exposes: - type: rest namespace: platform-api-calls-rest port: 8080 description: REST adapter for APIContext Platform API — API Calls. One resource per consumed operation, prefixed with /v1. resources: - path: /v1/calls/ name: calls description: REST surface for calls. operations: - method: GET name: listapicalls description: List API calls call: platform-api-calls.listapicalls with: {} outputParameters: - type: object mapping: $. - method: POST name: createapicall description: Create an API call call: platform-api-calls.createapicall with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/calls/{call_id} name: calls-call-id description: REST surface for calls-call-id. operations: - method: GET name: getapicall description: Get an API call call: platform-api-calls.getapicall with: call_id: rest.call_id outputParameters: - type: object mapping: $. - method: PUT name: updateapicall description: Update an API call call: platform-api-calls.updateapicall with: call_id: rest.call_id body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteapicall description: Delete an API call call: platform-api-calls.deleteapicall with: call_id: rest.call_id outputParameters: - type: object mapping: $. - path: /v1/calls/{call_id}/run name: calls-call-id-run description: REST surface for calls-call-id-run. operations: - method: POST name: runapicall description: Trigger an API call call: platform-api-calls.runapicall with: call_id: rest.call_id body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: platform-api-calls-mcp port: 9090 transport: http description: MCP adapter for APIContext Platform API — API Calls. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: apicontext-listapicalls description: List API calls hints: readOnly: true destructive: false idempotent: true call: platform-api-calls.listapicalls with: {} outputParameters: - type: object mapping: $. - name: apicontext-createapicall description: Create an API call hints: readOnly: false destructive: false idempotent: false call: platform-api-calls.createapicall with: body: tools.body outputParameters: - type: object mapping: $. - name: apicontext-getapicall description: Get an API call hints: readOnly: true destructive: false idempotent: true call: platform-api-calls.getapicall with: call_id: tools.call_id outputParameters: - type: object mapping: $. - name: apicontext-updateapicall description: Update an API call hints: readOnly: false destructive: false idempotent: true call: platform-api-calls.updateapicall with: call_id: tools.call_id body: tools.body outputParameters: - type: object mapping: $. - name: apicontext-deleteapicall description: Delete an API call hints: readOnly: false destructive: true idempotent: true call: platform-api-calls.deleteapicall with: call_id: tools.call_id outputParameters: - type: object mapping: $. - name: apicontext-runapicall description: Trigger an API call hints: readOnly: false destructive: false idempotent: false call: platform-api-calls.runapicall with: call_id: tools.call_id body: tools.body outputParameters: - type: object mapping: $.