Skip to main content
Glama

Buy a dedicated number

purchase_dedicated_number
Destructive

Buy a dedicated monthly phone number in a chosen country, charged to your balance for the first month after price confirmation. Returns a ded_ id used to read incoming SMS.

Instructions

Buy a dedicated monthly number in a country from search_dedicated_countries, charged to your balance immediately for the first month. Requires max_price_cents: the monthly price you showed the user and they approved; if the price is now higher, nothing is charged and the new price comes back to re-confirm. There is no cancel or refund - to stop paying, leave auto_renew off and let the month run out. Returns a ded_ id - call get_rental with it (and wait_seconds to wait for the next SMS) to read incoming SMS.

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": {
      "country": "<country>",
      "max_price_cents": "<max_price_cents>"
    },
    "name": "purchase_dedicated_number"
  }
}

Input Schema

NameRequiredDescriptionDefault
countryYesCountry code or name from search_dedicated_countries (e.g. 'us', 'uk', 'germany')
auto_renewNoCharge the next month automatically at the end of each monthly period (ask the user first). An app connection can never turn it on: such a purchase is refused with nothing charged.
max_price_centsYesThe price you showed the user and they approved, in US cents (e.g. 250 = $2.50). Nothing is charged if the current price is higher; the new price comes back so you can ask the user again.

Output Schema

NameRequiredDescriptionDefault
dedicated_numberYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.1.0
    • addedOutput schema / properties / dedicated_number / properties / messages / items / properties / content_withheld
      Added value: +{
      +  "type": "boolean"
      +}
    • changedOutput schema / properties / dedicated_number / properties / messages / items / properties / text / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • addedOutput schema / properties / dedicated_number / properties / payment_due
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": {},
      +      "properties": {
      +        "amount_cents": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "since": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "amount_cents",
      +        "since"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
  2. Changed3 schema fields changedv2.0.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedInput schema / properties / auto_renew / description
      Previous value: -"Charge the next month automatically at the end of each monthly period (ask the user first)"New value: +"Charge the next month automatically at the end of each monthly period (ask the user first). An app connection can never turn it on: such a purchase is refused with nothing charged."
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  3. Changed4 schema fields changedv1.2.1
    • changedInput schema / properties / auto_renew / description
      Previous value: -"Charge the next month automatically at the end of each monthly period"New value: +"Charge the next month automatically at the end of each monthly period (ask the user first)"
    • addedInput schema / properties / max_price_cents
      Added value: +{
      +  "description": "The price you showed the user and they approved, in US cents (e.g. 250 = $2.50). Nothing is charged if the current price is higher; the new price comes back so you can ask the user again.",
      +  "exclusiveMinimum": 0,
      +  "maximum": 1000000,
      +  "type": "integer"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "country"
      -]New value: +[
      +  "country",
      +  "max_price_cents"
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "dedicated_number": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "auto_renew": {
      +          "type": "boolean"
      +        },
      +        "billing_period": {
      +          "type": "string"
      +        },
      +        "charged_price_cents": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "country": {
      +          "type": "string"
      +        },
      +        "country_name": {
      +          "type": "string"
      +        },
      +        "created_at": {
      +          "type": "string"
      +        },
      +        "display_id": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "expires_at": {
      +          "type": "string"
      +        },
      +        "id": {
      +          "type": "string"
      +        },
      +        "messages": {
      +          "items": {
      +            "additionalProperties": {},
      +            "properties": {
      +              "code": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "id": {
      +                "type": "string"
      +              },
      +              "received_at": {
      +                "type": "string"
      +              },
      +              "text": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "text",
      +              "received_at"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "next_renewal_price_cents": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "nickname": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "paid_until": {
      +          "type": "string"
      +        },
      +        "phone_number": {
      +          "type": "string"
      +        },
      +        "quoted_price_cents": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "status": {
      +          "enum": [
      +            "active",
      +            "expired"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "status",
      +        "phone_number",
      +        "country",
      +        "country_name",
      +        "billing_period",
      +        "quoted_price_cents",
      +        "charged_price_cents",
      +        "next_renewal_price_cents",
      +        "auto_renew",
      +        "created_at",
      +        "paid_until",
      +        "expires_at"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "dedicated_number"
      +  ],
      +  "type": "object"
      +}
  4. Changed3 schema fields changedv1.1.8
    • changedInput schema / properties / auto_renew / description
      Previous value: -"Auto-charge at the end of each monthly period"New value: +"Charge the next month automatically at the end of each monthly period"
    • addedInput schema / properties / country / maxLength
      Added value: +40
    • addedInput schema / properties / country / minLength
      Added value: +2
  5. First observedv1.1.3

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already flag destructive=true and non-idempotent, but the description adds genuinely new behavioral facts: immediate balance charge for month one, a max_price_cents price guard that aborts with no charge if the price rose and returns the new price, and an explicit no-cancel/no-refund policy with auto_renew as the only way to stop. That is exactly the kind of consequence disclosure an agent needs before committing money.

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

Conciseness5/5

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

Four sentences, front-loaded with the action, then pricing behavior, then the no-refund caveat, then the return-value handoff. Each sentence carries distinct operational information with no 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 money-spending, non-idempotent purchase with an output schema present, the description covers cost timing, abort behavior, irreversibility, and next-step chaining, while leaving return-value detail to the output schema. Nothing an agent needs to call this safely 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%, so the schema already documents all three parameters, including the price-guard semantics of max_price_cents. The description restates the human-approval framing of max_price_cents and mentions auto_renew indirectly ('leave auto_renew off'), but adds no syntax, format, or constraint detail beyond the schema. Baseline 3 is appropriate.

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 opens with a specific verb+resource and scope: 'Buy a dedicated monthly number in a country'. It also ties the tool to a prerequisite sibling (search_dedicated_countries) and a follow-up (get_rental), so an agent can place it in the workflow without opening any schema.

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 when this tool applies: after picking a country from search_dedicated_countries and after user price approval, and it explains how to continue afterwards via get_rental with wait_seconds. It does not explicitly contrast with other purchase/rental siblings (e.g. rent_number, purchase_esim), so it stops short of full alternative routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.