Skip to main content
Glama

Lightning liquidity prices (Magma)

magma_liquidity

Before you buy inbound liquidity for a Lightning node, check what it costs right now. Get the live Magma price, browse current offers, or look up a node. No Node.js or GraphQL setup required. Paid from the credit balance. 1 sat ≈ $0.0006 from the credit balance.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "magma_liquidity"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNoquote, offer_book, or node.quote
max_satsNoMost this call may charge. Minimum 1. A higher total charges nothing.
connection_uriNoNode pubkey or pubkey@host:port. Required when query is node.

Output Schema

NameRequiredDescriptionDefault
codeNoapproval_required, limit_exceeded, or insufficient_balance.
paidNo
whichNoper_call, per_day, per_session, per_hour_buys, per_minute_calls, or per_minute_sats.
statusNo
messageNo
quoteIdNo
resultsNoSearch rows when this is a search result.
totalCostNo
totalSatsNo
approvalUrlNoPage where the person approves this exact price.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

The annotations declare readOnlyHint=false, and the description explains why — the call is paid from the credit balance, with a concrete rate (1 sat ≈ $0.0006). That is genuinely additive context the annotations alone don't convey, along with the note that no Node.js/GraphQL setup is needed. It doesn't say what happens when max_sats is insufficient or describe latency/rate-limit behavior.

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?

Four short sentences, front-loaded with the use-case trigger and followed by the modes and the cost note. Minor waste: 'from the credit balance' appears twice, and 'No Node.js or GraphQL setup required' is closer to reassurance copy than operational detail.

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?

With an output schema present and all three parameters fully described in the schema, the remaining burden on the description is light, and it covers modes, payment, and setup. It still leaves gaps on failure behavior for max_sats and on how results differ per query mode, which an agent choosing between quote and offer_book would want.

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%, so the enum values and max_sats semantics are already documented in structured form; the description's 'browse current offers' and 'look up a node' map loosely onto two enum values without adding syntax or defaults. Baseline 3 is appropriate since the schema does the heavy lifting.

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 names a specific verb set (get the live price, browse offers, look up a node) and the concrete resource (Magma Lightning inbound liquidity), so an agent knows exactly what comes back. It doesn't explicitly distinguish itself from close siblings such as 'lightning_liquidity', 'quote', or 'magma_buy' by name, relying instead on implicit context ('Before you buy').

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a clear trigger condition: use this before buying inbound liquidity to see current cost. It also enumerates the three modes (live quote, offer book, node lookup), which helps the agent pick a query value. It stops short of stating exclusions or naming an alternative tool when this one isn't appropriate.

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