Skip to main content
Glama
Blink MCP Server

Blink MCP Server

Official
by blinkbitcoin

create_invoice

Generate a Lightning invoice to receive a specified amount of Bitcoin in satoshis for a BTC wallet, with optional memo, expiration, and tracking ID.

Instructions

Create a Lightning invoice to receive a specific amount of Bitcoin. Amount is in satoshis for BTC wallet.

Input Schema

NameRequiredDescriptionDefault
memoNoOptional memo/description for the invoice
amountYesAmount in satoshis to receive
wallet_idYesThe BTC wallet ID to receive funds
expires_inNoInvoice expiration time in minutes (default: 24 hours)
external_idNoOptional external reference ID for tracking

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv2.0.0
    • addedInput schema / properties / amount / exclusiveMinimum
      Added value: +0
    • addedInput schema / properties / amount / maximum
      Added value: +9007199254740991
    • changedInput schema / properties / amount / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / expires_in / description
      Added value: +"Invoice expiration time in minutes (default: 24 hours)"
    • addedInput schema / properties / expires_in / exclusiveMinimum
      Added value: +0
    • addedInput schema / properties / expires_in / maximum
      Added value: +9007199254740991
    • changedInput schema / properties / expires_in / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / external_id / description
      Added value: +"Optional external reference ID for tracking"
    • addedInput schema / properties / memo / description
      Added value: +"Optional memo/description for the invoice"
  2. First observedv1.2.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It says nothing about what the call returns (invoice/payment request), that invoices expire, whether it requires an existing wallet, or that status must be polled/subscribed separately via the sibling tools.

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

Conciseness4/5

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

Two short sentences, front-loaded with the action and scope. Slight redundancy in restating the satoshi unit already covered by the schema, but no padding.

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?

For a 5-parameter mutation tool with no annotations and no output schema, the description leaves too much out: no return value, no expiry semantics beyond the schema default, and no routing among the three create_invoice variants.

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 coverage is 100%, so baseline is 3. The description's unit note ('Amount is in satoshis') duplicates the schema's own 'Amount in satoshis to receive', and it adds nothing about memo, expires_in, or external_id.

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 key scope constraint: a fixed amount received into a BTC wallet. The phrase 'specific amount' implicitly separates it from create_invoice_no_amount, but the sibling is never named, so differentiation relies on the agent inferring it.

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 only implied: a fixed satoshi amount for a BTC wallet suggests 'use this when the amount is known and denominated in BTC.' It never mentions create_invoice_usd or create_invoice_no_amount, nor any prerequisites (wallet existence, expiry behavior), which are exactly the forks an agent faces here.

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