Prepare Hosted x402 Challenge
sap_payments_prepare_challengeInitializes a hosted SAP MCP call to a paid tool without payment and returns the parsed x402 challenge. Use for inspection, policy review, or building custom x402 clients.
Instructions
Low-level free helper that initializes hosted SAP MCP, calls the target paid tool without payment, and returns the parsed x402 challenge without signing. Use for inspection, policy review, or custom x402 clients. Normal agents should prefer sap_payments_call_paid_tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Optional full JSON-RPC request body. Use this instead of toolName when the caller already has a complete request. | |
| endpoint | No | Hosted MCP endpoint. Defaults to https://mcp.sap.oobeprotocol.ai/mcp. | |
| toolName | No | Remote hosted SAP MCP tool name to call, for example sap_list_all_agents. | |
| arguments | No | Arguments for the remote tools/call request. | |
| maxPriceUsd | No | Optional maximum acceptable USD price used only to reject oversized challenges during inspection. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endpoint | No | Hosted MCP endpoint that returned the challenge. | |
| amountUsd | No | Selected payment amount expressed in USD. | |
| sessionId | No | MCP session id created for the challenge. | |
| requestBody | No | Canonical JSON-RPC request body used to obtain the challenge. | |
| instructions | No | Agent-safe retry and signing instructions. | |
| paymentRequired | No | Parsed x402 PaymentRequired challenge. | |
| selectedRequirements | No | Selected payment requirement from accepts[0]. |