Skip to main content
Glama

List phone numbers

list_numbers
Read-onlyIdempotent

List dedicated workspace phone numbers, newest first.

    The records show capabilities, provisioning state and assigned agents,
    so they can be used to select an existing number for sending or routing.
    ``source`` is ``purchased`` (bought through Hail) or ``connected`` (a
    number on the customer's own phone system, voice only). Hail's team
    connects phone systems with the customer; no tool does it.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_numbers"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum records returned on this page.
cursorNoPagination cursor: the ``next_cursor`` from the previous page. Omitted: the first page.
llm_modelNoThe calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedOutput schema / $defs / PhoneNumberResponse / properties / provisioning_state / description
      Previous value: -"'pending', 'active', 'failed', or 'released'."New value: +"'pending', 'active', 'failed', or 'released'. A connected number is 'unverified' until it passes its ownership check (POST /sip-connections/{id}/numbers/{number_id}/verify)."
    • addedOutput schema / $defs / PhoneNumberResponse / properties / sip_connection_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "format": "uuid",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "The phone system connection of a connected number. Null for a purchased number.",
      +  "title": "Sip Connection Id"
      +}
    • addedOutput schema / $defs / PhoneNumberResponse / properties / source
      Added value: +{
      +  "default": "purchased",
      +  "description": "'purchased': bought through Hail. 'connected': a number on your own phone system, connected with POST /sip-connections/{id}/numbers. Removing a connected number takes it off Hail only; it stays with your phone system and provider.",
      +  "enum": [
      +    "purchased",
      +    "connected"
      +  ],
      +  "title": "Source",
      +  "type": "string"
      +}
    • changedOutput schema / $defs / PhoneNumberResponse / required
      Previous value: -[
      -  "id",
      -  "e164",
      -  "country_code",
      -  "number_type",
      -  "capabilities",
      -  "provisioning_state",
      -  "is_dedicated",
      -  "voice_agent_id",
      -  "sms_agent_id",
      -  "inbound_registered",
      -  "subject_type",
      -  "verification_id",
      -  "subject_name"
      -]New value: +[
      +  "id",
      +  "e164",
      +  "country_code",
      +  "number_type",
      +  "capabilities",
      +  "provisioning_state",
      +  "source",
      +  "sip_connection_id",
      +  "is_dedicated",
      +  "voice_agent_id",
      +  "sms_agent_id",
      +  "inbound_registered",
      +  "subject_type",
      +  "verification_id",
      +  "subject_name"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / llm_model / description
      Previous value: -"Model ID of the calling agent. Optional. Recorded for analytics only."New value: +"The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
  3. Changed5 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"How many items one page holds. ``next_cursor`` in the response points to the next page."New value: +"Maximum records returned on this page."
    • addedOutput schema / $defs
      Added value: +{
      +  "PhoneNumberResponse": {
      +    "properties": {
      +      "capabilities": {
      +        "description": "Channels this number supports, e.g. ['voice'], ['sms'], or both.",
      +        "items": {
      +          "type": "string"
      +        },
      +        "title": "Capabilities",
      +        "type": "array"
      +      },
      +      "country_code": {
      +        "description": "ISO alpha-2 country code this number belongs to.",
      +        "title": "Country Code",
      +        "type": "string"
      +      },
      +      "e164": {
      +        "description": "The phone number, E.164 format.",
      +        "title": "E164",
      +        "type": "string"
      +      },
      +      "id": {
      +        "description": "Unique identifier for this number.",
      +        "format": "uuid",
      +        "title": "Id",
      +        "type": "string"
      +      },
      +      "inbound_registered": {
      +        "default": false,
      +        "description": "True while the number is attached for inbound calls at the carrier and on Hail's LiveKit inbound trunk. Set when voice_agent_id is set.",
      +        "title": "Inbound Registered",
      +        "type": "boolean"
      +      },
      +      "is_dedicated": {
      +        "description": "True if this number is owned by the organization. False for shared-pool numbers.",
      +        "title": "Is Dedicated",
      +        "type": "boolean"
      +      },
      +      "number_type": {
      +        "description": "Kind of number: 'local', 'mobile', 'toll_free', or 'national'.",
      +        "title": "Number Type",
      +        "type": "string"
      +      },
      +      "provisioning_state": {
      +        "description": "'pending', 'active', 'failed', or 'released'.",
      +        "title": "Provisioning State",
      +        "type": "string"
      +      },
      +      "sms_agent_id": {
      +        "anyOf": [
      +          {
      +            "format": "uuid",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Agent that answers texts to this number. Null: texts only reach your webhooks.",
      +        "title": "Sms Agent Id"
      +      },
      +      "subject_name": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Name of the person or company the verification used to buy this number is for. Null when no verification was used or the name is unknown.",
      +        "title": "Subject Name"
      +      },
      +      "subject_type": {
      +        "anyOf": [
      +          {
      +            "enum": [
      +              "person",
      +              "business"
      +            ],
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Who the verification used to buy this number is for: 'person' or 'business'. Null when no verification was used.",
      +        "title": "Subject Type"
      +      },
      +      "verification_id": {
      +        "anyOf": [
      +          {
      +            "format": "uuid",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Hail id of the verification used to buy this number. Null when no verification was used.",
      +        "title": "Verification Id"
      +      },
      +      "voice_agent_id": {
      +        "anyOf": [
      +          {
      +            "format": "uuid",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Agent that answers calls to this number. Null: calls ring out.",
      +        "title": "Voice Agent Id"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "e164",
      +      "country_code",
      +      "number_type",
      +      "capabilities",
      +      "provisioning_state",
      +      "is_dedicated",
      +      "voice_agent_id",
      +      "sms_agent_id",
      +      "inbound_registered",
      +      "subject_type",
      +      "verification_id",
      +      "subject_name"
      +    ],
      +    "title": "PhoneNumberResponse",
      +    "type": "object"
      +  }
      +}
    • removedOutput schema / additionalProperties
      Removed value: -true
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "properties": {
      +      "items": {
      +        "description": "Numbers in this page.",
      +        "items": {
      +          "$ref": "#/$defs/PhoneNumberResponse"
      +        },
      +        "title": "Items",
      +        "type": "array"
      +      },
      +      "next_cursor": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Opaque cursor for the next page. Null when there are no more results.",
      +        "title": "Next Cursor"
      +      }
      +    },
      +    "required": [
      +      "items",
      +      "next_cursor"
      +    ],
      +    "title": "PhoneNumberListResponse",
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "error": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / title
      Removed value: -"list_numbers_toolDictOutput"
  4. Changed1 schema field changed
    • addedInput schema / properties / llm_model
      Added value: +{
      +  "description": "Model ID of the calling agent. Optional. Recorded for analytics only.",
      +  "type": "string"
      +}
  5. Changed1 schema field changed
    • changedInput schema / properties / limit / description
      Previous value: -"Number of items per page."New value: +"How many items one page holds. ``next_cursor`` in the response points to the next page."
  6. First observed

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover the safety profile (readOnlyHint, idempotentHint, destructiveHint false, closed-world), so the description's contribution is the sort order, the shape of each record (capabilities, provisioning state, assigned agents), and the meaning of the ``source`` values including the voice-only caveat for connected numbers. Those are genuine additions beyond structured fields.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short paragraphs, front-loaded with the resource and ordering, then the interpretive details. Every sentence carries information; the only borderline item is the aside about Hail's team, though it functions as a useful exclusion.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With a full output schema and complete annotations, the description only needs to add order, record interpretation, and scope boundaries — and it does all three. Pagination and the analytics-only llm_model are handled by the schema, so nothing an agent needs to call this correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so limit, cursor, and llm_model are already documented in the schema. The description adds no parameter-level meaning at all — its ``source`` discussion concerns response fields, not inputs — so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence gives a specific verb and resource ("List dedicated workspace phone numbers") plus the ordering ("newest first"), which separates it from single-record readers like get_number. It never names a sibling explicitly, so the differentiation is implied by the list/get framing rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description states the downstream use ("used to select an existing number for sending or routing") and gives a real exclusion: connecting a customer's own phone system is done by Hail's team and "no tool does it," which stops an agent from hunting for a nonexistent tool. It does not point to quote_numbers or acquire_number for obtaining new numbers, which is the most likely adjacent need.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.