Skip to main content
Glama

Buy a number

buy_number
Destructive

Purchases a phone number and charges the wallet. Returns the price charged. Every client charges nothing until confirm is true. The preview includes this wording, and confirming records it for a consumer account: Start now. I understand I lose my right to cancel once the service is fully provided, and I pay for what I use if I cancel earlier. idempotency_key repeats the same purchase result instead of buying again.

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
sku_idNoDIDww SKU from search_numbers, or the billing option id from quote_number.
confirmNoOmitted returns a preview on every client. True charges.
countryNo
stock_poolNoTrue for a search_numbers stock pool row; set number_type too.
number_typeNo
did_group_idNo
stock_did_idNo
idempotency_keyNo
billing_option_idNoBilling option id from quote_number. The shelf price, not a DIDww SKU.
includes_origin_callsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / stock_pool
      Added value: +{
      +  "description": "True for a search_numbers stock pool row; set number_type too.",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / confirm / description
      Previous value: -"On Claude or ChatGPT, omitted returns a preview. True charges."New value: +"Omitted returns a preview on every client. True charges."
  3. Changed2 schema fields changed
    • addedInput schema / properties / billing_option_id
      Added value: +{
      +  "description": "Billing option id from quote_number. The shelf price, not a DIDww SKU.",
      +  "type": "string"
      +}
    • addedInput schema / properties / sku_id / description
      Added value: +"DIDww SKU from search_numbers, or the billing option id from quote_number."
  4. Changed1 schema field changed
    • addedInput schema / properties / confirm
      Added value: +{
      +  "description": "On Claude or ChatGPT, omitted returns a preview. True charges.",
      +  "type": "boolean"
      +}
  5. Added
  6. Removed
  7. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations declare destructive=true, readOnly=false and idempotent=false, but the description adds substantial context: nothing is charged until confirm is true, the wallet is debited, and confirming records consent language for a consumer account. The idempotency_key explanation reconciles nicely with idempotentHint=false by making idempotency opt-in. It does not cover failure modes such as insufficient funds or partial-failure behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The action, cost, and return value are correctly front-loaded, but the sentence embedding the verbatim consent text ('Start now. I understand I lose my right to cancel...') and the awkward clause about the preview including that wording break scannability and eat a large share of the definition.

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

Completeness3/5

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

For a destructive, open-world purchase tool with 10 loosely documented parameters and no output schema, the definition covers charging, consent recording, and the return value well. It still leaves the parameter relationships (stock_pool plus number_type, sku_id versus billing_option_id) and error behavior unexplained.

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 only 40% across 10 parameters, so some compensation is needed. The description adds genuine meaning for idempotency_key, which the schema leaves undocumented, and reinforces the charge semantics of confirm, but says nothing about sku_id versus billing_option_id, stock_pool, number_type, country, or includes_origin_calls.

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 first sentence states a specific verb and resource (purchases a phone number) plus the side effect (charges the wallet) and the return value (the price charged). The preview-versus-confirm mechanic implicitly separates it from quote_number, though the sibling is never named, so it falls short of a 5.

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?

There is real guidance on the confirm flag: omitting it yields a preview and charges nothing, while true charges. However, the description never explicitly routes an agent to quote_number or search_numbers for pricing or lookup, leaving the main alternative implicit.

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.