Skip to main content
Glama

neutron_create_lightning_invoice

Create a Lightning invoice to receive Bitcoin and return a BOLT11 payment request with a QR code page for collecting payments.

Instructions

Create a Lightning invoice to receive Bitcoin. Returns a BOLT11 payment request and QR code page.

Examples:

  • Receive 10,000 sats: amountSats=10000

  • Receive 0.001 BTC: amountBtc=0.001

  • With tracking: amountSats=5000, extRefId="order-123"

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

Input Schema

NameRequiredDescriptionDefault
memoNoInvoice description shown to the payer
extRefIdNoYour reference ID for tracking (e.g. order ID)
amountBtcNoAmount in BTC (e.g. 0.0001). Use this OR amountSats.
amountSatsNoAmount in satoshis (e.g. 10000 = 10,000 sats). Use this OR amountBtc.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.10

TDQS

A3.6/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 burden; it usefully discloses the return artifacts (BOLT11 string plus QR page). However it omits material behavior such as invoice expiry, whether a zero-amount invoice is allowed when amount fields are skipped, whether funds are moved, and any auth requirements.

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?

One front-loaded sentence covers purpose and return value, followed by three short examples that each demonstrate a distinct usage pattern. There is no filler and nothing is buried.

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 four-parameter creation tool with no output schema, the description adequately explains what is produced (BOLT11 plus QR page) and how to specify amounts. It falls short only on lifecycle details like invoice expiry and authentication needs.

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 description coverage is 100%, so the baseline is 3; the schema already documents memo, extRefId, amountBtc and amountSats including the either/or relationship. The examples restate those semantics with concrete values rather than adding new meaning, so no credit above baseline is warranted.

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 concrete verb and resource ('Create a Lightning invoice to receive Bitcoin') and adds what the caller gets back ('BOLT11 payment request and QR code page'). It is distinguishable from siblings like neutron_create_transaction by naming the Lightning-invoice resource, though it never explicitly contrasts with that sibling.

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 shown only through worked examples of amount formats and tracking, which implies the tool's role but never states when to prefer it over neutron_create_transaction or what prerequisites exist. No when-not-to-use conditions or prerequisite (e.g. authentication/wallet setup) are given.

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