Skip to main content
Glama

Buy a phone number

buy_number
Destructive

Buy a new phone number for this account. With no parameters it assigns any free Prague number; with a region parameter ("praha", "brno", "internet", "moravskoslezsky", "plzensky", "stredocesky", "ustecky", "jihocesky", "olomoucky", "zlinsky", "kralovehradecky", "pardubicky", "vysocina", "liberecky", "karlovarsky", "bratislava") a number from that offer; with an e164 parameter a specific number from search_available_numbers. Deducts the number's monthly fee from the credit balance - the fee charged is monthlyFeeHal * billingMonths (billingMonths is 1 for Czech numbers, 3 for Bratislava). For a number at the customer's own premises address, or from a sold-out region, use order_number_from_region instead. An account that has never topped up may hold one number from the welcome credit (an open order counts too): buying another one returns insufficient_credit until the first credit top-up. When this fails with pool_empty (the offer is sold out), use join_number_waitlist instead of retrying - it e-mails the account once a number becomes available. Same data as POST /v1/numbers (response schema in /openapi.json).

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": "buy_number"
  }
}

Input Schema

NameRequiredDescriptionDefault
e164NoSpecific phone number in E.164 format to buy, as returned by search_available_numbers. Omit together with region to buy any free Prague number.
regionNoWhich regional offer to buy from: praha, brno, internet, moravskoslezsky, plzensky, stredocesky, ustecky, jihocesky, olomoucky, zlinsky, kralovehradecky, pardubicky, vysocina, liberecky, karlovarsky, bratislava. Omit together with e164 for any free Prague number.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations, the description discloses billing behavior, including that the monthly fee is deducted from credit and that the charge is monthlyFeeHal multiplied by billingMonths, with different billingMonths for Czech and Bratislava numbers. It also explains the insufficient_credit edge case after welcome credit and the pool_empty failure mode, which is substantial behavioral context for a destructive, non-idempotent purchase.

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 purpose is front-loaded in the first sentence, and the dense paragraph contains mostly useful operational detail. The full enumeration of region values duplicates the schema and makes the description harder to scan, but there is little pure filler.

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 destructive purchase tool with no output schema, the description is complete enough to call correctly: it covers parameter combinations, billing impact, credit constraints, failure handling, and sibling alternatives. Nothing critical about when or how to invoke it is left implicit.

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

Parameters4/5

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

Schema coverage is 100%, so the schema already documents both optional parameters and their allowed regions. The description still adds useful meaning by explaining the three invocation patterns and tying the region parameter to billing-period differences, though it repeats the full region list from the schema.

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

Purpose5/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: buying a phone number for the account. It clearly distinguishes itself from order_number_from_region, search_available_numbers, and join_number_waitlist by naming when each alternative applies.

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

Usage Guidelines5/5

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

It gives explicit invocation modes: no parameters for any free Prague number, region for a regional offer, and e164 for a specific number from search_available_numbers. It also names when not to use it, such as for the customer's own premises or a sold-out region, and routes pool_empty failures to join_number_waitlist.

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.