Prepare SAP MCP Action
sap_prepare_actionFree intent-level preflight planner for SAP MCP. Call before paid calls, swaps, registry writes, escrow, identity updates, external x402 calls, premium streams, or transaction finalization. It returns the correct hosted/local route, fresh-data requirements, max-price guidance, confirmation policy, retry rules, proof-tape shape, and forbidden actions without charging x402.
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 | No | Closest user intent. Use registry-write for agent registration, update-agent for profile/image updates, swap for token swaps, escrow for SAP Escrow V2, external-x402 for third-party x402 agents, and premium-stream for premium plugin streams/webhooks. | |
| toolName | No | Exact hosted or local tool name being planned, such as jupiter_getOrder, sap_update_agent, sap_create_escrow_v2, or sap_payments_register_agent. | |
| userGoal | No | Short user-facing goal in natural language, used only to tailor the plan and proof-tape shape. | |
| maxPriceUsd | No | Optional user or policy x402 spend cap for this planned action. Agents should normally estimate first and use estimate × 1.25. | |
| estimatedNotionalUsd | No | Optional estimated trade, escrow, or value-moving notional in USD for confirmation-policy guidance. | |
| hasSubmittedSignature | No | Set true when a transaction signature was already submitted. The planner will route to verification before any retry. | |
| hasUnsignedTransaction | No | Set true when a hosted builder already returned unsigned transaction bytes that should be finalized locally. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| intent | Yes | Normalized intent used for routing. | |
| success | Yes | Whether the action preparation plan was generated. | |
| toolName | Yes | Tool name provided for the planned action, or null when omitted. | |
| userGoal | Yes | Goal provided by the user, or null when omitted. | |
| retryRules | Yes | Safe retry rules for x402, RPC, hosted signer guards, and submitted signatures. | |
| nextToolCalls | Yes | Exact recommended next tool calls. | |
| maxPricePolicy | Yes | How to set maxPriceUsd and when to estimate paid call cost. | |
| paidOrWriteRoute | Yes | Canonical paid/write route, including local bridge or hosted builder path. | |
| freshDataRequired | Yes | Fresh data that must be fetched before user-facing claims, payment, signing, or execution. | |
| proofTapeTemplate | Yes | Audit object shape the agent should fill during execution. | |
| confirmationPolicy | Yes | Whether confirmation is required and why. | |
| freePreflightTools | Yes | Free tools that should be called before paid/write execution for this intent. | |
| sessionContextPacket | Yes | Shared SAP MCP session routing, freshness, memory, and forbidden-action rules. | |
| userFacingPreviewShape | Yes | Fields that should appear in a compact human preview before value-moving work. |