Twilio · Capability

Twilio - Pricing — Voice

Twilio - Pricing — Voice. 3 operations. Lead operation: Voice. Self-contained Naftiko capability covering one Twilio business surface.

Run with Naftiko TwilioVoice

What You Can Do

GET
Listvoicecountry — listvoicecountry
/v1/v2/voice/countries
GET
Fetchvoicecountry — Fetch a specific Country.
/v1/v2/voice/countries/{isocountry}
GET
Fetchvoicenumber — Fetch pricing information for a specific destination and, optionally, origination phone number.
/v1/v2/voice/numbers/{destinationnumber}

MCP Tools

listvoicecountry

listvoicecountry

read-only idempotent
fetch-specific-country

Fetch a specific Country.

read-only idempotent
fetch-pricing-information-specific-destination

Fetch pricing information for a specific destination and, optionally, origination phone number.

read-only idempotent

Capability Spec

pricing-voice.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Twilio - Pricing — Voice
  description: 'Twilio - Pricing — Voice. 3 operations. Lead operation: Voice. Self-contained Naftiko capability covering
    one Twilio business surface.'
  tags:
  - Twilio
  - Voice
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TWILIO_API_KEY: TWILIO_API_KEY
capability:
  consumes:
  - type: http
    namespace: pricing-voice
    baseUri: https://pricing.twilio.com
    description: Twilio - Pricing — Voice business capability. Self-contained, no shared references.
    resources:
    - name: v2-Voice-Countries
      path: /v2/Voice/Countries
      operations:
      - name: listvoicecountry
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: PageSize
          in: query
          type: integer
          description: How many resources to return in each list page. The default is 50, and the maximum is 1000.
        - name: Page
          in: query
          type: integer
          description: The page index. This value is simply for client state.
        - name: PageToken
          in: query
          type: string
          description: The page token. This is provided by the API.
    - name: v2-Voice-Countries-IsoCountry
      path: /v2/Voice/Countries/{IsoCountry}
      operations:
      - name: fetchvoicecountry
        method: GET
        description: Fetch a specific Country.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: IsoCountry
          in: path
          type: string
          description: The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the origin-based voice
            pricing information to fetch.
          required: true
    - name: v2-Voice-Numbers-DestinationNumber
      path: /v2/Voice/Numbers/{DestinationNumber}
      operations:
      - name: fetchvoicenumber
        method: GET
        description: Fetch pricing information for a specific destination and, optionally, origination phone number.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: DestinationNumber
          in: path
          type: string
          description: 'The destination phone number, in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, for
            which to fetch the origin-based voice pricing information. '
          required: true
        - name: OriginationNumber
          in: query
          type: string
          description: 'The origination phone number, in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, for
            which to fetch the origin-based voice pricing information. '
    authentication:
      type: basic
      username: '{{env.TWILIO_USER}}'
      password: '{{env.TWILIO_PASS}}'
  exposes:
  - type: rest
    namespace: pricing-voice-rest
    port: 8080
    description: REST adapter for Twilio - Pricing — Voice. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/v2/voice/countries
      name: v2-voice-countries
      description: REST surface for v2-Voice-Countries.
      operations:
      - method: GET
        name: listvoicecountry
        description: listvoicecountry
        call: pricing-voice.listvoicecountry
        with:
          PageSize: rest.PageSize
          Page: rest.Page
          PageToken: rest.PageToken
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v2/voice/countries/{isocountry}
      name: v2-voice-countries-isocountry
      description: REST surface for v2-Voice-Countries-IsoCountry.
      operations:
      - method: GET
        name: fetchvoicecountry
        description: Fetch a specific Country.
        call: pricing-voice.fetchvoicecountry
        with:
          IsoCountry: rest.IsoCountry
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v2/voice/numbers/{destinationnumber}
      name: v2-voice-numbers-destinationnumber
      description: REST surface for v2-Voice-Numbers-DestinationNumber.
      operations:
      - method: GET
        name: fetchvoicenumber
        description: Fetch pricing information for a specific destination and, optionally, origination phone number.
        call: pricing-voice.fetchvoicenumber
        with:
          DestinationNumber: rest.DestinationNumber
          OriginationNumber: rest.OriginationNumber
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: pricing-voice-mcp
    port: 9090
    transport: http
    description: MCP adapter for Twilio - Pricing — Voice. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: listvoicecountry
      description: listvoicecountry
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: pricing-voice.listvoicecountry
      with:
        PageSize: tools.PageSize
        Page: tools.Page
        PageToken: tools.PageToken
      outputParameters:
      - type: object
        mapping: $.
    - name: fetch-specific-country
      description: Fetch a specific Country.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: pricing-voice.fetchvoicecountry
      with:
        IsoCountry: tools.IsoCountry
      outputParameters:
      - type: object
        mapping: $.
    - name: fetch-pricing-information-specific-destination
      description: Fetch pricing information for a specific destination and, optionally, origination phone number.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: pricing-voice.fetchvoicenumber
      with:
        DestinationNumber: tools.DestinationNumber
        OriginationNumber: tools.OriginationNumber
      outputParameters:
      - type: object
        mapping: $.