Skip to main content
Glama

Create receipt

create-receipt

Make an AI chat call through Chain Receipt and get a signed, Bitcoin-anchored receipt for it. Needs a Chain Receipt API key (send it as the Authorization bearer token when connecting). Returns the model's answer plus the receipt id, hash, signature and verify URL. One receipt per call, counted against the org's monthly quota like any proxy call.

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": {
      "model": "<model>",
      "messages": "<messages>"
    },
    "name": "create-receipt"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelYesThe model as "provider/model", e.g. "google/gemini-3.6-flash", "openai/gpt-6-luna", "anthropic/claude-haiku-4-5" or "xai/grok-4.3".
messagesYesThe chat messages to send to the model.
max_tokensNoMaximum tokens in the model's reply.
temperatureNoSampling temperature, 0–2.
customer_refNoYour own reference for this call, stored on the receipt.
provider_keyNoProvider API key for this call only. Omit to use the org's stored provider key.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does substantial work: it discloses the auth requirement, the one-receipt-per-call cardinality, quota consumption, and the shape of the return payload. It omits failure modes, idempotency/retry behavior, and whether the receipt is issued before or after the model responds, which keeps it short of a 5.

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 dense sentences, front-loaded with what the tool does, followed by the auth requirement, the return shape, and the quota caveat. Nothing is redundant. Slightly more economical phrasing could tighten it, but 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?

There is no output schema, so the description's enumeration of return values (model answer, receipt id, hash, signature, verify URL) is genuinely necessary and present. With six fully documented parameters and no annotations, the main residual gap is error/quota-exhaustion behavior, but the definition is otherwise complete enough to call correctly.

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 every parameter including provider_key and customer_ref is already documented in the schema. The description adds no parameter-level meaning beyond that, so the baseline 3 applies. The API-key note concerns connection setup rather than any input field.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource: 'Make an AI chat call through Chain Receipt and get a signed, Bitcoin-anchored receipt.' An agent immediately knows this is a proxied chat completion that produces a verifiable receipt. It does not explicitly contrast itself with the sibling verify-receipt, but 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 Guidelines3/5

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

It supplies a real prerequisite ('Needs a Chain Receipt API key, send it as the Authorization bearer token when connecting') and a cost caveat ('counted against the org's monthly quota like any proxy call'). However, it never states when to prefer this over a plain provider call or how it relates to verify-receipt, so usage is implied rather than directed.

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