Skip to main content
Glama

buy_credit

Buy prepaid credit for a bolthub provider in one payment, spendable across all its endpoints until exhausted, avoiding per-call Lightning transactions.

Instructions

Buy prepaid CREDIT for a bolthub provider: pay ONCE for a sats budget spendable across ALL of that provider's endpoints, then call_api to any of them draws the credit with no further Lightning payment until it runs out. Use this when you'll call SEVERAL of one provider's endpoints — sum their costs and buy that much credit in one payment. Credit is face-value (the provider charges exactly the sats you ask for, no discount tiers) and per-provider: it never covers a different provider (you'd buy separate credit for each). Unused credit at expiry is non-refundable, so size it to what you expect to spend.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesAny endpoint path of the provider to buy against (e.g. '/v1/history/candles'); the credit covers all of the provider's endpoints
slugYesThe provider's API slug (e.g. 'btc-intel')
credit_satsYesAmount of credit to buy in sats (charged at face value)
max_cost_satsNoMaximum sats to pay for the credit. If the price exceeds this, the purchase is refused and nothing is paid.
Behavior5/5

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

No annotations are provided, so the description carries full burden. It fully discloses behavioral traits: credit is face-value, per-provider, non-refundable at expiry, and is consumed by call_api. This covers the key behavioral aspects an agent needs to avoid mistakes.

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 somewhat lengthy but efficient. It front-loads the main action and then adds necessary context. Every sentence contributes meaning, though it could be slightly tightened without losing clarity.

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

Completeness4/5

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

Given there is no output schema, the description adequately explains what happens upon purchase and how credit is used. It covers the lifecycle enough for an agent to use the tool correctly, though it omits details like balance checking or expiry specifics, which are minor gaps.

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 detailed parameter descriptions, so baseline is 3. The description adds value by explaining the relationship between parameters (e.g., credit_sats is face value, path is any endpoint for verification) and the overall workflow, justifying a 4.

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 verb 'Buy prepaid CREDIT' and specifies the resource 'bolthub provider'. It distinguishes the tool from siblings like call_api by explaining that credit is drawn when calling APIs, and contrasts with per-endpoint payment. The purpose is unambiguous.

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

Usage Guidelines5/5

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

The description explicitly says 'Use this when you'll call SEVERAL of one provider's endpoints' and provides a rule of thumb: sum costs and buy that much credit. It also clarifies that credit is per-provider and non-transferable, effectively advising against using it for single calls or multiple providers.

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/signaltech-org/bolthub-sdk'

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