Skip to main content
Glama

GENESIS ProofRelay MCP Verifier

Generate paid tool receipt draft

proofrelay.generate_paid_tool_receipt
Read-onlyIdempotent

Generate an unsigned, hash-only paid MCP/API tool receipt draft that callers can include in a signed ProofRelay bundle. The tool does not charge, redeem, settle, or attest to external facts.

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": {
      "receipt": "<receipt>"
    },
    "name": "proofrelay.generate_paid_tool_receipt"
  }
}

Input Schema

NameRequiredDescriptionDefault
receiptYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / receipt / additionalProperties
      Added value: +false
    • changedInput schema / properties / receipt / properties / authority_hash / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "pattern": "^\\s*(?:sha256:)?[0-9a-fA-F]{64}\\s*$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / receipt / properties / entitlement_hash / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "pattern": "^\\s*(?:sha256:)?[0-9a-fA-F]{64}\\s*$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / receipt / properties / payment_context_hash / pattern
      Added value: +"^\\s*(?:sha256:)?[0-9a-fA-F]{64}\\s*$"
    • addedInput schema / properties / receipt / properties / result_hash / pattern
      Added value: +"^\\s*(?:sha256:)?[0-9a-fA-F]{64}\\s*$"
    • addedInput schema / properties / receipt / properties / tool_call_hash / pattern
      Added value: +"^\\s*(?:sha256:)?[0-9a-fA-F]{64}\\s*$"
  2. Changed6 schema fields changed
    • removedInput schema / $defs
      Removed value: -{
      -  "PaidToolReceiptInput": {
      -    "description": "Hash-only paid MCP/API tool receipt draft input.",
      -    "properties": {
      -      "authority_hash": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Optional authority, policy, or scope hash.",
      -        "title": "Authority Hash"
      -      },
      -      "entitlement_hash": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Optional public-safe entitlement hash.",
      -        "title": "Entitlement Hash"
      -      },
      -      "non_secret_refs": {
      -        "description": "Non-secret references to include.",
      -        "items": {
      -          "type": "string"
      -        },
      -        "title": "Non Secret Refs",
      -        "type": "array"
      -      },
      -      "payment_context_hash": {
      -        "description": "SHA-256 hash of normalized payment context.",
      -        "title": "Payment Context Hash",
      -        "type": "string"
      -      },
      -      "receipt_id": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Optional stable receipt id.",
      -        "title": "Receipt Id"
      -      },
      -      "result_hash": {
      -        "description": "SHA-256 hash of the tool result.",
      -        "title": "Result Hash",
      -        "type": "string"
      -      },
      -      "tool_call_hash": {
      -        "description": "SHA-256 hash of the tool call.",
      -        "title": "Tool Call Hash",
      -        "type": "string"
      -      },
      -      "tool_name": {
      -        "description": "Paid tool or API operation name.",
      -        "title": "Tool Name",
      -        "type": "string"
      -      },
      -      "ts_ms": {
      -        "description": "Receipt timestamp in Unix milliseconds.",
      -        "title": "Ts Ms",
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "tool_name",
      -      "ts_ms",
      -      "tool_call_hash",
      -      "result_hash",
      -      "payment_context_hash"
      -    ],
      -    "title": "PaidToolReceiptInput",
      -    "type": "object"
      -  }
      -}
    • removedInput schema / properties / receipt / $ref
      Removed value: -"#/$defs/PaidToolReceiptInput"
    • addedInput schema / properties / receipt / properties
      Added value: +{
      +  "authority_hash": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ]
      +  },
      +  "entitlement_hash": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ]
      +  },
      +  "non_secret_refs": {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  "payment_context_hash": {
      +    "type": "string"
      +  },
      +  "receipt_id": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ]
      +  },
      +  "result_hash": {
      +    "type": "string"
      +  },
      +  "tool_call_hash": {
      +    "type": "string"
      +  },
      +  "tool_name": {
      +    "type": "string"
      +  },
      +  "ts_ms": {
      +    "type": "integer"
      +  }
      +}
    • addedInput schema / properties / receipt / required
      Added value: +[
      +  "tool_name",
      +  "ts_ms",
      +  "tool_call_hash",
      +  "result_hash",
      +  "payment_context_hash"
      +]
    • addedInput schema / properties / receipt / type
      Added value: +"object"
    • removedInput schema / title
      Removed value: -"generate_paid_tool_receiptArguments"
  3. First observed

TDQS

A3.7/5.0
Behavior5/5

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

The description adds substantial behavioral context beyond the annotations by clarifying that the receipt is unsigned and hash-only and that the tool does not charge, redeem, settle, or attest to external facts. Those exclusions matter because the tool name mentions "paid" and could otherwise be mistaken for a payment or attestation operation. The annotations already indicate read-only, idempotent, non-destructive behavior, and the description does not contradict them.

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?

The definition is two front-loaded sentences with no wasted wording. The main action and the key non-behaviors are stated immediately.

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

Completeness3/5

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

The description, annotations, and output schema cover the high-level action, safety profile, and return shape, but the nested input receipt object remains underspecified. For a tool with a complex required object and 0% schema description coverage, the description should do more to explain how callers should construct the receipt.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% for a single nested receipt object containing many fields, including authority_hash, entitlement_hash, payment_context_hash, and non_secret_refs. The description says the receipt is hash-only and unsigned, but it does not explain the roles or constraints of the nested fields, so it only partially compensates for the coverage gap.

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 uses a specific verb and resource: "Generate an unsigned, hash-only paid MCP/API tool receipt draft." It also states the output's role, namely inclusion in a signed ProofRelay bundle, but does not explicitly distinguish it from sibling receipt-building tools.

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?

The phrase "callers can include in a signed ProofRelay bundle" implies when the draft is useful, but the description gives no explicit when-not-to-use guidance or alternatives such as build_bundle_draft. Usage is inferable rather than fully 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