Skip to main content
Glama

withdraw

Destructive

Withdraw funds from the operator account to an external Lightning invoice (minimum 10 sats; no platform fee, only the Lightning routing fee at cost; unused routing reserve refunded). REQUIRES OPERATOR KEY. Subject to a security cooldown after key rotation.

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": {
      "invoice": "<invoice>"
    },
    "name": "withdraw"
  }
}

Input Schema

NameRequiredDescriptionDefault
invoiceYesBOLT11 invoice to pay out to

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already flag destructive=true, openWorld=true, and idempotent=false, so the safety profile is covered; the description still adds real value by disclosing the fee model (no platform fee, routing fee at cost), the unused routing reserve being refunded, the 10-sat floor, and the post-key-rotation cooldown. Gaps remain on cooldown duration and failure behavior (e.g., insufficient balance), which keeps it from a 5.

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?

Front-loaded with the core action, with cost and prerequisite details packed into a single parenthetical and a short trailing sentence. No filler or redundant restatement of the name.

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

Completeness3/5

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

For a destructive, open-world payout tool the description covers cost, auth, and cooldown well, but with no output schema it says nothing about what comes back (payment result, amount debited, error cases). An agent can call it correctly, but cannot predict the response shape or failure modes.

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?

There is a single parameter with 100% schema description coverage, so the schema already explains 'BOLT11 invoice to pay out to' and the baseline is 3. The description adds only marginal meaning, clarifying that the target is external and that the payable amount is subject to a 10-sat minimum.

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?

States a specific verb+resource pair ('Withdraw funds from the operator account') plus the destination ('external Lightning invoice'), which is concrete and unambiguous. It does not, however, differentiate itself from siblings such as create_withdraw_link or claim_lnurl_withdraw, so an agent must infer that this is the direct payout path.

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?

Prerequisites are given (operator key required, minimum 10 sats, cooldown after key rotation), which implies when the call is permitted. There is no explicit routing guidance, though -- nothing says when to prefer this over create_withdraw_link or claim_lnurl_withdraw, and no statement of when it should not be used.

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.