Skip to main content
Glama

Search available numbers

search_phone_numbers
Read-onlyIdempotent

Search available numbers

Searches the number marketplace for numbers that can be bought right now in one country. Nothing is reserved: a listing can disappear between the search and the purchase, so buy promptly and be ready to retry with a different result. Each entry carries the prices, the capabilities and the identifiers a purchase needs, and should be passed back to the purchase endpoint unchanged. The marketplace applies its own rate limit; when it is hit the endpoint answers 429 and the search can be repeated after a short pause.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "countryIso": "<countryIso>"
    },
    "name": "search_phone_numbers"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of listings to return. Must be between 1 and 100; a value outside that range is rejected with 400 rather than clamped.
areaCodeNoArea or city code to search within. Only meaningful for number types that have one, such as `local`.
countryIsoYesTwo-letter ISO country code to search in, exactly 2 characters. Take it from the `iso` field of the countries endpoint.
numberTypeNoRestrict the search to one category of number. Omit to let the marketplace decide which categories to return.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent and non-destructive, and the description adds genuinely non-redundant behavior: results are unreserved and can vanish between search and purchase, and the marketplace's own rate limit surfaces as a 429 that can be retried after a pause. It also describes what each listing carries (prices, capabilities, purchase identifiers), which matters because there is no output schema.

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?

The racing/retry warning and the rate-limit note are front-loaded in a tight four-sentence block, and each sentence carries new information. The opening line merely restates the title, which is the only wasted text.

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?

For a read-only search with no output schema, the description covers the workflow (search → purchase), the volatility of results, the failure mode and recovery (429, retry), and the shape of returned entries. 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%, including enum, min/max and length constraints, so the heavy lifting is already done in structured data. The description only reinforces the single-country scoping of countryIso ('in one country') and adds nothing on areaCode, numberType or limit; 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 description gives a specific verb and resource ('Searches the number marketplace for numbers') plus a scope constraint ('in one country' / buyable right now). It never names the adjacent listing tools (list_instant_phone_numbers, list_phone_numbers, list_phone_number_countries), so the agent must infer the distinction from the 'marketplace / can be bought right now' framing rather than from an explicit contrast.

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?

Usage context is clear: this is the discovery step that feeds purchase, and the description tells the agent to pass entries back to the purchase endpoint unchanged and to be ready to retry. It stops short of explicit exclusions — nothing tells the agent when to prefer list_instant_phone_numbers or list_phone_numbers instead.

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.