Skip to main content
Glama

Refund from wallet

refund_from_wallet
Destructive

Manually refund an amount from a client's wallet balance to reduce their credit, such as paying out unused credit outside the system.

Instructions

Manually refund an amount from a client's wallet balance (e.g. paying out unused credit outside the system). DESTRUCTIVE: reduces the client's credit balance.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
amountYes
client_idYesClient UUID
account_idNoAccount UUID
gateway_idNoGateway UUID
currency_codeYesISO code of the refund currency, e.g. "USD"
transaction_idNoExternal reference for the refund
Behavior4/5

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

Annotations already declare destructiveHint=true, and the description reinforces this with 'DESTRUCTIVE: reduces the client's credit balance', adding the specific consequence. It also notes the operation is 'Manually' performed, providing extra behavioral context beyond the annotations.

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 two sentences: the first states the action and example, the second warns about destructiveness. It is front-loaded and concise, with no redundant or vague wording.

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

Completeness4/5

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

Given the tool's moderate complexity (6 params, 3 required) and absence of an output schema, the description covers the core action and destructive consequence. However, it does not explicitly distinguish this from refund_invoice/refund_payment or describe the response format, leaving minor gaps.

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 83%, so the baseline is 3. The description adds no additional parameter-level details; it only mentions 'client's wallet balance', which maps to client_id but doesn't explain parameters like amount or currency_code beyond what the schema already provides.

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 clearly states the action with a specific verb and resource: 'refund an amount from a client's wallet balance', and gives an example use case ('paying out unused credit outside the system'). This distinguishes it from sibling tools like refund_invoice and refund_payment.

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?

The description provides a concrete context for when to use the tool ('paying out unused credit outside the system') and implies wallet-specific refunds, which differentiates it from invoice/payment refunds. However, it does not explicitly mention alternative tools or say when not to use it.

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

Install Server

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/spidyhost-crm/upmind-mcp-server'

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