Skip to main content
Glama

MandateShield AI Payment Evidence

Verify Cryptographic Payment Authority

verify_cryptographic_payment_authority
Idempotent

Use only for a production pre-payment authority gate after the caller has a registered mandate, pinned issuer key, fresh challenge, VERIFY-scoped key, exact final purchase and supported signed evidence. Fail closed for JWS, an AP2-shaped closed-payment SD-JWT projection with RFC 9901 KB-JWT, or normalized TAP-shaped RFC 9421-style evidence. Full AP2 checkout/delegate-chain and Visa TAP structured-field/trust-store processing remain external. A qualifying live ALLOW creates only a short RESERVED authorization and cumulative-budget allocation. This MCP tool never executes payment and exposes no processor transition: a separate trusted gateway with an audience-bound PROCESSOR key must CONSUME and freshly redeem the provider-bound permit before attempting an idempotent provider operation, then reconcile the outcome.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
envelopeYes
evidenceYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYes
riskYes
errorNo
scoreYesDeterministic control-coverage indicator, not a calibrated probability of fraud or loss.
receiptYes
controlsYes
decisionYes
findingsYes
protocolYes
assuranceYes
persistedYes
checked_atYes
transparencyYes
signed_receiptYes
recommended_actionYes
enforcement_authorizedYesTrue only when strict live verification durably creates a trusted, consumable execution reservation. It never permits a direct provider call.
execution_authorizationYes

TDQS

A4.6/5.0
Behavior5/5

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

Annotations disclose side effects (not read-only, idempotent, not destructive), and the description adds important behavioral context: it fails closed for JWS, AP2-shaped SD-JWT, and TAP-shaped evidence, and creates only a short RESERVED authorization with cumulative-budget allocation. It further clarifies it never executes payment, aligning with openWorldHint=false and idempotentHint=true.

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 three dense sentences, each carrying distinct information: usage constraints, validation behavior, and side-effect/processing boundary. There is no filler or repetition, and the front-loaded 'Use only for' immediately anchors the agent on the correct use case.

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 highly complex tool with deep nested schema and an output schema, the description adequately covers success behavior (qualifying ALLOW creates RESERVED authorization), failure behavior (fail closed for unsupported evidence), and the external processor flow. It is complete enough to position the tool within a broader payment pipeline without needing to explain return values.

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?

The schema description coverage for the tool description is 0%, and the description does not directly explain the 'envelope' or 'evidence' parameters. It provides high-level prerequisites like registered mandate and exact final purchase, but these are not mapped to the actual parameters, leaving the agent to rely solely on the schema for field-level meaning.

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 identifies the tool's purpose: a production pre-payment authority gate that verifies cryptographic payment evidence. It distinguishes itself from sibling tools by explicitly scoping out full AP2 checkout/delegate-chain and Visa TAP structured-field/trust-store processing as external, making its role as the fail-closed evidence verifier unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description begins with 'Use only for a production pre-payment authority gate after...' and lists precise preconditions (registered mandate, pinned issuer key, fresh challenge, VERIFY-scoped key, exact final purchase, supported signed evidence). It explicitly states what remains external and clarifies that the tool never executes payment, directing the agent to a separate trusted gateway for the processor step.

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

Tools have distinct purposes: check is a non-executable entry check, normalize maps protocols, and verify is a cryptographic production gate. However, the conceptual overlap between check and verify could cause slight confusion, but the descriptions clearly differentiate them.

Naming Consistency5/5

All tools follow a consistent verb_object pattern using snake_case, e.g., check_ai_payment_authority, normalize_agent_payment_protocol, verify_cryptographic_payment_authority. The verbs are distinct and the naming is descriptive.

Tool Count5/5

With exactly 3 tools, the server is well-scoped for its domain of payment authority checks. Each tool serves a necessary and non-redundant role in the workflow.

Completeness3/5

The server covers the core authority check flow (non-executable check, protocol normalization, cryptographic verification). However, it lacks tools for mandate creation, payment execution, or post-authorization steps, leaving notable gaps for a complete payment lifecycle.

Resources