You're viewing a demo portfolio

Join the waitlist
PRSM
This tool is no longer present in the server's latest manifest. Showing the last observed version (server version 0.5.3).

build_ap2_mandate

Inactive

Tool of AXIS Toolbox — Agentic Commerce Codebase Intelligence

declared in 0.5.3

Validate, canonically encode, and optionally Ed25519-sign an AP2 mandate (Intent / Cart / Payment) using the real @axis/ap2 codecs — schema validation (including cart-total arithmetic and intent cross-references), RFC 8785 JCS-style canonical JSON encoding, and detached-JWS EdDSA signing over node:crypto. Pass seed_hex (64 hex chars = 32 bytes) to sign deterministically client-side-supplied key material — AXIS stores no keys; omit it for an unsigned template with encoding only. The signed envelope round-trips through verifyMandate before it is returned. Free, no auth, deterministic (Ed25519 signatures are deterministic per RFC 8032), no side effects. SCOPE HONESTY: conformant to AXIS's TypeScript encoding of the public AP2 mandate schema, verified against self-authored golden vectors — NOT certified against an official AP2 conformance suite or a live network counterparty.

Parameters schema

{
  "type": "object",
  "required": [
    "mandate"
  ],
  "properties": {
    "mandate": {
      "type": "object",
      "description": "An AP2 mandate object: {kind: 'intent'|'cart'|'payment', version: 'ap2/1', id, created_at, ...kind-specific fields (intent: user_id/description/constraints.max_amount/expires_at; cart: intent_ref/merchant_id/items[]/total; payment: cart_ref/method/amount)}."
    },
    "seed_hex": {
      "type": "string",
      "description": "Optional 64-char hex (32-byte) Ed25519 seed to sign with. Caller-supplied key material — AXIS stores no keys. Omit for an unsigned template."
    },
    "intent_context": {
      "type": "object",
      "description": "Optional IntentMandate to cross-reference a cart's intent_ref against."
    }
  }
}

What this tool wraps· 0 endpoints

min confidence0.700.50

No endpoints wrapped at confidence ≥ 0.70.

Parent server

AXIS Toolbox — Agentic Commerce Codebase Intelligence

https://github.com/lastmanupinc-hub/Toolbox

1/7 registries
View full server →
build_ap2_mandate — AXIS Toolbox — Agentic Commerce Codebase Intelligence — PRSM MCP