naftiko: 1.0.0-alpha2 info: label: Cloudflare Workers API — Routes description: 'Cloudflare Workers API — Routes. 5 operations. Lead operation: Cloudflare List Worker Routes. Self-contained Naftiko capability covering one Cloudflare business surface.' tags: - Cloudflare - Routes created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: CLOUDFLARE_API_KEY: CLOUDFLARE_API_KEY capability: consumes: - type: http namespace: workers-routes baseUri: https://api.cloudflare.com/client/v4 description: Cloudflare Workers API — Routes business capability. Self-contained, no shared references. resources: - name: zones-zone_id-workers-routes path: /zones/{zone_id}/workers/routes operations: - name: listroutes method: GET description: Cloudflare List Worker Routes outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createroute method: POST description: Cloudflare Create Worker Route outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: zones-zone_id-workers-routes-route_id path: /zones/{zone_id}/workers/routes/{route_id} operations: - name: getroute method: GET description: Cloudflare Get Worker Route outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updateroute method: PUT description: Cloudflare Update Worker Route outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deleteroute method: DELETE description: Cloudflare Delete Worker Route outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.CLOUDFLARE_API_KEY}}' exposes: - type: rest namespace: workers-routes-rest port: 8080 description: REST adapter for Cloudflare Workers API — Routes. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/zones/{zone-id}/workers/routes name: zones-zone-id-workers-routes description: REST surface for zones-zone_id-workers-routes. operations: - method: GET name: listroutes description: Cloudflare List Worker Routes call: workers-routes.listroutes outputParameters: - type: object mapping: $. - method: POST name: createroute description: Cloudflare Create Worker Route call: workers-routes.createroute with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/zones/{zone-id}/workers/routes/{route-id} name: zones-zone-id-workers-routes-route-id description: REST surface for zones-zone_id-workers-routes-route_id. operations: - method: GET name: getroute description: Cloudflare Get Worker Route call: workers-routes.getroute outputParameters: - type: object mapping: $. - method: PUT name: updateroute description: Cloudflare Update Worker Route call: workers-routes.updateroute with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteroute description: Cloudflare Delete Worker Route call: workers-routes.deleteroute outputParameters: - type: object mapping: $. - type: mcp namespace: workers-routes-mcp port: 9090 transport: http description: MCP adapter for Cloudflare Workers API — Routes. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: cloudflare-list-worker-routes description: Cloudflare List Worker Routes hints: readOnly: true destructive: false idempotent: true call: workers-routes.listroutes outputParameters: - type: object mapping: $. - name: cloudflare-create-worker-route description: Cloudflare Create Worker Route hints: readOnly: false destructive: false idempotent: false call: workers-routes.createroute with: body: tools.body outputParameters: - type: object mapping: $. - name: cloudflare-get-worker-route description: Cloudflare Get Worker Route hints: readOnly: true destructive: false idempotent: true call: workers-routes.getroute outputParameters: - type: object mapping: $. - name: cloudflare-update-worker-route description: Cloudflare Update Worker Route hints: readOnly: false destructive: false idempotent: true call: workers-routes.updateroute with: body: tools.body outputParameters: - type: object mapping: $. - name: cloudflare-delete-worker-route description: Cloudflare Delete Worker Route hints: readOnly: false destructive: true idempotent: true call: workers-routes.deleteroute outputParameters: - type: object mapping: $.