Skip to main content
Glama

Refund payment

refund_payment
Destructive

Refund a succeeded Stripe payment (full or partial). Participants may only refund their own payment, and a participant-initiated refund requires admin approval before it runs.

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": {
      "payment_id": "<payment_id>"
    },
    "name": "refund_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountNoAmount to refund; defaults to the full remaining (un-refunded) balance.
reasonNo
payment_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, so the safety profile is covered. The description adds real value beyond that: the 'succeeded' precondition, the partial-refund semantics, the ownership restriction, and the admin-approval gate before execution. It omits what a retry does given non-idempotency and what the result looks like, which keeps it below 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.

Conciseness4/5

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

Two tight sentences with the operation stated first and the authorization constraints second; every clause carries information. The term 'participants' is used without definition, which is the only real source of ambiguity in an otherwise clean structure.

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?

There is no output schema, so the description could reasonably say what a successful refund returns and what happens on failure, and it never addresses the non-idempotent retry hazard the annotations flag. For a destructive financial mutation, the definition covers authorization and preconditions well but leaves the agent without enough to handle errors or verify success.

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

Parameters2/5

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

Schema coverage is only 33%: 'amount' is documented (including its full-balance default) and the description's 'full or partial' adds marginal reinforcement. Neither 'payment_id' nor 'reason' is explained anywhere, and with coverage below 50% the description is expected to compensate for that gap but does not.

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?

The description uses a specific verb+resource ('Refund a succeeded Stripe payment') and scopes it to full or partial amounts, so an agent knows exactly what operation this is. It stops short of naming the sibling 'request_refund' to draw a hard boundary between the two refund paths, so it does not fully meet the sibling-differentiation bar for a 5.

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?

It gives clear preconditions and authorization context: only succeeded payments can be refunded, participants can only refund their own payment, and participant-initiated refunds need admin approval first. This implicitly routes a non-admin agent toward the approval/request path, but the alternative tool is never named and there is no explicit 'use X instead when Y' statement.

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