Skip to main content
Glama

access_l402_api

Automatically pay for L402-protected API access via Lightning. Use endpoints like data, market, AI service, or API credits.

Instructions

Access an L402-protected API endpoint with automatic Lightning payment

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolNoMarket symbol (for market endpoint)BTC
endpointYesL402 endpoint to access
Behavior2/5

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

No annotations are provided, so the description is the sole source of behavioral information. It mentions 'automatic Lightning payment' but does not disclose whether the tool is destructive, whether it requires prior setup (e.g., wallet balance), or what happens on payment failure. This is insufficient for a tool involving financial transactions.

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?

The description is a single sentence with no redundant words. It is front-loaded with the key action. However, it could benefit from breaking into two sentences for clarity or adding a brief note about payment behavior.

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?

The tool has 2 parameters with enums and no output schema. The description explains the core action but omits details like what the endpoint returns, error handling, prerequisites (e.g., node setup), and whether the payment is one-time or per-call. It is adequate for a simple tool but not comprehensive.

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% as both parameters ('endpoint' and 'symbol') are described. The description does not add any additional parameter-level guidance beyond what the schema provides. The baseline 3 is appropriate since the schema already handles parameter documentation.

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 clearly states the tool accesses an L402-protected API endpoint and handles Lightning payment automatically. The verb 'access' is somewhat generic but the context of L402 and Lightning makes it specific. It differentiates from siblings like pay_lightning_invoice or create_lightning_invoice by focusing on API access with payment.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus alternatives. For example, it does not mention that this tool is for accessing paid APIs via L402 while pay_lightning_invoice is for manual payments. The description lacks any contextual usage hints.

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/bkblocksolutions-rgb/agenticbtc-mcp'

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