Skip to main content
Glama

Mandate Check

mandate_check

Mandate Check: does this cart and payment fit what the human authorized? Send AP2 mandates (intent, cart, payment) and/or owner constraints. Checks the cart sits inside the intent (merchant, skus, refundability, expiry), the merchant's signed cart JWT is real AND its cart_hash matches these exact contents (catches a cart swapped after signing), the payment mandate matches the cart total and id, and owner caps (Spend Gate engine). IN_SCOPE / NEEDS_APPROVAL / OUT_OF_SCOPE / EXPIRED / BAD_SIGNATURE / UNPARSEABLE with every check listed. Unparseable input is not charged. By OMENZ. (MCP calls run in AYNE, the free playzone; production: POST https://www.omenz.org/api/tollbooth/v1/mandate/check, $0.003 via x402.)

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "mandate_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
nowNonow
proposedNoproposed
constraintsNoconstraints
cart_mandateNocart mandate
merchant_keyNomerchant key
intent_mandateNointent mandate
payment_mandateNopayment mandate
merchant_key_urlNomerchant key url

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior3/5

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

The description goes well beyond the annotations by disclosing the full outcome vocabulary (IN_SCOPE / NEEDS_APPROVAL / OUT_OF_SCOPE / EXPIRED / BAD_SIGNATURE / UNPARSEABLE), the billing rule that unparseable input is not charged, and the $0.003 x402 cost with the playzone-vs-production split. It does not explain permissions required, whether a check mutates any state (relevant given readOnlyHint=false and idempotentHint=false), or what 'every check listed' returns structurally.

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

Conciseness4/5

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

The core question is front-loaded, and the long clause chain is dense with substantive content rather than filler. It is somewhat sprawling, with the production URL and x402 pricing appended as a trailing aside that could be tightened, but no sentence is purely redundant.

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 an 8-parameter tool with nested objects and no output schema, the enumerated status codes effectively stand in for return-value documentation, and the failure/billing behavior is disclosed. Remaining gaps are the meaning of 'now' and 'proposed', the requiredness of the mandates, and the shape of the per-check results.

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 coverage is nominally 100%, but the schema descriptions are bare restatements, so the description does most of the conceptual work by mapping cart_mandate/intent_mandate/payment_mandate to the checks and hinting that merchant_key/merchant_key_url serve JWT verification and constraints feed the Spend Gate caps. Two parameters, 'now' and 'proposed', receive no explanation anywhere, and the description never states whether all mandates are required or truly optional.

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 opening line states a specific verb and resource ('does this cart and payment fit what the human authorized?') and immediately enumerates the checks performed: intent scope (merchant, skus, refundability, expiry), signed cart JWT validity plus cart_hash match, payment-to-cart matching, and owner caps. An agent can tell this apart from siblings like price_check or token_check without opening any schema.

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?

'Send AP2 mandates (intent, cart, payment) and/or owner constraints' tells the agent what to supply and implies the authorization-verification context in which to call it. It gives no explicit when-not condition or named alternative tool, so it stops short of full routing guidance.

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