Skip to main content
Glama

Refund Payment

payment_refund
DestructiveIdempotent

Return received funds to the recorded original source to refund a payment request; set execute to true to confirm.

Instructions

Refund a payment request by sending received funds back to their recorded original source. Requires confirmation with execute: true.

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": {
      "id": "<id>"
    },
    "name": "payment_refund"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesPayment request ID
executeNoSet to true to execute the refund (dry-run otherwise)
confirmAddressNoDestination address for the refund (must match a recorded original source)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv6.2.1

TDQS

A4.2/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, and the description adds the important behavioral constraint that funds go only to the recorded original source, plus the two-step confirm/execute flow. It does not state whether refunds are full or partial (no amount parameter exists) or what happens on failure, but it adds real context beyond the 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 short sentences, front-loading the action and following with the safety prerequisite; no filler or redundant restatement of the name.

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 destructive, non-open-world mutation with a fully documented schema and no output schema, the description covers the essential safety gate and destination constraint. The main remaining gap is whether the refund is always for the full amount and what a dry-run response looks like.

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 all three parameters are already documented, including 'execute' as the dry-run switch and 'confirmAddress' as the destination. The description only reinforces the source-matching constraint already implied by the schema, adding little new parameter meaning — baseline 3 applies.

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 ('Refund a payment request') plus the mechanism ('sending received funds back to their recorded original source'), which cleanly separates it from siblings like payment_receive, payment_create, and payment_status.

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 operating condition — the call is a dry-run unless 'execute: true' is supplied, so the agent knows confirmation is required before funds move. It does not name alternative tools or state when a refund is inappropriate, so it stops short of full when/when-not guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.