Skip to main content
Glama

Order a number from another region

order_number_from_region
Destructive

Order a phone number at the customer's own premises address: when they want it registered there, or the region is sold out or outside the standard offer. The address codes must come from find_number_address. This is a synchronous call: the tool waits while we set up an emergency address with the operator and buy the number (usually under a minute), and returns the finished number in the e164 field. If it doesn't succeed on the first try, it returns the order in a pending state - a cron job finishes it and the customer gets an email; track status via list_number_orders. The fee is only deducted once the number is ready. An account that has never topped up may hold one number from the welcome credit (an open order counts too): another order returns insufficient_credit until the first credit top-up. Same data as POST /v1/numbers/orders (response schema in /openapi.json).

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": {
      "psc": "<psc>",
      "obec": "<obec>",
      "cobce": "<cobce>",
      "cp": "<cp>"
    },
    "name": "order_number_from_region"
  }
}

Input Schema

NameRequiredDescriptionDefault
cpYesHouse number (cislo popisne) code from find_number_address, identifying the exact premises to register with the operator.
pscYesPostal code (PSC) from find_number_address's resolved selection or recap.
obecYesMunicipality (obec) code from find_number_address.
cobceYesMunicipality part (cast obce) code from find_number_address.
uliceNoStreet (ulice) code from find_number_address. Omit if the address has no named street.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the synchronous blocking behavior (~under a minute), the pending-state fallback with cron completion and customer email, and that the fee is only deducted once the number is ready. It also surfaces the welcome-credit limit and the insufficient_credit outcome, which no annotation conveys. It does not explicitly state the non-idempotent/destructive consequence (repeated calls create separate orders and charges), which the annotations hint at but the text never confirms.

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 purpose, then prerequisites, then behavior, then failure modes — a sensible order with almost no filler. The final sentence about POST /v1/numbers/orders and /openapi.json is mildly incidental but cheap and orients developers.

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 mutating, charge-incurring order tool with no output schema, the description covers timing, return field (e164), degraded outcomes, cost timing, credit constraints, and a tracking path — everything an agent needs to call it and interpret results. Annotations add the safety profile, and nothing material is missing.

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 baseline is 3, but the description adds real meaning by tying all address codes to a single upstream source (find_number_address), telling the agent where the values come from rather than just what shape they take. It does not explain the optional ulice behavior, though the schema already covers it.

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?

States a concrete verb+resource (order a phone number) and immediately scopes it to the customer's own premises address, which distinguishes it from the sibling buy_number / order_voice_sms_number style tools. The three motivating conditions (registered there, region sold out, outside standard offer) make the resource boundary unambiguous.

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?

Explicitly names when to reach for this tool and routes the agent elsewhere for prerequisites: address codes must come from find_number_address, and order status is tracked via list_number_orders. It also flags the excluded case (account with no top-up returns insufficient_credit), so the agent knows when the call will fail.

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.