Skip to main content
Glama

escrow_refund_payout

Refund a failed Lightning payout swap to an Ark address from an Arkade wallet on the escrow's Arkade server, restoring funds when a payout cannot complete.

Instructions

Refund a failed Lightning payout swap to an Ark address (from an Arkade wallet on this escrow's Arkade server)

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": {
      "id": "<id>"
    },
    "name": "escrow_refund_payout"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
toNoArk address from an Arkade wallet on this escrow's Arkade server (escrow_limits arkade.url; mainnet https://arkade.computer). Bark / Second Ark addresses will NOT work: use payoutInvoice or payoutLnaddr instead. Checked before anything is signed

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It conveys that funds are moved back, but says nothing about whether the refund is fixed-amount, whether it is irreversible, what permissions or escrow state are required, or what happens if the swap did not actually fail. The useful validation detail ('Checked before anything is signed') sits in the schema, not the description.

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?

A single front-loaded sentence with the action verb first and the destination constraint parenthetically scoped. No wasted words, though the parenthetical nesting slightly buries the server restriction.

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

Completeness2/5

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

This is a fund-moving mutation with no annotations, no output schema, and an undocumented required 'id' parameter. For that risk profile the description is too thin — it should explain what state the escrow must be in, what the refund amount is based on, and what a caller gets back.

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

Parameters2/5

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

Schema coverage is 50%: the 'to' parameter is richly documented, while 'id' has no description anywhere. The description only restates the Ark-address constraint already stated more completely in the schema, so it adds almost no meaning beyond the structured field and leaves the required identifier unexplained.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb-plus-resource ('Refund a failed Lightning payout swap') and constrains the destination to an Ark address tied to this escrow's Arkade server. It is clearly distinguishable from generic escrow_refund or swap_refund work, though it never names a sibling to reinforce the boundary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: the reader infers this is the tool for recovering funds from a payout swap that failed. There is no explicit statement of preconditions (the swap must have failed), no when-not guidance, and no pointer to payoutInvoice/payoutLnaddr alternatives in the description itself — that hint lives only in the schema.

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