naftiko: 1.0.0-alpha2 info: label: Twilio - Routes — PhoneNumbers description: 'Twilio - Routes — PhoneNumbers. 2 operations. Lead operation: PhoneNumbers. Self-contained Naftiko capability covering one Twilio business surface.' tags: - Twilio - PhoneNumbers created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: TWILIO_API_KEY: TWILIO_API_KEY capability: consumes: - type: http namespace: routes-phonenumbers baseUri: https://routes.twilio.com description: Twilio - Routes — PhoneNumbers business capability. Self-contained, no shared references. resources: - name: v2-PhoneNumbers-PhoneNumber path: /v2/PhoneNumbers/{PhoneNumber} operations: - name: updatephonenumber method: POST description: Assign an Inbound Processing Region to a phone number. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: PhoneNumber in: path type: string description: The phone number in E.164 format required: true - name: body in: body type: object description: Request body (JSON). required: false - name: fetchphonenumber method: GET description: Fetch the Inbound Processing Region assigned to a phone number. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: PhoneNumber in: path type: string description: The phone number in E.164 format required: true authentication: type: basic username: '{{env.TWILIO_USER}}' password: '{{env.TWILIO_PASS}}' exposes: - type: rest namespace: routes-phonenumbers-rest port: 8080 description: REST adapter for Twilio - Routes — PhoneNumbers. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v2/phonenumbers/{phonenumber} name: v2-phonenumbers-phonenumber description: REST surface for v2-PhoneNumbers-PhoneNumber. operations: - method: POST name: updatephonenumber description: Assign an Inbound Processing Region to a phone number. call: routes-phonenumbers.updatephonenumber with: PhoneNumber: rest.PhoneNumber body: rest.body outputParameters: - type: object mapping: $. - method: GET name: fetchphonenumber description: Fetch the Inbound Processing Region assigned to a phone number. call: routes-phonenumbers.fetchphonenumber with: PhoneNumber: rest.PhoneNumber outputParameters: - type: object mapping: $. - type: mcp namespace: routes-phonenumbers-mcp port: 9090 transport: http description: MCP adapter for Twilio - Routes — PhoneNumbers. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: assign-inbound-processing-region-phone description: Assign an Inbound Processing Region to a phone number. hints: readOnly: false destructive: false idempotent: false call: routes-phonenumbers.updatephonenumber with: PhoneNumber: tools.PhoneNumber body: tools.body outputParameters: - type: object mapping: $. - name: fetch-inbound-processing-region-assigned description: Fetch the Inbound Processing Region assigned to a phone number. hints: readOnly: true destructive: false idempotent: true call: routes-phonenumbers.fetchphonenumber with: PhoneNumber: tools.PhoneNumber outputParameters: - type: object mapping: $.