Skip to main content
Glama

refundMoneyTransaction

Destructive

Refund a succeeded money transaction and return the amount and currency refunded. This sends real money back: a Stripe, WayForPay or KakaoPay payment is refunded to the payer's card and cannot be undone; an external payment only records the refund, so the money has to be returned outside Spacebring. Omit transaction.amount to refund everything still refundable, or pass a smaller amount in major units for a partial refund. Each call is a new refund until nothing is left to refund: when a call fails or times out, check payment.refunds with getMoneyTransaction before calling again. Get transactionId from getMoneyTransactions. Never invent UUIDs; only use values from prior tool responses.

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": {
      "transactionId": "<transactionId>"
    },
    "name": "refundMoneyTransaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
transactionNoRefund options for the transaction.
transactionIdYesThe id of the transaction.

Output Schema

NameRequiredDescriptionDefault
refundYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, but the description adds the crucial context the annotations cannot: real money leaves via Stripe/WayForPay/KakaoPay, is irreversible, and for external payments only a record is written so funds must be returned out-of-band. It further discloses that repeated calls stack new refunds until the refundable balance is exhausted — exactly the risk profile an agent needs.

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?

Purpose is front-loaded in the first sentence, followed by the irreversible-money warning, then parameter guidance, then the retry and ID-sourcing rules. No sentence is filler — each clause carries safety or usage information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, money-moving tool with nested parameters, the description covers eligibility, irreversibility, provider-specific behavior, partial refunds, and safe retry procedure. Since an output schema exists, the brief note about the returned amount and currency is sufficient rather than redundant.

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 coverage is 100%, so baseline is 3; the description earns extra by clarifying the omit-vs-smaller semantics of transaction.amount and by constraining transactionId to values obtained from prior tool responses rather than invented. It mostly restates the schema's own wording on amount, keeping it from a 5.

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?

Opens with a specific verb+resource ("Refund a succeeded money transaction") and states the effect ("return the amount and currency refunded"). It is clearly distinct from the getMoneyTransaction(s) siblings, which only read data, and the "succeeded" qualifier scopes which transactions are eligible.

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?

Gives explicit conditional usage: omit transaction.amount for a full refund, pass a smaller amount for a partial one. It also directs the agent to getMoneyTransaction for checking payment.refunds after a failure/timeout and to getMoneyTransactions for the transactionId, so the dependencies and retry path are spelled out rather than inferred.

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