Skip to main content
Glama

buy_lightning_liquidity

Purchase inbound Lightning liquidity to increase your node's receiving capacity and accept payments. Opens a channel to your node for a minimum of $5.

Instructions

Purchase inbound Lightning Network liquidity for a node via Amboss Magma.

This tool opens a channel TO your node, giving you receiving capacity. The liquidity purchase requires a minimum of $5.00 (500 cents).

Use this when you need to:

  • Increase your node's inbound liquidity

  • Accept Lightning payments

  • Open channels to your node

Parameters:

  • connection_uri: Your node's connection string (either just pubkey or pubkey@host:port) Examples:

  • usd_cents: Dollar amount in cents (minimum 500 = $5.00)

  • redirect_url: Optional URL to redirect after payment

  • private_channel: Optional boolean to create a private channel (default: false)

  • rails_cluster_only: Optional boolean to source only from Rails cluster (default: false)

Returns:

  • lightning_invoice: Lightning invoice to complete payment

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
connection_uriYesNode connection string: either just pubkey or pubkey@host:port
usd_centsYesDollar amount in cents (minimum 500 = $5.00)
redirect_urlNoOptional post-payment redirect URL
private_channelNoCreate private channel (default: false)
rails_cluster_onlyNoSource liquidity only from Rails cluster nodes (default: false)
Behavior4/5

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

No annotations provided, but the description discloses key behaviors: it opens a channel, requires a minimum $5 payment, and returns a Lightning invoice. It does not detail failure modes or timeouts, but core behavioral traits are well-covered.

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?

The description is well-structured with a header, bullet points for usage, a clear parameter list with examples, and a return section. Every sentence is informative with no fluff.

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?

Despite no output schema, the description explains the return value. It covers all parameters, usage scenarios, and the tool's purpose comprehensively. No gaps for a purchase tool.

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% with descriptions. The description adds value with examples for connection_uri, clarifies minimum for usd_cents, and explains optional parameters with defaults. Exceeds baseline 3.

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?

The description clearly states the tool purchases inbound Lightning Network liquidity via Amboss Magma, opening a channel to the node. It uses specific verbs and resources, distinguishing it from any potential siblings (none listed).

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?

The description explicitly lists use cases: increase inbound liquidity, accept Lightning payments, open channels. While it doesn't mention when not to use it or alternatives, the context is clear and sufficient given no sibling tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AmbossTech/magma-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server