Skip to main content
Glama

Refund a transaction

braintree_refund_transaction
Destructive

DESTRUCTIVE. Refund a SETTLED (or settling) transaction, returning money to the customer. Use the GraphQL global transaction ID. Omit amount for a full refund, or pass a decimal string for a partial refund. GraphQL mutation refundTransaction. For transactions not yet settled, use braintree_void_transaction instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
amountNoPartial-refund amount as a decimal string (e.g. "10.00"). Omit for a full refund.
transactionIdYesGraphQL global transaction ID to refund.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations indicate destructiveHint=true, and description adds context: it's DESTRUCTIVE, returns money, and is a GraphQL mutation. Full vs partial refund behavior disclosed.

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?

Three concise sentences, each earning its place: flagging destructiveness, core action, alternative, and parameter guidance. Front-loaded and efficient.

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?

Given no output schema, the description covers the mutation's purpose and parameter behavior well. Sibling context and alternative tool named. Slightly less on return format, but adequate.

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 covers both parameters with descriptions. Description adds value by explaining amount omission for full refund and that transactionId is a GraphQL global ID. Baseline 3 due to high coverage, but extra context justifies 4.

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 tool refunds a SETTLED transaction using a GraphQL global transaction ID, and distinguishes from voiding unsettled transactions.

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 specifies when to use (settled/settling transactions) and when to use an alternative (braintree_void_transaction for unsettled). Also explains full vs partial refund.

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.