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