Skip to main content
Glama

AgentLogic MCP Server

ln_node

Look up a Lightning Network node by public key: alias, capacity, channel counts, first seen and last updated, and city and country when the node announces them. An unknown pubkey returns found: false. Price: $0.002 USDC on Base via x402.

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": {
      "pubkey": "<pubkey>"
    },
    "name": "ln_node"
  }
}

Input Schema

NameRequiredDescriptionDefault
pubkeyYesLightning node public key: a compressed secp256k1 key, 66 hex characters starting 02 or 03.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full load and does well: it discloses the negative-result behavior ("found: false" for an unknown pubkey) and the payment requirement and rail ($0.002 USDC on Base via x402), both of which materially affect invocation. It stops short of describing error/rate-limit behavior beyond the not-found case, keeping it from a 5.

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 sentences, both front-loaded and load-bearing: the first defines the lookup and its payload, the second covers the not-found edge case and the price. Nothing is padding and nothing important is buried.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter read-only lookup with no output schema, the description compensates by enumerating the returned fields explicitly, plus the not-found case and cost. Almost nothing an agent needs in order to call this correctly is missing.

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% and the pubkey parameter is already fully specified as a 66-hex compressed secp256k1 key, so the description adds little parameter meaning. The note that city and country appear "when the node announces them" is a conditional-output caveat rather than a parameter clarification, so baseline 3 applies.

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 ("Look up a Lightning Network node by public key") and enumerates exactly what is returned: alias, capacity, channel counts, timestamps, and location. This is clearly distinguishable from the LN siblings ln_decode and ln_stats, which operate on different objects.

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 when the tool applies (you have a node pubkey and want node metadata) and documents the not-found case, which is genuinely useful usage context. However, it never names an alternative or states exclusions, so the agent must infer that ln_stats/ln_decode serve different needs.

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.