Skip to main content
Glama

Issue refund

issue_refund
Destructive

Preview and refund a paid invoice. Checks paid status, records the reason, and executes only after confirmation.

Instructions

Refund a paid invoice. Fails if the invoice is not in 'paid' status (e.g. already refunded). Dry-run by default: returns a preview with the amount and customer unless confirm:true is passed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
reasonYesShort human-readable reason for the refund, e.g. 'duplicate charge'. Recorded in the audit log.
confirmNoSafety gate. Omit or false for a DRY RUN that changes nothing and returns a preview of what would happen. Pass true only after the human has approved, to actually execute the change.
invoiceIdYesThe invoice id to refund, like INV-1013.
Behavior5/5

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

The description goes beyond the annotations (which only indicate destructive) by disclosing the dry-run default, preview behavior, and the confirm safety gate. It also mentions the failure condition. No contradiction with 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?

Two sentences, front-loaded with the action and then the safety behavior. Every word earns its place, with no redundancy or fluff.

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?

Covers the core behavior, failure condition, dry-run preview, and confirm flag. The only gap is that it doesn't describe the return value after a confirmed execution, but this is minor given the tool's simplicity and the absence of an output schema.

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?

The input schema already provides 100% coverage with detailed descriptions for all three parameters, including the safety semantics of confirm. The description adds no additional parameter-specific meaning beyond what the schema states, so the baseline of 3 applies.

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 specific verb+resource: 'Refund a paid invoice.' This clearly distinguishes it from siblings like update_ticket_status and extend_trial. It also adds a key precondition ('Fails if the invoice is not in paid status'), further clarifying its purpose.

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?

Provides clear context: only for paid invoices, dry-run by default, and requires confirm:true to execute. It doesn't explicitly enumerate alternatives, but the sibling tools are unrelated, so the usage context is sufficient.

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/NDilanka/tessera-mcp'

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