Skip to main content
Glama

ThreadCraft Community Research

Prepare a private Bitcoin invoice

prepare_research_bitcoin_invoice
Idempotent

Create or retrieve a private on-chain Bitcoin invoice after the buyer requests checkout for a specific research edition. This reserves a quote and never sends funds. Reuse the same edition and key to check payment and get paid downloads. Keep the key and receipt private.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "sku": "<sku>",
      "order_key": "<order_key>"
    },
    "name": "prepare_research_bitcoin_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
skuYes
order_keyYesA fresh private random UUIDv4 for this intended order. Save and reuse it for retries or payment status.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare idempotentHint=true, destructiveHint=false, and openWorldHint=true, and the description adds concrete meaning: it 'reserves a quote and never sends funds' and rewards reusing the same key for retries or status checks. It also adds a security obligation ('Keep the key and receipt private') that annotations cannot express, though it omits quote expiry or retry-mismatch behavior.

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?

Four short sentences, front-loaded with purpose before the reuse and privacy instructions. The closing privacy sentence is slightly detachable but still earns its place as an operational warning; there is no filler.

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 not be explained, and annotations already carry the safety profile. The definition covers trigger, idempotent reuse, non-custodial behavior, and key hygiene, which is nearly everything needed to call it correctly; only quote lifetime and behavior on a mismatched retry key are missing.

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 only 50%. The description compensates partially by tying the two inputs to reuse semantics ('Reuse the same edition and key to check payment'), and the schema itself enumerates the allowed sku values. However, it never explains what an edition/sku actually selects, leaving the 50% gap only partly closed.

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 names a specific verb pair and resource: 'Create or retrieve a private on-chain Bitcoin invoice after the buyer requests checkout for a specific research edition.' It also scopes the resource precisely ('private on-chain Bitcoin invoice,' 'reserves a quote and never sends funds'), which clearly separates it from the offer-listing and description-oriented sibling tools.

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 states a clear trigger ('after the buyer requests checkout for a specific research edition') and instructs reuse of the same edition and key for payment checks and paid downloads. It lacks an explicit 'do not use this for X' exclusion or a named alternative path, which keeps it below a 5.

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