Skip to main content
Glama

lightning_address_resolve

Read-only

Resolve a Lightning Address (user@domain.com) to a payable BOLT11 invoice for a given amount. Handles the full LNURL-pay protocol internally. Returns the invoice plus min/max sendable amounts for validation. Price: 10 sats per call.

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

Input Schema

NameRequiredDescriptionDefault
addressYesLightning Address in user@domain.com format.
l402_proofNoL402 payment proof "<macaroon>:<preimage>". Omit on the first call; an unpaid call returns a 10 sat Lightning invoice and the macaroon. Pay the invoice, then repeat the call with this argument set.
amount_satsYesAmount you want to send, in satoshis. At most 100000000 (1 BTC).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / l402_proof / description
      Previous value: -"L402 payment proof \"<macaroon>:<preimage>\". Omit on the first call; an unpaid call returns a 0 sat Lightning invoice and the macaroon. Pay the invoice, then repeat the call with this argument set."New value: +"L402 payment proof \"<macaroon>:<preimage>\". Omit on the first call; an unpaid call returns a 10 sat Lightning invoice and the macaroon. Pay the invoice, then repeat the call with this argument set."
  2. Changed1 schema field changed
    • changedInput schema / properties / l402_proof / description
      Previous value: -"L402 payment proof \"<macaroon>:<preimage>\". Omit on the first call; an unpaid call returns a 10 sat Lightning invoice and the macaroon. Pay the invoice, then repeat the call with this argument set."New value: +"L402 payment proof \"<macaroon>:<preimage>\". Omit on the first call; an unpaid call returns a 0 sat Lightning invoice and the macaroon. Pay the invoice, then repeat the call with this argument set."
  3. Changed3 schema fields changed
    • changedInput schema / properties / amount_sats / description
      Previous value: -"Amount you want to send, in satoshis."New value: +"Amount you want to send, in satoshis. At most 100000000 (1 BTC)."
    • addedInput schema / properties / amount_sats / maximum
      Added value: +100000000
    • addedInput schema / properties / l402_proof
      Added value: +{
      +  "description": "L402 payment proof \"<macaroon>:<preimage>\". Omit on the first call; an unpaid call returns a 10 sat Lightning invoice and the macaroon. Pay the invoice, then repeat the call with this argument set.",
      +  "type": "string"
      +}
  4. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the read-only, non-destructive, open-world profile; the description adds real value beyond them by disclosing that the LNURL-pay exchange happens internally and that each call costs 10 sats — cost and external-fetch behavior are not derivable from annotations. The L402 pay-then-retry flow is described, but only in the schema for l402_proof, not here.

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?

Four tight sentences, front-loaded with purpose then behavior then return then price. Nothing is repeated from the title or schema and nothing is filler.

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 three-parameter tool with full schema coverage, annotations, and no output schema, the description supplies what structured fields do not: the internal protocol, the shape of the return, and the per-call price. Only error/edge-case behavior is missing, which is a minor gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description adds meaning the schema cannot: the returned min/max sendable amounts exist precisely so the caller can validate amount_sats, which is a server-side fact not visible from the static maximum of 1 BTC. The l402_proof parameter's two-step flow is left to the schema.

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 (resolve a Lightning Address) plus the concrete output (a payable BOLT11 invoice) for a given amount. No sibling tool overlaps this domain, and the phrase 'Handles the full LNURL-pay protocol internally' distinguishes it from a raw HTTP call.

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?

The description implies the use case (converting user@domain.com into something payable) and discloses cost, but never states when to call it versus a direct send, nor what happens on failure (unreachable domain, amount outside min/max). With no true alternative among siblings, the guidance gap is moderate rather than severe.

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.

Resources