Skip to main content
Glama

Rent an SMS number

rent_number
Destructive

Buy a US non-VoIP phone number for SMS verification or 3-30 day rental. Pay per SMS or for the rental duration; cancel rentals for a refund within 60 minutes.

Instructions

Buy a US non-VoIP phone number for one service, charged to your balance immediately. kind='verification' (default): a one-time number that stays open for up to 15 minutes (expires_at) and can receive several codes in that window. You pay only when an SMS arrives: if none arrives, the full price is refunded automatically and the verification ends as cancelled (rare exception: services marked non-refundable end as expired without a refund). kind='rental': the number is yours for 3/7/14/30 days and receives every SMS for that service; cancel_rental refunds it in full within 60 minutes of purchase. Requires max_price_cents: the price from search_sms_services that 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. For a private number that receives SMS from any service, use purchase_dedicated_number. Next: get_rental with the returned id and wait_seconds.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNoverification
durationNoRequired when kind='rental'
service_idYessvc_... id from search_sms_services
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

TableJSON Schema
NameRequiredDescriptionDefault
rentalNo
verificationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.2.1
    • 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: -[
      -  "service_id"
      -]New value: +[
      +  "service_id",
      +  "max_price_cents"
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "rental": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "auto_renew": {
      +          "type": "boolean"
      +        },
      +        "can_cancel": {
      +          "type": "boolean"
      +        },
      +        "cancel_window_expires_at": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "charged_price_cents": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "country": {
      +          "type": "string"
      +        },
      +        "created_at": {
      +          "type": "string"
      +        },
      +        "display_id": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "duration": {
      +          "type": "string"
      +        },
      +        "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"
      +        },
      +        "paid_until": {
      +          "type": "string"
      +        },
      +        "phone_number": {
      +          "type": "string"
      +        },
      +        "re_rent_available": {
      +          "type": "boolean"
      +        },
      +        "re_rent_blocked_at": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "re_rent_price_cents": {
      +          "anyOf": [
      +            {
      +              "maximum": 9007199254740991,
      +              "minimum": -9007199254740991,
      +              "type": "integer"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "refunded_cents": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "rental_type": {
      +          "const": "rental",
      +          "type": "string"
      +        },
      +        "service_id": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "service_name": {
      +          "type": "string"
      +        },
      +        "status": {
      +          "enum": [
      +            "active",
      +            "expired",
      +            "cancelled"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "status",
      +        "phone_number",
      +        "service_id",
      +        "service_name",
      +        "country",
      +        "duration",
      +        "rental_type",
      +        "charged_price_cents",
      +        "auto_renew",
      +        "next_renewal_price_cents",
      +        "re_rent_available",
      +        "re_rent_price_cents",
      +        "re_rent_blocked_at",
      +        "created_at",
      +        "paid_until",
      +        "expires_at",
      +        "can_cancel"
      +      ],
      +      "type": "object"
      +    },
      +    "verification": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "allow_paid_reuse": {
      +          "type": "boolean"
      +        },
      +        "allow_reuse": {
      +          "type": "boolean"
      +        },
      +        "can_cancel": {
      +          "type": "boolean"
      +        },
      +        "charged_price_cents": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "charged_reuse_cents": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "code": {
      +          "type": "string"
      +        },
      +        "code_received_at": {
      +          "type": "string"
      +        },
      +        "created_at": {
      +          "type": "string"
      +        },
      +        "display_id": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "expires_at": {
      +          "type": "string"
      +        },
      +        "id": {
      +          "type": "string"
      +        },
      +        "paid_reuse_price_cents": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "phone_number": {
      +          "type": "string"
      +        },
      +        "refunded_cents": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "reuse_counter": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "service_id": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "service_name": {
      +          "type": "string"
      +        },
      +        "status": {
      +          "enum": [
      +            "waiting_for_code",
      +            "code_received",
      +            "cancelled",
      +            "expired",
      +            "failed"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "status",
      +        "phone_number",
      +        "service_id",
      +        "service_name",
      +        "charged_price_cents",
      +        "expires_at",
      +        "can_cancel",
      +        "created_at",
      +        "reuse_counter",
      +        "allow_reuse",
      +        "allow_paid_reuse",
      +        "paid_reuse_price_cents"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Changed2 schema fields changedv1.1.8
    • changedInput schema / properties / service_id / description
      Previous value: -"svc_xxx from search_sms_services"New value: +"svc_... id from search_sms_services"
    • addedInput schema / properties / service_id / pattern
      Added value: +"^(?:svc_[A-Za-z0-9_-]{1,64})$"
  3. First observedv1.1.3

TDQS

A4.8/5.0
Behavior5/5

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

Annotations flag destructive/non-idempotent/openWorld, and the description adds substantial non-obvious behavior: immediate charge, refund-on-no-SMS, the non-refundable exception ending as expired, the 60-minute cancel_rental refund window, and the re-confirmation flow when the price rises. This is well beyond what the annotations convey.

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?

Dense but front-loaded: the primary action and mode split come first, then refund/cancellation details, then sibling redirect and next step. Every sentence carries operational value, though the longest sentence packs several clauses that could be split.

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 paid, destructive, multi-mode purchase tool, the description covers cost, timing, refund/expiry outcomes, price re-confirmation, and the follow-up call. An output schema exists so return-value structure needn't be explained, and the key return signals (price comes back, id) are nonetheless noted.

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 75% and the description adds real meaning: kind semantics, the 3/7/14/30-day rental durations, and the 'price you showed the user and they approved' contract for max_price_cents, plus the no-charge-if-higher behavior. It slightly restates the schema's max_price_cents wording, hence not a 5.

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 specific verb and resource ('Buy a US non-VoIP phone number for one service') and immediately splits the two operating modes (kind='verification' vs kind='rental'). It also names the sibling it is not (purchase_dedicated_number) so an agent can route correctly.

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 prescribes when to use each kind, the default, the input requirement (max_price_cents from search_sms_services approved by the user), the redirect for private numbers (purchase_dedicated_number), and the follow-up step (get_rental with the returned id and wait_seconds). Both what-to-use and when-not-to-use are covered.

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