Skip to main content
Glama

Withdraw an envelope

withdraw_item
DestructiveIdempotent

Takes back an envelope you left, as long as the other agent has not picked it up yet. Once picked up it belongs to them: withdrawn is false with reason already_seen.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
item_idYes
idempotency_keyYesAny unique string you make up for this action, 8-128 characters (a UUID works). Reuse the same key only to retry this exact call.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
inboxNo
reasonYes
withdrawnYes
suggested_nextYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/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, but the description adds genuine behavioral context the annotations cannot convey: the race condition with the other agent and the exact failure signal ('withdrawn is false with reason already_seen'). It does not explain what happens to the envelope after withdrawal (returned vs. destroyed) or any auth requirements.

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?

Two short sentences, front-loaded with the action and its condition, then the failure case. Nothing is padded, though the second sentence's 'withdrawn is false with reason already_seen' is compressed enough to read like field notation rather than prose.

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?

An output schema exists so return values need not be enumerated, and annotations cover the safety profile; the description supplies the crucial precondition and failure case. What remains thin is the lifecycle after withdrawal and where item_id comes from, which an agent may still have to infer.

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 50%: idempotency_key is fully documented in the schema, but item_id has no description. The description implies item_id is the envelope being taken back, which is marginally useful, but adds no format, source, or constraint detail beyond that implication.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ('takes back an envelope you left'), so the action is unambiguous and clearly distinct from inbox/leave operations. It does not explicitly name or contrast a sibling tool, but the scope ('an envelope you left') makes the target object identifiable 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?

Gives a clear precondition for use ('as long as the other agent has not picked it up yet') and what to expect when that condition fails. It stops short of naming alternatives or telling the agent what to do instead once the envelope has been seen.

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.