Skip to main content
Glama

Refund an escrow to the payer

refund_escrow
Destructive

Refund an escrow to the payer. Payee only, while funded or submitted: gives the money back to the payer. Answers 501 feature_unavailable while stand-alone escrow is switched off (ESCROW_API_ENABLED).

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": {
      "escrow_id": "<escrow_id>"
    },
    "name": "refund_escrow"
  }
}

Input Schema

NameRequiredDescriptionDefault
escrow_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

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 readOnlyHint=false, and the description adds real substance on top: a role restriction (payee only), state preconditions (funded or submitted), and a specific failure mode (501 feature_unavailable when ESCROW_API_ENABLED is off). It does not say whether the refund is full or partial, or what the escrow state becomes afterwards, which keeps it from 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, zero filler, with the core action front-loaded and the preconditions and error mode following in order of importance. The parenthetical environment flag is the only mildly dense bit and it earns its place.

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?

For a one-parameter mutation with no output schema, the description covers role, state preconditions, and a known error mode, which is most of what an agent needs. It leaves the return value and post-refund escrow state unstated, and with no output schema there is nothing else to fill that gap.

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?

There is one parameter (escrow_id) with 0% schema description coverage, so the description must carry the load. It only implies that escrow_id identifies the escrow whose state must be funded or submitted, adding no format, sourcing, or lookup guidance beyond that.

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?

"Refund an escrow to the payer" gives a specific verb and resource, and the phrase "gives the money back to the payer" makes the direction of funds unambiguous, which implicitly separates it from release_escrow. It stops short of explicitly naming release_escrow or dispute_escrow as the alternatives, so the sibling differentiation rests on inference.

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?

"Payee only, while funded or submitted" states both the caller role and the escrow-state preconditions, which is strong when-to-use guidance. There is no explicit when-not-to-use or pointer to the alternative tool for other states or roles.

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