Prepare SAP Agent Mandate
sap_prepare_mandateFree AP2-style mandate planner for SAP MCP agent commerce. It converts a user intent into a bounded, unsigned planning artifact with spend limits, tool/protocol allow-lists, freshness rules, confirmation thresholds, proof-tape fields, and the correct hosted/local signing route. This tool does not sign, submit, authorize payment, or replace wallet confirmation.
SAP MCP execution guidance: Intent: SAP MCP tool workflow. Pricing: free; call directly without x402. Routing: free hosted call; call directly and keep it small/exact when possible. Signer boundary: hosted reads/builders never receive keypair bytes; value-moving results must be finalized locally when signing is required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| intent | Yes | Human intent to bind, for example "check solking.sol", "register Solking", "swap 0.05 SOL to USDC", or "open a $10 BONK short". | |
| wallet | No | Optional expected owner/signer wallet public key in base58. Used only as a public constraint, never as a keypair path. | |
| profile | No | Optional local SAP profile name the user expects the runtime to use. Do not guess wallet/keypair paths from this value. | |
| maxX402Usd | No | Maximum x402/pay.sh fee the agent may auto-pay for one hosted tool call under the user policy. | |
| maxTradeUsd | No | Maximum value-moving notional in USD for swaps, perps, escrow, or transaction finalization under this mandate. | |
| allowedTools | No | Exact SAP MCP tool allow-list for this mandate. Use exact names from tools/list and do not rewrite hyphenated tools. | |
| operationType | No | Closest operation family. Use registry-write for SAP agent registration/update, escrow for SAP Escrow V2, and transaction-finalize when an unsigned hosted transaction is already available. | |
| maxSlippageBps | No | Maximum slippage in basis points for swap or trading routes. 100 means 1%. | |
| maxTotalX402Usd | No | Maximum total x402/pay.sh spend for this mandate before asking the user again. | |
| allowedProtocols | No | Protocol allow-list such as sap, mcp, x402, jupiter, adrena, pyth, metaplex, sns, magicblock, or custom protocol ids. | |
| expiresInSeconds | No | Mandate TTL in seconds. Defaults to 900 and is capped to 86400. | |
| requireConfirmationAboveUsd | No | Require a human preview and explicit confirmation above this USD notional or spend threshold. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| route | Yes | Canonical hosted/local route for this operation type. | |
| mandate | Yes | Unsigned mandate planning artifact. This is not a signature and not a payment authorization. | |
| success | Yes | Whether the mandate draft was generated. | |
| freshness | Yes | Data that must be fetched fresh before paid, signed, or value-moving actions. | |
| nextToolCalls | Yes | Exact next SAP MCP tool calls recommended for this mandate. | |
| forbiddenActions | Yes | Actions agents must not perform under this mandate. | |
| proofTapeTemplate | Yes | Audit record shape to fill as execution proceeds. | |
| confirmationPolicy | Yes | When the agent must show a compact preview and ask the user to confirm. |