Skip to main content
Glama

Buy credits

search_order

Buy credits with Bitcoin. Creates an invoice and returns order_id, invoice_url and amount_sats; price is 50 sats per credit, minimum 100 credits (5,000 sats); every paid call costs 1 credit. Pay it, then call search_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": "search_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

A4.2/5.0
Behavior4/5

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

Annotations declare destructiveHint=false and idempotentHint=false, so the safety profile is partially covered; the description adds substantive economics the annotations cannot: 50 sats per credit, a 5,000 sats floor, and 1 credit consumed per paid call. It omits behavior an agent would want, such as invoice expiry, what happens if payment never arrives, or that repeat calls mint new invoices rather than reusing one.

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?

One tight paragraph, front-loaded with the action and followed by outputs, pricing, and the next step in that order. Every clause carries a fact an agent needs; nothing is padding.

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 enumerating return fields is optional but harmless, and the pricing plus follow-up tool make the purchase path self-contained. Remaining gaps are the credits-vs-schema minimum conflict and the absence of any note on invoice lifetime or unpaid-order handling.

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%, so the credits parameter and its default of 100 are already documented; the description adds the unit economics (50 sats per credit, one credit per paid call) that the schema lacks. However, it states "minimum 100 credits (5,000 sats)" while the schema declares minimum: 1, a direct conflict that could mislead an agent computing totals or requesting a small order.

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 opens with a specific verb and resource ("Buy credits with Bitcoin") and explains the concrete artifact produced: an invoice returning order_id, invoice_url and amount_sats. This is essential because the tool name (search_order) and title alone do not convey a purchase flow, so the description is doing real disambiguation work.

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?

It gives an explicit workflow ordering: create the invoice, pay it, then call search_collect_key, and notes that of the sibling tools this one is the paid path ("Free" for the others is implied by contrast). It stops short of naming search_credits as the balance-check alternative or stating when not to buy (e.g., if credits are already sufficient).

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