Skip to main content
Glama

Refund claim of a failed domain order (free)

domain_refund

Free: claims the refund of a domain order made without an account that failed after payment, with its payment proof (l402 or cashu), within 30 days. Checked at once; paid by hand over Lightning to destination. Completed orders are final.

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": {
      "destination": "<destination>"
    },
    "name": "domain_refund"
  }
}

Input Schema

NameRequiredDescriptionDefault
l402NoThe '<macaroon>:<preimage>' this domain's order was paid with.
cashuNoThe cashu token this domain's order was paid with.
amount_satNoDefault: everything refundable.
destinationYesYour Lightning address (name@host) or an LNURL for the refund.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only say this is a non-readonly, non-idempotent, non-destructive open-world mutation. The description adds real context beyond that: it is free, the claim is checked immediately, the payout is manual over Lightning to the given destination, and there is a 30-day window. It leaves one behavioral gap: nothing says what happens on a duplicate or repeat claim, which matters given idempotentHint=false.

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?

One dense sentence-fronted block that leads with 'Free' and the action, then stacks eligibility, timing and finality. Every clause carries information, though the run-on construction makes it slightly harder to scan than a short bulleted precondition list would be.

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?

For a 4-parameter mutation with full schema descriptions, existing annotations and no output schema, the description covers eligibility, cost, processing model and payout mechanism. Missing only edge-case behavior (repeat claims, rejection reasons), which prevents a 5.

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 coverage is 100%, so the schema already explains destination, l402, cashu and amount_sat individually. The description only adds that proof must be one of l402 or cashu, which is modest incremental meaning; it adds no format or precedence guidance for supplying both.

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?

States a specific verb (claims the refund) and resource (a domain order) plus the exact eligibility shape: order made without an account, failed after payment, backed by l402 or cashu proof. That 'without an account' qualifier is what separates it from the account-based order siblings, so an agent can route correctly without opening schemas.

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?

Gives clear preconditions (paid order that failed, no account, proof available, within 30 days) and one explicit exclusion ('Completed orders are final'), which tells the agent when not to use it. It stops short of naming a specific alternative sibling to use when the order was made with an account.

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