Skip to main content
Glama

Cancel a calls and SMS number order

cancel_voice_sms_number
DestructiveIdempotent

Cancel a calls and SMS number order that is still waiting for registration with the operator (status awaiting_registration): the number is cancelled and nothing is charged, because the fee is charged only after activation. A number that is already active cannot be cancelled this way (invalid_transition): releasing it is not available over MCP (portal, or DELETE /v1/voice-sms-numbers/{e164}) and its paid period is not refunded. A cancellation counts towards a limit of 2 cancelled orders per account in 30 days, after which ordering is blocked for a while (voice_sms_order_limit), so do not cancel and reorder in a loop. If the number is being activated at this moment the call returns in_progress: try again in a few minutes. Same data as POST /v1/voice-sms-numbers/{e164}/cancel (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": {
      "e164": "<e164>"
    },
    "name": "cancel_voice_sms_number"
  }
}

Input Schema

NameRequiredDescriptionDefault
e164YesCalls and SMS number whose waiting order to cancel, in E.164 format, for example +420292000001. Must be in status awaiting_registration, from list_voice_sms_numbers.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Goes well past the annotations (destructive/idempotent/open-world) by disclosing the billing consequence (nothing charged because the fee is post-activation), the non-refund behaviour, the rate limit of 2 cancellations per 30 days with ordering blocked afterwards, and the three concrete failure modes (invalid_transition, voice_sms_order_limit, in_progress) with remedies.

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?

Front-loads the action and its precondition, then layers billing, exclusions, limits, and the transient-error case. Sentences are dense but each carries distinct operational information, so nothing is wasted.

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?

There is no output schema, and the description closes that gap by pointing to the response schema at /openapi.json and naming the equivalent REST endpoint. For a single-parameter destructive mutation, no decision-relevant information appears to be 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% and the single e164 parameter is already documented, but the description adds operational meaning: the number must be in awaiting_registration state and can be sourced from list_voice_sms_numbers. That is a useful precondition the schema's own text only partly restates.

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: cancelling a calls-and-SMS number order that is still awaiting operator registration. It also states what it is not (an active number cannot be released this way), which separates it from any release/routing sibling without needing their names.

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?

Explicit preconditions ('status awaiting_registration'), explicit exclusions ('a number that is already active cannot be cancelled this way') with the correct alternative named (portal or DELETE /v1/voice-sms-numbers/{e164}), plus a retry rule for the in_progress case. The agent knows when to call, when not to, and what to do instead.

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.