Telnyx · Capability

Telnyx API — Phone Number Search

Telnyx API — Phone Number Search. 2 operations. Lead operation: List available phone number blocks. Self-contained Naftiko capability covering one Telnyx business surface.

Run with Naftiko TelnyxPhone Number Search

What You Can Do

GET
Listavailablephonenumberblocks — List available phone number blocks
/v1/available-phone-number-blocks
GET
Listavailablephonenumbers — List available phone numbers
/v1/available-phone-numbers

MCP Tools

list-available-phone-number-blocks

List available phone number blocks

read-only idempotent
list-available-phone-numbers

List available phone numbers

read-only idempotent

Capability Spec

telnyx-phone-number-search.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Telnyx API — Phone Number Search
  description: 'Telnyx API — Phone Number Search. 2 operations. Lead operation: List available phone number blocks. Self-contained
    Naftiko capability covering one Telnyx business surface.'
  tags:
  - Telnyx
  - Phone Number Search
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TELNYX_API_KEY: TELNYX_API_KEY
capability:
  consumes:
  - type: http
    namespace: telnyx-phone-number-search
    baseUri: https://api.telnyx.com/v2
    description: Telnyx API — Phone Number Search business capability. Self-contained, no shared references.
    resources:
    - name: available_phone_number_blocks
      path: /available_phone_number_blocks
      operations:
      - name: listavailablephonenumberblocks
        method: GET
        description: List available phone number blocks
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: filter
          in: query
          type: object
          description: 'Consolidated filter parameter (deepObject style). Originally: filter[locality], filter[country_code],
            filter[national_destination_code], filter[phone_number_typ'
    - name: available_phone_numbers
      path: /available_phone_numbers
      operations:
      - name: listavailablephonenumbers
        method: GET
        description: List available phone numbers
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: filter
          in: query
          type: object
          description: 'Consolidated filter parameter (deepObject style). Originally: filter[phone_number], filter[locality],
            filter[administrative_area], filter[country_code], filter['
    authentication:
      type: bearer
      token: '{{env.TELNYX_API_KEY}}'
  exposes:
  - type: rest
    namespace: telnyx-phone-number-search-rest
    port: 8080
    description: REST adapter for Telnyx API — Phone Number Search. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/available-phone-number-blocks
      name: available-phone-number-blocks
      description: REST surface for available_phone_number_blocks.
      operations:
      - method: GET
        name: listavailablephonenumberblocks
        description: List available phone number blocks
        call: telnyx-phone-number-search.listavailablephonenumberblocks
        with:
          filter: rest.filter
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/available-phone-numbers
      name: available-phone-numbers
      description: REST surface for available_phone_numbers.
      operations:
      - method: GET
        name: listavailablephonenumbers
        description: List available phone numbers
        call: telnyx-phone-number-search.listavailablephonenumbers
        with:
          filter: rest.filter
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: telnyx-phone-number-search-mcp
    port: 9090
    transport: http
    description: MCP adapter for Telnyx API — Phone Number Search. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-available-phone-number-blocks
      description: List available phone number blocks
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: telnyx-phone-number-search.listavailablephonenumberblocks
      with:
        filter: tools.filter
      outputParameters:
      - type: object
        mapping: $.
    - name: list-available-phone-numbers
      description: List available phone numbers
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: telnyx-phone-number-search.listavailablephonenumbers
      with:
        filter: tools.filter
      outputParameters:
      - type: object
        mapping: $.