Skip to main content
Glama

create_invoice

Create a Lightning invoice to receive payment. Use get_invoice_status to check if paid.

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": {
      "amount_sats": "<amount_sats>"
    },
    "name": "create_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
memoNoDescription/memo for the invoice
amount_satsYesAmount in satoshis to request

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare this is a non-destructive, non-idempotent, closed-world write, so the baseline is covered. The description adds that the invoice is for receiving payment and should be polled via get_invoice_status, but omits meaningful traits: each call mints a new invoice (idempotentHint=false implies duplicates if retried), expiry/single-use semantics, and any auth requirement.

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?

Two short sentences with zero filler, with the primary action stated first and the follow-up routing second. Nothing could be removed without losing information.

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?

A simple two-parameter tool with full schema coverage and annotations, so the essentials are present. However, with no output schema, the description never says what comes back (a bolt11 invoice string and/or payment hash) or how the agent should present it to the payer — the one gap that matters for a payment-request tool.

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%, with amount_sats documented as satoshis with minimum 1 and memo capped at 640 characters, so the baseline is 3. The description adds no meaning beyond the schema — no mention of units, minimums, or how the memo surfaces on the invoice.

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 and resource — "Create a Lightning invoice" — plus the intent ("to receive payment"), which separates it from read-only siblings like get_invoice_status. It does not differentiate from adjacent creation siblings such as get_deposit_invoice or create_withdraw_link, which also produce payment requests.

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?

Gives clear lifecycle guidance by naming the follow-up tool ("Use get_invoice_status to check if paid"), so the agent knows the next step after creating. It offers no when-not-to-use guidance and doesn't distinguish this from other invoice-producing siblings, leaving selection partly inferred.

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.