Twilio · Capability

Twilio - Pricing — Trunking

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

Run with Naftiko TwilioTrunking

What You Can Do

GET
Listtrunkingcountry — listtrunkingcountry
/v1/v2/trunking/countries
GET
Fetchtrunkingcountry — Fetch a specific Country.
/v1/v2/trunking/countries/{isocountry}
GET
Fetchtrunkingnumber — Fetch pricing information for a specific destination and, optionally, origination phone number.
/v1/v2/trunking/numbers/{destinationnumber}

MCP Tools

listtrunkingcountry

listtrunkingcountry

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-trunking.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Twilio - Pricing — Trunking
  description: 'Twilio - Pricing — Trunking. 3 operations. Lead operation: Trunking. Self-contained Naftiko capability covering
    one Twilio business surface.'
  tags:
  - Twilio
  - Trunking
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TWILIO_API_KEY: TWILIO_API_KEY
capability:
  consumes:
  - type: http
    namespace: pricing-trunking
    baseUri: https://pricing.twilio.com
    description: Twilio - Pricing — Trunking business capability. Self-contained, no shared references.
    resources:
    - name: v2-Trunking-Countries
      path: /v2/Trunking/Countries
      operations:
      - name: listtrunkingcountry
        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-Trunking-Countries-IsoCountry
      path: /v2/Trunking/Countries/{IsoCountry}
      operations:
      - name: fetchtrunkingcountry
        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-Trunking-Numbers-DestinationNumber
      path: /v2/Trunking/Numbers/{DestinationNumber}
      operations:
      - name: fetchtrunkingnumber
        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-trunking-rest
    port: 8080
    description: REST adapter for Twilio - Pricing — Trunking. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/v2/trunking/countries
      name: v2-trunking-countries
      description: REST surface for v2-Trunking-Countries.
      operations:
      - method: GET
        name: listtrunkingcountry
        description: listtrunkingcountry
        call: pricing-trunking.listtrunkingcountry
        with:
          PageSize: rest.PageSize
          Page: rest.Page
          PageToken: rest.PageToken
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v2/trunking/countries/{isocountry}
      name: v2-trunking-countries-isocountry
      description: REST surface for v2-Trunking-Countries-IsoCountry.
      operations:
      - method: GET
        name: fetchtrunkingcountry
        description: Fetch a specific Country.
        call: pricing-trunking.fetchtrunkingcountry
        with:
          IsoCountry: rest.IsoCountry
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v2/trunking/numbers/{destinationnumber}
      name: v2-trunking-numbers-destinationnumber
      description: REST surface for v2-Trunking-Numbers-DestinationNumber.
      operations:
      - method: GET
        name: fetchtrunkingnumber
        description: Fetch pricing information for a specific destination and, optionally, origination phone number.
        call: pricing-trunking.fetchtrunkingnumber
        with:
          DestinationNumber: rest.DestinationNumber
          OriginationNumber: rest.OriginationNumber
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: pricing-trunking-mcp
    port: 9090
    transport: http
    description: MCP adapter for Twilio - Pricing — Trunking. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: listtrunkingcountry
      description: listtrunkingcountry
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: pricing-trunking.listtrunkingcountry
      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-trunking.fetchtrunkingcountry
      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-trunking.fetchtrunkingnumber
      with:
        DestinationNumber: tools.DestinationNumber
        OriginationNumber: tools.OriginationNumber
      outputParameters:
      - type: object
        mapping: $.