Skip to main content
Glama

Purchase a phone number

purchase_phone_number

COSTS MONEY: Purchase a phone number

Buys one of the numbers returned by the search and attaches it to the account. Buying numbers needs an active Voice subscription (Voice, Bundle or a voice capable plan) and is not possible during the free trial; otherwise the request is rejected with 403 and one of the codes voice_subscription_required, voice_subscription_inactive or trial_not_allowed, before anything is charged. This charges money: the setup price plus the first month, plus VAT, is deducted from the account wallet, a balance transaction is written and an invoice is issued. An account managed by a provider (a partner of EchoCall) pays the provider's price as the search shows it and gets the invoice from that provider; when the provider cannot take the order right now the request is rejected with 400 provider_unavailable, nothing is bought and the provider is informed. Pass the listing from the search result back unchanged.

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": {
      "body": "<body>"
    },
    "name": "purchase_phone_number"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesThe listing to buy, exactly as returned by the search. `availableDidId` and `skuId` identify the listing at the marketplace, `features` lists the capabilities of the number, and `requirementId` names the regulatory requirement set to satisfy, if there is one. The four price fields are deprecated: they are optional, they are ignored, and the server prices the purchase itself. They remain in the schema only so integrations that echo a whole search result back keep working.
confirmNoLeave out on the first call. EchoCall then answers with a confirmation value. Ask the user for a clear yes, then repeat the call with the same arguments and this value.

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?

The description adds substantial financial and operational behavior beyond the annotations: wallet debit, setup price plus first month plus VAT, balance transaction, invoice issuance, subscription prerequisites, and specific 403/400 failure outcomes. It clearly explains that nothing is charged or bought when the request is rejected.

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 critical cost warning is front-loaded, and the remaining sentences mostly earn their place by covering prerequisites, billing, provider behavior, and error codes. It is somewhat dense and repeats the purchase naming after the warning, but it is not padded.

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?

For a financially significant mutation with a nested input and no output schema, the description covers prerequisites, charging behavior, rejection scenarios, and provider-managed accounts thoroughly. The only notable gap is that it does not describe the successful return shape, though the schema's detailed confirm field covers the confirmation flow.

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%, and the schema already explains the nested body, required listing fields, deprecated price fields, and the confirmation flow. The description reinforces passing the search listing back unchanged, but adds little parameter meaning beyond the schema.

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 states a specific verb and resource: it buys one number returned by search and attaches it to the account. The purpose is clear, but it does not explicitly distinguish this tool from sibling alternatives such as buy_instant_phone_number.

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?

It gives clear context for use by requiring an active Voice subscription and excluding the free trial, with error codes before anything is charged. It stops short of naming alternative purchase tools or explaining when to choose this over them.

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.