Skip to main content
Glama

List phone numbers

list_phone_numbers
Read-onlyIdempotent

List phone numbers

Returns the phone numbers the account rents, newest purchase first. Wholesale costs, carrier identifiers and SIP credentials are never included, only the columns of the PhoneNumber schema. A reseller key sees every number belonging to its own customers and can narrow the result to one customer with userId; a direct account key ignores userId and always sees only its own numbers. pagination.total is a real count of every number matching the request, not the length of the page, so a page count can be computed from 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_phone_numbers"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage to return. Starts at 1; values below 1 are clamped to 1.
userIdNoReseller keys only: restrict the result to one customer account. The customer must belong to the calling reseller, otherwise the request is rejected with 403. Ignored for direct account keys.
perPageNoItems per page. Clamped to the range 1 to 100; larger values are reduced to 100.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, non-destructive and closed-world, and the description adds genuinely new behavior: fixed newest-first ordering, explicit exclusion of wholesale costs, carrier identifiers and SIP credentials, the reseller-vs-direct visibility model, and the fact that pagination.total is a true match count rather than page length.

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?

Front-loaded with the core action and result ordering, then scoping and pagination semantics. Dense and largely waste-free, though it repeats the tool title as the first line and the final sentence about pagination.total is slightly verbose for the point it makes.

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

Completeness4/5

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

With no output schema, the description carries the return-value burden and does so partly: it explains what fields are omitted and the meaning of pagination.total. It defers field enumeration to 'the columns of the PhoneNumber schema,' which is acceptable but leaves the agent relying on a schema it cannot see here.

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 coverage is 100%, so page, userId and perPage are already fully documented, including the 403 rejection for foreign customers and clamping behavior. The description restates the userId semantics without adding syntax or edge cases beyond the schema, so 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?

States a specific verb and resource (list the phone numbers the account rents) plus the result ordering (newest purchase first) and that only PhoneNumber schema columns are returned. It does not name any sibling such as search_phone_numbers or list_instant_phone_numbers, so an agent must infer the boundary from those tools' own definitions.

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

Usage Guidelines3/5

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

The description gives real conditional guidance about key types: a reseller key sees all its customers' numbers and can narrow with `userId`, while a direct account key ignores `userId`. However, it never states when to use this tool rather than search_phone_numbers or list_instant_phone_numbers, which is the main selection question for an agent facing a large sibling list.

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.