Skip to main content
Glama

create_withdraw_link

Destructive

Create an LNURL-withdraw link for the operator to receive funds. Opens in browser for QR code scanning with any Lightning wallet. Omit amount_sats to sweep full balance (minimum 10 sats after the routing reserve). No platform fee. REQUIRES OPERATOR KEY.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create_withdraw_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
amount_satsNoAmount in sats to withdraw (omit to sweep full balance)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, readOnlyHint=false and idempotentHint=false, so the safety profile is covered; the description adds non-obvious context on top: no platform fee, a 10-sat floor net of the routing reserve, browser/QR presentation, and an explicit operator-key authorization requirement. What it omits is why the call is destructive (e.g., anyone holding the link can drain the balance) and whether repeated calls create multiple independent links, which the non-idempotent hint implies.

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?

Five short, front-loaded sentences with zero filler — purpose first, then mechanics, then the sweep rule, fee, and authorization requirement. Each clause carries distinct information and nothing is repeated from the schema verbatim.

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 single-optional-parameter tool with no output schema, the description covers purpose, the omit-to-sweep branch, economic caveats, and auth needs. The remaining gap is the return value: it implies a link/QR is produced but never says the response contains a URL or how long it stays valid, which matters for a destructive one-shot operation.

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

Parameters4/5

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

Schema description coverage is 100%, so the baseline is 3, but the description earns more by explaining the meaning behind the minimum: the 10-sat floor applies after the routing reserve, so a sweep can yield less than the balance suggests. That is semantic detail the schema's 'minimum: 10' and 'omit to sweep full balance' do not convey.

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 states a specific verb and resource: 'Create an LNURL-withdraw link for the operator to receive funds.' That is unambiguous about what is produced and who benefits. It does not, however, name the counterpart sibling (claim_lnurl_withdraw), so the create-vs-claim distinction is only inferable from the phrase 'for the operator to receive funds.'

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?

It gives one concrete usage decision — omit amount_sats to sweep the full balance — which is genuinely actionable. Beyond that, there is no explicit when-to-use versus when-not guidance, no mention of the claim_lnurl_withdraw sibling that presumably consumes this link, and no stated limits such as link expiry or max amount.

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.