Skip to main content
Glama

Buy credits

convert_order

Buy credits with Bitcoin. Creates an invoice and returns order_id, invoice_url and amount_sats; price is 100 sats per credit, minimum 100 credits (10,000 sats); every paid call costs 1 credit. Pay it, then call convert_collect_key. Free.

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": "convert_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
creditsNoHow many credits to buy. One credit pays for one paid call.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false and destructiveHint=false, and the description is consistent with them: creating an invoice is a non-idempotent write that destroys nothing. Beyond the annotations it adds genuinely useful context — the price schedule, the credit-to-call conversion rate, and the required follow-up call. However, the trailing "Free." is unexplained (free to invoke? no credit consumed?), and it never says whether an unpaid invoice expires or what happens if the same order is created twice.

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?

A single dense paragraph that front-loads the action, then the return values, then the pricing constraint, then the next step. Nearly every clause carries information; only the terminal fragment "Free." is unclear enough to be wasted wording.

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?

An output schema exists, so return values need no elaboration, and the description still names the three key fields. For a one-parameter purchase tool with annotations covering the safety profile, the only real omissions are invoice expiry behavior and the meaning of "Free.", plus the minimum-vs-schema discrepancy.

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% and the single credits parameter is already documented, so the baseline is 3. The description does add pricing semantics the schema lacks (100 sats per credit, one credit per paid call), but it also states "minimum 100 credits (10,000 sats)" while the schema declares minimum: 1 — a conflict that could cause an agent to reject valid values or the server to reject the description's claim.

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?

Opens with a specific verb and resource ("Buy credits with Bitcoin") and states exactly what the call produces: an invoice plus order_id, invoice_url and amount_sats. It also distinguishes itself from the sibling it hands off to ("then call convert_collect_key"), so an agent can tell purchase from key collection without opening either schema.

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?

Gives an explicit two-step workflow (create invoice here, pay, then call convert_collect_key) and states the cost model that determines whether to use it at all (100 sats per credit, 1 credit per paid call). It does not name a when-not condition or contrast with convert_credits, so it falls short of full routing guidance.

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