naftiko: 1.0.0-alpha2 info: label: Twilio Messaging API — Phone Numbers description: 'Twilio Messaging API — Phone Numbers. 2 operations. Lead operation: Twilio List Phone Numbers in a Messaging Service. Self-contained Naftiko capability covering one Twilio business surface.' tags: - Twilio - Phone Numbers created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: TWILIO_API_KEY: TWILIO_API_KEY capability: consumes: - type: http namespace: messaging-phone-numbers baseUri: https://api.twilio.com/2010-04-01 description: Twilio Messaging API — Phone Numbers business capability. Self-contained, no shared references. resources: - name: Services-ServiceSid-PhoneNumbers path: /Services/{ServiceSid}/PhoneNumbers operations: - name: listphonenumbers method: GET description: Twilio List Phone Numbers in a Messaging Service outputRawFormat: json outputParameters: - name: result type: object value: $. - name: addphonenumber method: POST description: Twilio Add a Phone Number to a Messaging Service outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: basic username: '{{env.TWILIO_USER}}' password: '{{env.TWILIO_PASS}}' exposes: - type: rest namespace: messaging-phone-numbers-rest port: 8080 description: REST adapter for Twilio Messaging API — Phone Numbers. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/services/{servicesid}/phonenumbers name: services-servicesid-phonenumbers description: REST surface for Services-ServiceSid-PhoneNumbers. operations: - method: GET name: listphonenumbers description: Twilio List Phone Numbers in a Messaging Service call: messaging-phone-numbers.listphonenumbers outputParameters: - type: object mapping: $. - method: POST name: addphonenumber description: Twilio Add a Phone Number to a Messaging Service call: messaging-phone-numbers.addphonenumber with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: messaging-phone-numbers-mcp port: 9090 transport: http description: MCP adapter for Twilio Messaging API — Phone Numbers. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: twilio-list-phone-numbers-messaging description: Twilio List Phone Numbers in a Messaging Service hints: readOnly: true destructive: false idempotent: true call: messaging-phone-numbers.listphonenumbers outputParameters: - type: object mapping: $. - name: twilio-add-phone-number-messaging description: Twilio Add a Phone Number to a Messaging Service hints: readOnly: false destructive: false idempotent: false call: messaging-phone-numbers.addphonenumber with: body: tools.body outputParameters: - type: object mapping: $.