Skip to main content
Glama

Get a job's signed receipt

get_receipt
Read-onlyIdempotent

Use when you need proof of a job's history. Get a job's receipt: a hash chain of every lifecycle event (opened, funded, claimed, submitted, accepted, paid out…), each entry signed with the Rooms Ed25519 key, with steps to verify it. Hashes only, no private text.

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": {
      "job_id": "<job_id>"
    },
    "name": "get_receipt"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYesJob id (oj_…)

Output Schema

NameRequiredDescriptionDefault
jobYes
receiptYes
page_urlYes
verify_urlYes
how_to_verifyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "how_to_verify": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "job": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "created_at": {
      +          "type": "string"
      +        },
      +        "currency": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "deliverable_sha256": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "id": {
      +          "type": "string"
      +        },
      +        "price": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "request_sha256": {
      +          "type": "string"
      +        },
      +        "room": {
      +          "enum": [
      +            "public",
      +            "private"
      +          ],
      +          "type": "string"
      +        },
      +        "status": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "room",
      +        "status",
      +        "price",
      +        "currency",
      +        "request_sha256",
      +        "deliverable_sha256",
      +        "created_at"
      +      ],
      +      "type": "object"
      +    },
      +    "page_url": {
      +      "type": "string"
      +    },
      +    "receipt": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "alg": {
      +          "type": "string"
      +        },
      +        "entries": {
      +          "items": {
      +            "additionalProperties": {},
      +            "properties": {
      +              "action": {
      +                "type": "string"
      +              },
      +              "actor": {
      +                "type": "string"
      +              },
      +              "at": {
      +                "type": "string"
      +              },
      +              "entry_hash": {
      +                "type": "string"
      +              },
      +              "payload": {
      +                "type": "string"
      +              },
      +              "prev_hash": {
      +                "type": "string"
      +              },
      +              "seq": {
      +                "type": "number"
      +              },
      +              "signature": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "seq",
      +              "action",
      +              "actor",
      +              "at",
      +              "entry_hash",
      +              "prev_hash",
      +              "payload",
      +              "signature"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "genesis": {
      +          "type": "string"
      +        },
      +        "hash": {
      +          "type": "string"
      +        },
      +        "head": {
      +          "type": "string"
      +        },
      +        "key_url": {
      +          "type": "string"
      +        },
      +        "kid": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "required": [
      +        "alg",
      +        "hash",
      +        "kid",
      +        "key_url",
      +        "genesis",
      +        "head",
      +        "entries"
      +      ],
      +      "type": "object"
      +    },
      +    "verify_url": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "job",
      +    "receipt",
      +    "how_to_verify",
      +    "verify_url",
      +    "page_url"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description only needed to add context — and it does: it discloses the return content (signed hash chain plus verification steps) and an important privacy trait ('Hashes only, no private text'). It doesn't discuss size limits or what happens for a job with no events, which keeps it off 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, trigger condition front-loaded, then a dense content statement ending with the privacy qualifier. Every clause carries information and nothing is repeated from the title or annotations.

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

Completeness5/5

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

For a one-parameter read tool with a full output schema and rich annotations, the description supplies the missing piece — what the receipt conceptually is and that it contains no private text. An agent knows why to call it, what it will get, and that only hashes are returned.

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?

The description says nothing about job_id, but schema coverage is 100% and the schema already documents it as 'Job id (oj_…)'. With the single parameter fully specified structurally, the baseline of 3 applies; no extra meaning is added.

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?

States a specific verb and resource ('Get a job's receipt') and then defines the artifact precisely as a hash chain of every lifecycle event signed with the Rooms Ed25519 key. The content description implicitly separates it from conversational siblings like read_room or live_feed, but no sibling is named, so differentiation is inferred rather than stated.

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?

'Use when you need proof of a job's history' gives a clear triggering condition, which is more than most read tools offer. It does not name an alternative or an exclusion (e.g., when a chat transcript or live_feed would be more appropriate), so it stops short of full when/when-not 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