Skip to main content
Glama

access_l402_resource

Fetch URLs with automatic Bitcoin Lightning payments when encountering 402 Payment Required responses, enabling AI agents to access paid resources autonomously.

Instructions

Fetch a URL with automatic L402 payment handling. If the server returns a 402 Payment Required response, the invoice will be automatically paid and the request retried.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe URL to fetch
methodNoHTTP method (GET, POST, PUT, DELETE)GET
headersNoOptional additional request headers
bodyNoOptional request body for POST/PUT requests
max_satsNoMaximum satoshis to pay for this request
confirmedNoSet to true to confirm a payment that requires approval. Use when previous call returned requiresConfirmation=true.
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It explains the automatic payment and retry behavior, which is valuable, but lacks details on error handling, rate limits, authentication needs, or what happens if payment fails. It adequately describes the core behavior but misses additional operational context.

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 two sentences, front-loaded with the main purpose and followed by key behavioral detail. Every sentence earns its place by explaining the tool's unique functionality without redundancy or unnecessary elaboration.

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?

Given the complexity (6 parameters, no output schema, no annotations), the description covers the core purpose and payment retry behavior but lacks details on return values, error cases, or integration with sibling tools. It is minimally adequate but has clear gaps for a tool with this level of complexity.

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 schema already documents all parameters thoroughly. The description does not add any parameter-specific semantics beyond what the schema provides, such as examples or usage nuances, meeting the baseline for high schema coverage.

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's purpose with a specific verb ('fetch') and resource ('URL'), and distinguishes it from siblings by mentioning 'automatic L402 payment handling' and '402 Payment Required response' retry logic, which no other sibling tool describes.

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 provides clear context for when to use this tool ('fetch a URL with automatic L402 payment handling'), but it does not explicitly mention when not to use it or name alternatives among siblings, such as simpler fetch tools or manual payment handling 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/refined-element/lightning-enable-mcp'

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