Skip to main content
Glama

request_refund

Request a manual refund review for a failed AI service payment. Provides a 48-hour ticket and operator notification for errors, timeouts, or wrong outputs.

Instructions

Open a MANUAL 48-hour refund review ticket for a service that FAILED (error, timeout, wrong output). Sends an email to the operator. DO NOT call this for unused-minute refunds on metered services (ai_call, voice_bridge) — those are returned automatically as an LNURL-withdraw link in the service's own response under refund.lnurl_withdraw, no manual ticket needed. If you call this on a metered payment that already has a pending LNURL refund, this tool will detect it and return the existing LNURL instead of creating a duplicate ticket.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paymentIdYesThe payment ID from a failed service call
invoiceYesLightning address (e.g., user@wallet.com) or bolt11 invoice for the refund
emailNoOptional email address for follow-up
feedbackNoOptional description of what went wrong (max 2000 chars)
Behavior5/5

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

With no annotations, the description fully discloses key behaviors: it sends an email to the operator, detects duplicate tickets, and returns existing LNURL for metered services, providing comprehensive transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Description is thorough but slightly verbose; however, each sentence adds value and the structure is logical with clear sections for usage and behavior.

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?

Given no output schema or annotations, the description covers purpose, usage guidelines, parameter context, behavioral nuances, and edge cases (duplicate detection, metered service handling), making it fully complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Adds significant meaning beyond the 100% schema coverage by explaining context (paymentId from failed call, invoice as lightning address or bolt11, optional email for follow-up, feedback max 2000 chars) and constraints not in schema.

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 tool opens a manual 48-hour refund review ticket for a failed service (error, timeout, wrong output) and distinguishes it from automatic refunds for metered services, making the purpose highly specific and differentiated from siblings.

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?

Explicit instructions on when to use (failed service) and when not to (unused-minute refunds on metered services), with alternative explanation (automatic LNURL withdrawal) and duplicate detection behavior.

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/cnghockey/sats4ai-mcp-server'

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