Skip to main content
Glama
aibtcdev
by aibtcdev

lightning_create_invoice

Create a BOLT-11 Lightning invoice to receive a payment in satoshis into the embedded Lightning wallet, with an optional memo attached.

Instructions

Create a BOLT-11 Lightning invoice that can receive a payment into the embedded Lightning wallet.

Tip: call earning_opportunities to see how to put your assets to work.

Input Schema

NameRequiredDescriptionDefault
memoNoOptional description attached to the invoice
amountSatsYesAmount to request in satoshis

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.77.0

TDQS

B3/5.0
Behavior2/5

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

With no annotations at all, the description carries the full burden, yet it says nothing about prerequisites (e.g., whether the Lightning wallet must be created or unlocked), invoice expiry, or whether the returned invoice reserves funds. It only identifies the tool as a receiving operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first sentence is efficient and front-loaded. The second sentence is a promotional pointer to an unrelated tool and does not help an agent invoke this one, which weakens the structure.

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?

There is no output schema and no annotations, so the description should at least indicate the return shape (a BOLT-11 string) and operational prerequisites. Those gaps leave an agent without enough context to call this confidently in a complex wallet ecosystem.

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% for both amountSats and memo, so the schema already explains both parameters. The description adds no additional parameter meaning such as units or constraints beyond what is structured, so the baseline of 3 applies.

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 a BOLT-11 Lightning invoice that receives payment into the embedded Lightning wallet. That is enough to distinguish it from lightning_pay_invoice, though it does not explicitly differentiate itself from the similarly named sibling lightning_create.

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 implied by 'can receive a payment' but there is no explicit statement of when to use this versus alternatives such as lightning_create (wallet setup) or lightning_pay_invoice (sending). The closing tip about earning_opportunities does not provide guidance for invoking this tool.

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

Deploy Server

Other Tools