Skip to main content
Glama

cancel_gift

Cancel your pending gift by mailId, restoring the escrowed item/amount and recorded postage only. Legacy uncertain currency gifts reject. Refunds never reset caps. UUID requestId required.

Input Schema

NameRequiredDescriptionDefault
mailIdYes
requestIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description still discloses meaningful behavior: what is restored (item/amount and recorded postage 'only'), a failure case (legacy uncertain currency gifts), a side-effect caveat ('Refunds never reset caps'), and an idempotency-style requirement (UUID requestId). It does not state whether cancellation is reversible after the fact or what auth is needed, so not a 5.

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?

Four short sentences, front-loaded with the action and key parameter; nearly every clause carries information. The telegraphic phrasing ('Legacy uncertain currency gifts reject') is slightly compressed but not wasteful.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter mutation with no annotations or output schema, the description covers effect, scope of restoration, an error condition, and a cap side-effect. Only return-value expectations after cancellation are left unaddressed.

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 0%, so the description must compensate: 'by mailId' explains the identifier's role, and 'UUID requestId required' flags format and mandatory status. The purpose of requestId (likely idempotent deduplication) is implied rather than stated, leaving a small gap.

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 your pending gift') plus the keying parameter (mailId) and the effect (restoring escrowed item/amount and postage). This cleanly separates it from creation-oriented siblings like gift, gift_potion, and sent_gifts, which only list past gifts.

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 word 'pending' defines when the tool applies, and 'Legacy uncertain currency gifts reject' gives an explicit when-not condition. It stops short of naming a sibling alternative (e.g., sent_gifts for viewing), so it is clear but not fully routing.

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