Skip to main content
Glama
sovereign-node-mcp
by aipp-key

pay_lightning_invoice

Pay any BOLT-11 Lightning invoice from the agent wallet and return the cryptographic preimage and routing fee.

Instructions

Autonomously pay any BOLT-11 Lightning invoice from the agent wallet and return cryptographic preimage and routing fee.

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": "pay_lightning_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
invoiceYesBOLT-11 Lightning invoice string (starts with lnbc...)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.3

TDQS

A3.5/5.0
Behavior3/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 does disclose two meaningful traits beyond the schema: payment happens autonomously without a confirmation step, and the result includes a preimage and routing fee. It omits what a fund-moving tool most needs — that the payment is irreversible, spending/fee limits, and failure behavior for expired or unpayable invoices.

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?

A single dense sentence with the action, funding source, and return values front-loaded; no filler or redundancy.

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?

Return values are described explicitly, which compensates for the absent output schema, and the single required parameter is fully documented. However, for an irreversible payment tool with zero annotation coverage and no output schema, the description should say more about safety limits and error conditions.

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 one parameter at 100% schema description coverage, so the schema already explains the BOLT-11 string format and the 'lnbc...' prefix. The description adds nothing beyond that ('any BOLT-11 Lightning invoice') other than noting the scope is unrestricted, so the baseline 3 applies.

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 and resource ('pay ... BOLT-11 Lightning invoice'), the funding source ('from the agent wallet'), and the return payload ('cryptographic preimage and routing fee'). Nothing in the sibling list (mempool/fee/fraud/transaction-simulation tools) does anything similar, so an agent can route to it unambiguously.

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

Usage Guidelines2/5

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

No when-to-use or when-not-to-use guidance and no named alternative; the only contextual cue is the word 'Autonomously', which implies execution without confirmation but is not framed as guidance. An agent gets no signal about preconditions such as invoice validity, expiry, or wallet balance before invoking.

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