Skip to main content
Glama

AINumbers Fintech Intelligence Suite

AP2 PaymentReceipt Verifier & HNP Guardrail

verify_ap2_payment_receipt
Read-onlyIdempotent

AP2 PaymentReceipt Verifier & HNP Guardrail: OpenChainGraph compute node (attestation_mandate). Deterministic OpenChainGraph compute node. By default (compute:"auto") inputs are computed server-side on Cloudflare Workers for gpu:false nodes with a registered kernel; compute:"browser" forces client-side execution and returns a browser delegation URL instead. gpu:true nodes always delegate to the browser. Inputs are processed transiently to compute the response and are not stored, logged, or retained. Use synthetic or anonymised inputs only. Exports an AP2 artifact with execution_hash for chain provenance. Consumes upstream artifacts from: art-60-agent-economy-runtime-fit-diagnostic. Output feeds: art-01-ap2-mandate-chain-validator, cry-05-agent-action-audit-trail-aggregator. Open at: https://ainumbers.co/chaingraph/art-62-ap2-payment-receipt-verifier.html FV-status (published/proven/still-trusted for this spec): /fv-status/dfdd7083d50dfec46270d5ca2c4a06852efd98bdc1ae8d20e3d3b191e9b14ac7.json — a snapshot, not a subscription; this receipt verifies offline regardless of whether that file is ever fetched.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
computeNoCompute mode (v0.4 Compute Binding). "auto" (default) = server for gpu:false nodes with registered kernels; "server" = force server-side; "browser" = always return browser delegation URL. gpu:true nodes always delegate.
parent_hashesNoexecution_hash values from upstream ChainGraph AP2 artifacts to chain from (sets chain.parent_hashes in the export).
parent_tool_idsNotool_id values matching parent_hashes, in the same order.
policy_parametersNoInput parameters for this tool's decision function. For gpu:false nodes with a registered kernel, these are computed server-side when compute is "auto" or "server". See the tool's manifest for field names.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteNo
findingsNo
receipt_idNo
hnp_verdictNo
status_asofNo
human_presentNo
receipt_verdictNo
signature_checkNo
mandate_chain_intactNo
authorized_amount_headroomNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "authorized_amount_headroom": {
      +      "type": "string"
      +    },
      +    "findings": {
      +      "items": {
      +        "properties": {
      +          "check": {
      +            "type": "string"
      +          },
      +          "detail": {
      +            "type": "string"
      +          },
      +          "result": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "hnp_verdict": {
      +      "type": "string"
      +    },
      +    "human_present": {
      +      "type": "boolean"
      +    },
      +    "mandate_chain_intact": {
      +      "type": "boolean"
      +    },
      +    "note": {
      +      "type": "string"
      +    },
      +    "receipt_id": {
      +      "type": "string"
      +    },
      +    "receipt_verdict": {
      +      "type": "string"
      +    },
      +    "signature_check": {
      +      "type": "string"
      +    },
      +    "status_asof": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive safety. The description adds substantial context beyond them: transient processing with no storage/logging/retention, server-vs-browser compute delegation and the returned delegation URL, gpu delegation behavior, and offline receipt verification via the FV-status snapshot. These are genuine behavioral traits, though the framing is boilerplate-heavy rather than operational detail.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

The purpose line is front-loaded, but the block is long and mixes useful facts (retention, compute binding, provenance chain) with marketing-style boilerplate ('Deterministic OpenChainGraph compute node', URLs, FV-status hash). Several clauses repeat the compute-mode semantics already in the schema, diluting density.

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?

For a complex, nested-schema tool with an output schema and full annotations, the description supplies pipeline context, compute/delegation behavior, and a privacy constraint. Return-value details are unnecessary given the output schema, and the remaining gap is only explicit sibling disambiguation.

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 schema already documents compute, parent_hashes, parent_tool_ids, and policy_parameters; the baseline is 3. The description adds only marginal semantics (that parent_hashes sets chain.parent_hashes in the export) and explicitly defers policy_parameters fields to the manifest, so it does not meaningfully exceed structured data.

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 opening states a specific verb and resource ('AP2 PaymentReceipt Verifier'), and the body clarifies it is an OpenChainGraph attestation_mandate compute node that exports an AP2 artifact with execution_hash. It gives pipeline position ('Output feeds: art-01-ap2-mandate-chain-validator...'), but never explicitly distinguishes itself from close siblings like validate_ap2_mandate_chain, verify_execution_hash, or build_ap2_cartmandate_hashchain, so an agent must infer the boundary.

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?

There is real operational guidance ('Use synthetic or anonymised inputs only', compute modes, gpu:true always delegates), which implies when to invoke it. But there is no explicit when-to-use/when-not or named alternative among the many AP2 verifier/validator siblings, leaving routing to inference.

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.