Skip to main content
Glama
Upload-Post

Upload-Post

Official

Release an Upload-Post phone number

release_phone_number
DestructiveIdempotent

Permanently release an Upload-Post phone number to stop SMS, calls, and monthly charges; this final action requires user approval before confirmation.

Instructions

Give an Upload-Post phone number back. It is FINAL and cannot be undone: the number stops receiving SMS and calls, WhatsApp and anything else verified on it stop working, and the carrier may give it to someone else later. The monthly charge stops (no refund for the rest of the period). To keep the number with another carrier, use phone_numbers_read port_out_info instead of releasing it. Needs confirm: true, set only after the user approved releasing that exact number; without it the API answers 400 confirmation_required and nothing changes. 404 phone_number_not_found. When the subscription is cancelled or ends, numbers are suspended at once and released after a 7-day grace period (the user gets an email warning). Team members acting on the owner's account cannot buy, send identity documents, release or read port-out details (403 phone_numbers_owner_only): only the owner or an Admin can. Not generally available yet: the API answers 403 phone_numbers_not_available until phone numbers are available for the account (phone_numbers_read config answers enabled: false). Needs the user's approval: call it first without confirmed to get a preview (nothing is sent), show the user exactly what will go out, and repeat the call with confirmed: true only after they approve.

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": {
      "number_id": "<number_id>"
    },
    "name": "release_phone_number"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoThe API's confirmation: must be true, after the user approved releasing this number. Without it nothing is released.
confirmedNoSet to true only after the user has seen the preview this tool returns without it and approved it. Without it nothing is sent.
number_idYesUpload-Post id of the number (`pn_...`), from phone_numbers_read `list`.

Output Schema

NameRequiredDescriptionDefault
resultNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.29.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, yet the description goes well beyond them: what stops working (SMS, calls, WhatsApp verification), that the carrier may reassign the number, that billing stops without proration refund, the 7-day grace period after subscription end, and the exact 400/403/404 error codes. The only deduction is the overlapping, slightly conflicting description of the two confirmation flags, which muddies the safety model it is trying to establish.

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 destructive consequence is correctly front-loaded and error codes are compact, but the block is dense and the final paragraph restates the approval/preview flow already covered by `confirm` in the opening sentences, creating redundancy and a self-inconsistency about which parameter the preview applies to.

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, permission-gated, not-yet-GA tool this covers everything an agent needs: irreversibility, side effects, billing, error codes, role restrictions, feature-availability check via `config`, and the approval workflow. An output schema exists, so return-value detail is correctly omitted.

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 100%, so the schema already documents number_id, confirm and confirmed, including the preview requirement. The description adds the concrete `400 confirmation_required` consequence, but then describes a second gate (`confirmed`) with its own separate preview flow, leaving the agent unsure whether both flags are required or which one actually triggers the release.

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 ('Give an Upload-Post phone number back') and immediately names the sibling read tool and `port_out_info` as the alternative path for keeping the number. An agent can distinguish this from phone_numbers_read and manage_phone_number without opening a schema.

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?

Gives explicit when-to-use (releasing a number you no longer want) and when-not-to-use (use `port_out_info` to port the number to another carrier), plus hard prerequisites: user approval, owner/Admin role, and availability of the phone numbers feature. Alternatives and exclusions are both named.

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

Deploy Server

Other Tools