Skip to main content
Glama

Generate Trust Receipt

generate_trust_receipt
Read-onlyIdempotent

Generate a deterministic trust receipt from sanitized request/policy/result/payment summaries. Do not submit raw auth headers, cookies, API keys, private keys, payment signatures, payment response headers, customer prompts, customer documents, or payer-identifying evidence.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
policyNoSanitized policy or decision summary to hash.
resultNoSanitized outcome/result summary to hash; omit customer data and secret-like values.
paymentNoOptional sanitized payment summary or caller-provided hashes only; do not include raw payment signatures, raw payment response headers, private keys, API keys, cookies, payer-identifying evidence, or wallet secrets.
requestYesSanitized request/action summary to hash; omit raw prompts, documents, credentials, cookies, auth headers, signatures, and secrets.
nextStepNoOptional receipt next-step guidance.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
decisionYes
nextStepNo
createdAtYes
receiptIdYes
evidenceHashYes
claimBoundaryYes
marketplacePositioningNo

TDQS

A4/5.0
Behavior4/5

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

Annotations already indicate read-only, open-world, idempotent, and non-destructive behavior. The description adds the critical trait 'deterministic' and emphasizes the need for sanitized inputs, which is behavioral context beyond the annotations. It does not contradict annotations; rather, it reinforces 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 description is two sentences: the first is a crisp definition, the second is a focused list of forbidden inputs. Every word earns its place, and the most critical information is front-loaded.

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?

With an output schema present, detailed annotations, and a clear description, the tool is well-contextualized. The security constraints are thoroughly covered, and the purpose is unambiguous. A minor gap is the lack of explicit sibling differentiation, but the tool's unique role is still evident.

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 the parameters are well-documented. The tool description adds a global constraint about not submitting raw sensitive data, which applies across all parameters. However, it does not add parameter-specific meaning beyond what the schema already provides, so it stays at the baseline.

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 clearly states the tool's function: 'Generate a deterministic trust receipt from sanitized request/policy/result/payment summaries.' It uses a specific verb ('generate'), names the resource ('trust receipt'), and specifies the inputs. This distinguishes it from sibling tools like boundary_guard_check or probe_x402_paid_path, which serve different purposes.

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 description implies usage by requiring 'sanitized' inputs and explicitly listing what must not be submitted (auth headers, cookies, API keys, etc.). However, it does not explicitly state when to use this tool instead of siblings or provide exclusions or alternative tool references. The 'Do not submit...' list is a strict input constraint but not a full usage guideline.

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.

TDQS

A4.2/5.0
Disambiguation4/5

Most tools have distinct purposes, but there is some conceptual overlap: 'check_agent_tool_readiness' and 'scan_x402_resource' both evaluate readiness, while 'boundary_guard_check' and 'generate_trust_receipt' both produce receipts. Descriptions clarify the differences, so ambiguity is low.

Naming Consistency4/5

All names use snake_case, and most follow a verb_noun pattern (check_, generate_, probe_, scan_). 'boundary_guard_check' deviates by being a noun-noun compound, but it's the only outlier and remains readable.

Tool Count5/5

With 6 tools, the count is well-scoped for an x402/MCP utility server. Each tool covers a distinct aspect (pre-action guard, readiness, receipts, launch pack, probing, scanning) without unnecessary bloat.

Completeness4/5

The set covers the core lifecycle of x402 validation and seller readiness: pre-action checks, readiness assessment, trust receipts, launch assets, and endpoint probing/scanning. Minor gaps exist (e.g., no tool to update or delete launch packs), but they are not critical to the server's purpose.