Skip to main content
Glama
MerchantGuard

agentguard

Official

verify_receipt

Verify an AgentGuard signed receipt to confirm authenticity and detect tampering. Returns true for valid signatures, false if any signed field was altered. Optionally bind agent, task, or workflow identifiers for audit tracking.

Instructions

Independently verify an AgentGuard signed receipt. Returns valid true/false. Tampering with any signed field makes verification fail. Optional agent_id, task_id and workflow_id accept identifiers only; spend_decide binds them into the signed actor. Read-only and cost-configuration tools accept these fields without recording a spend decision.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
task_idNoOptional task identifier; signed as actor.taskId on spend_decide
agent_idNoOptional agent identifier; signed as actor.agentId on spend_decide
workflow_idNoOptional workflow identifier; signed as actor.workflowId on spend_decide
receipt_jsonYesThe signed receipt entry as a JSON string
public_key_hexNoSigner public key (64 hex characters). Defaults to this server signer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A4.2/5.0
Behavior4/5

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

There are no annotations, so the description carries the full burden. It discloses the boolean return, the effect of tampering, and the identifier-only semantics of optional fields. It does not note the public_key_hex default or possible error behavior, but the core behavioral contract is sufficiently transparent.

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?

Three sentences with no filler: the first states the function and return value, the second describes the tampering guarantee, and the third explains optional field semantics. The most important 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?

Given no output schema, the description adequately states the return format and verification behavior. It covers the main success/failure condition (tampering) and clarifies optional parameter semantics. Minor gaps like the public key default exist, but they are captured in the schema rather than the description.

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%, with each parameter already well documented (e.g., 'signed as actor.taskId on spend_decide'). The description adds a useful clarification that these fields 'accept identifiers only' and are not recorded as a spend decision, but it does not meaningfully expand on receipt_json or public_key_hex.

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 opens with a specific verb and resource: 'Independently verify an AgentGuard signed receipt.' It also states the return type ('valid true/false') and the tampering condition, which clearly distinguishes it from the sibling tools (preview, status, export, set cost, spend decide).

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 does not explicitly say 'use when you need to validate a receipt,' but the context is clear: it verifies a receipt and contrasts with spend_decide behavior. It clarifies that optional identifiers are not bound to a spend decision here, helping an agent avoid misusing fields across sibling tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.