Skip to main content
Glama

Refund a transaction

refund_transaction
Destructive

Refund a transaction to return money to the customer. This irreversible action moves real funds and requires explicit confirmation.

Instructions

Refund a transaction, returning the money to the customer. This moves real funds and cannot be undone: ThriveCart passes the refund straight to the payment gateway, and a refund cannot be reversed there. Refunding does not cancel anything, so a refunded subscription payment leaves the subscription billing on its normal schedule; use cancel_subscription as well if that is what was meant. Refuses to run without confirm: true. Check the amount with get_transactions or get_customer before calling, because the order id alone does not tell you how much is about to move.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountNoWhich configured ThriveCart account to use, by name (for example 'navid-media'). Defaults to the first configured account. Call list_accounts to see them. Figures from one cart never include another.
confirmNoMust be true for this to run. This moves money or ends a customer's access and cannot be undone, so it is refused without an explicit confirmation.
order_idYesThe order or subscription id, from get_customer or get_transactions.
Install Server

TDQS

A4.5/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, but the description adds important context: the refund is irreversible at the payment gateway, and it does not cancel subscription billing. It also reveals that the tool refuses to run without confirm: true. These details go beyond the annotations and clarify the operational impact.

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?

The description is efficiently structured: it starts with the core action, then explains irreversibility, then the non-cancellation behavior, then the confirm requirement, and finally a safety tip about checking the amount. Every sentence adds distinct value with no redundancy.

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 financially sensitive, irreversible operation, the description covers all critical aspects: purpose, irreversibility, the confirm gate, the distinction from cancellation, and a pre-call safety check. There is no output schema needed for a void action, and nothing essential is missing.

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 description coverage is 100%, so all three parameters (account, confirm, order_id) are already documented in the schema. The description adds no new parameter-level semantics beyond what the schema provides, such as the source of order_id or the default for account. Thus the baseline 3 is appropriate.

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?

The description states a clear verb ('Refund') and resource ('a transaction'), and explicitly distinguishes it from cancel_subscription by noting that refunding does not cancel anything. This makes its purpose unambiguous and separates it from the sibling cancellation tools.

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?

Provides explicit when-to-use guidance: refunds are for returning money, and if cancellation is intended, it says 'use cancel_subscription as well'. It also instructs to check the amount with get_transactions or get_customer before calling, and notes the confirm: true requirement. This fully covers prerequisites and alternatives.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/thenavidm/thrivecart-mcp-cli'

If you have feedback or need assistance with the MCP directory API, please join our Discord server