Skip to main content
Glama

cancel_sms_rental

DestructiveIdempotent

Cancel a long-term SMS rental and refund the full amount to the wallet. Only works for rentals LONGER than 15 days, within 2 hours of purchase, AND only if the number has NOT received any message — this mirrors the provider refund rules, so a 15-day-or-shorter rental, a passed window, or a code that already arrived returns a clear reason and refunds nothing. Use for a genuine change of mind or a wrong purchase shortly after renting. The receiptId comes from rent_sms_number or list_sms_orders. Requires a connected agent wallet.

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": {
      "receiptId": "<receiptId>"
    },
    "name": "cancel_sms_rental"
  }
}

Input Schema

NameRequiredDescriptionDefault
receiptIdYesThe rental receipt ID from rent_sms_number or list_sms_orders

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the destructive/idempotent hints by explaining the refund amount, the exact provider refund rules that gate success, that failures return a clear reason with no refund, and that a connected agent wallet is required. That is precisely the operational context annotations cannot convey.

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-loaded with the action and the payoff, then the eligibility constraints, then the use case and parameter provenance. Dense but every sentence carries distinct information an agent needs before calling.

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?

With one required parameter, no output schema, and annotations covering the safety profile, the description supplies everything missing: prerequisites, eligibility rules, failure behavior, and where the ID comes from. Nothing an agent needs to call it correctly is absent.

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 single receiptId parameter is already fully documented, and the description's note that receiptId comes from rent_sms_number or list_sms_orders largely restates the schema text. Baseline 3 applies since the description adds no new syntax, format, or constraint information about the parameter.

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 (cancel an SMS rental) plus the outcome (full refund to wallet), which cleanly separates it from cancel_sms_verification, cancel_esim, and extend_sms_rental among the siblings. An agent can pick it without opening the 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?

The when-it-works conditions are unusually explicit: rental longer than 15 days, within 2 hours of purchase, and no message ever received, plus the named failure modes and the intended use cases (change of mind, wrong purchase). It stops short of naming a sibling alternative for cases that fall outside the window, which is the only gap.

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.

Resources