naftiko: 1.0.0-alpha2 info: label: PolyAPI Platform API — API Functions description: 'PolyAPI Platform API — API Functions. 6 operations. Lead operation: PolyAPI List API functions. Self-contained Naftiko capability covering one Polyapi business surface.' tags: - Polyapi - API Functions created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: POLYAPI_API_KEY: POLYAPI_API_KEY capability: consumes: - type: http namespace: platform-api-functions baseUri: https://na1.polyapi.io description: PolyAPI Platform API — API Functions business capability. Self-contained, no shared references. resources: - name: functions-api path: /functions/api operations: - name: listapifunctions method: GET description: PolyAPI List API functions outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createapifunction method: POST description: PolyAPI Create an API function outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: functions-api-functionId path: /functions/api/{functionId} operations: - name: getapifunction method: GET description: PolyAPI Get an API function outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updateapifunction method: PATCH description: PolyAPI Update an API function outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deleteapifunction method: DELETE description: PolyAPI Delete an API function outputRawFormat: json outputParameters: - name: result type: object value: $. - name: functions-api-functionId-execute path: /functions/api/{functionId}/execute operations: - name: executeapifunction method: POST description: PolyAPI Execute an API function outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.POLYAPI_API_KEY}}' exposes: - type: rest namespace: platform-api-functions-rest port: 8080 description: REST adapter for PolyAPI Platform API — API Functions. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/functions/api name: functions-api description: REST surface for functions-api. operations: - method: GET name: listapifunctions description: PolyAPI List API functions call: platform-api-functions.listapifunctions outputParameters: - type: object mapping: $. - method: POST name: createapifunction description: PolyAPI Create an API function call: platform-api-functions.createapifunction with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/functions/api/{functionid} name: functions-api-functionid description: REST surface for functions-api-functionId. operations: - method: GET name: getapifunction description: PolyAPI Get an API function call: platform-api-functions.getapifunction outputParameters: - type: object mapping: $. - method: PATCH name: updateapifunction description: PolyAPI Update an API function call: platform-api-functions.updateapifunction with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteapifunction description: PolyAPI Delete an API function call: platform-api-functions.deleteapifunction outputParameters: - type: object mapping: $. - path: /v1/functions/api/{functionid}/execute name: functions-api-functionid-execute description: REST surface for functions-api-functionId-execute. operations: - method: POST name: executeapifunction description: PolyAPI Execute an API function call: platform-api-functions.executeapifunction with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: platform-api-functions-mcp port: 9090 transport: http description: MCP adapter for PolyAPI Platform API — API Functions. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: polyapi-list-api-functions description: PolyAPI List API functions hints: readOnly: true destructive: false idempotent: true call: platform-api-functions.listapifunctions outputParameters: - type: object mapping: $. - name: polyapi-create-api-function description: PolyAPI Create an API function hints: readOnly: false destructive: false idempotent: false call: platform-api-functions.createapifunction with: body: tools.body outputParameters: - type: object mapping: $. - name: polyapi-get-api-function description: PolyAPI Get an API function hints: readOnly: true destructive: false idempotent: true call: platform-api-functions.getapifunction outputParameters: - type: object mapping: $. - name: polyapi-update-api-function description: PolyAPI Update an API function hints: readOnly: false destructive: false idempotent: true call: platform-api-functions.updateapifunction with: body: tools.body outputParameters: - type: object mapping: $. - name: polyapi-delete-api-function description: PolyAPI Delete an API function hints: readOnly: false destructive: true idempotent: true call: platform-api-functions.deleteapifunction outputParameters: - type: object mapping: $. - name: polyapi-execute-api-function description: PolyAPI Execute an API function hints: readOnly: false destructive: false idempotent: false call: platform-api-functions.executeapifunction with: body: tools.body outputParameters: - type: object mapping: $.