Skip to main content
Glama

Request refund

request_refund

Request a refund against a payment. Creates a pending refund for the given amount (defaults to the payment's full amount).

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": "request_refund"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountNoRefund amount; omit for the full payment amount.
reasonNo
payment_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare it is not read-only, not destructive, and not idempotent, so the safety profile is covered. The description adds genuinely new behavioral context by stating the refund is created in a *pending* state and that amount defaults to the full payment — information an agent cannot get from the annotations. It still says nothing about who approves a pending refund, amount limits, or what happens on repeat calls.

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-loaded with the action and then the key output semantics (pending) and the default. No wasted wording.

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 mutation with no output schema, the pending-state behavior is the most important thing to disclose and it is disclosed. However, nothing about the undocumented reason parameter, approval flow, or how this differs from refund_payment is present, leaving real gaps for an agent choosing and calling the tool.

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 only 33%, and the description only restates the amount default that the schema already documents. The reason parameter has no explanation in either the schema or the description, so the description does not compensate for the coverage gap.

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?

States a specific verb and resource ("Request a refund against a payment") and clarifies the outcome is a pending refund rather than an immediate one. It does not distinguish itself from the sibling refund_payment, leaving an agent to guess which of the two to call.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use guidance, no prerequisites (e.g. payment must be settled), and no mention of the closely named refund_payment alternative. The only usage-adjacent detail is the amount default.

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