Skip to main content
Glama

request_refund

Destructive

[Buy] Buyer refund before confirm: returns escrowed gas, cancels order. After confirm, use dispute_purchase.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
reasonNo
purchaseIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already indicate destructiveHint=true and readOnlyHint=false. The description adds meaningful context beyond that by explaining the specific effects: 'returns escrowed gas, cancels order' and clarifies the timing restriction. No contradiction with annotations.

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?

Two concise sentences, front-loaded with the core purpose, and no wasted words. The structure efficiently communicates the key information.

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

Completeness3/5

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

The description covers the high-level purpose and usage timing well, but omits any parameter details, which is a notable gap for a 2-param tool. However, the tool is simple and annotations provide safety context, so it's minimally viable.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries full responsibility for explaining parameters. It does not mention purchaseId or reason, offering no guidance on required vs optional inputs or their meaning. This fails to compensate for the schema 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?

The description clearly states the action (buyer refund before confirm), the resource (escrowed gas, order cancellation), and distinguishes it from the sibling tool dispute_purchase by specifying the timing ('before confirm' vs 'after confirm').

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?

Explicitly states when to use the tool ('before confirm') and provides a direct alternative ('After confirm, use dispute_purchase'). This fully guides the agent on tool selection.

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.