Pay And Call Hosted SAP MCP Tool
sap_payments_call_paid_toolHandle x402 payment challenges for hosted SAP MCP calls by signing with your profile wallet and returning the tool result and receipt.
Instructions
High-level local payment bridge. It initializes the hosted MCP session, obtains the x402 challenge, signs with the user-controlled SAP MCP profile wallet, retries the exact remote tool call, settles payment, and returns the tool result plus receipt. Prefer this tool for hosted paid/write SAP MCP calls when the runtime cannot natively replay x402 challenges. Requires confirm: true and maxPriceUsd.
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. | |
| confirm | No | Must be true. Confirms the user allows this helper to sign an x402 payment payload. | |
| 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. | |
| maxAttempts | No | Optional retry count for transient x402/RPC failures such as BlockhashNotFound. Defaults to 3; max 5. | |
| maxPriceUsd | No | Maximum accepted x402 payment amount in USD. The call aborts if the challenge exceeds this cap. | |
| profileName | No | SAP MCP profile used to sign the x402 payment. Defaults to the active profile. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| audit | No | Agent-readable proof object with intent id, profile, payment receipt, settlement signature, attempts, and secret-material guarantee. | |
| payment | No | Selected payment requirements, including amountUsd, network, asset, and payTo. | |
| success | No | Whether the hosted paid MCP call completed successfully. | |
| attempts | No | Number of paid-call attempts used. | |
| endpoint | No | Hosted MCP endpoint used for the paid call. | |
| response | No | Remote MCP JSON-RPC response after successful paid retry. | |
| sessionId | No | MCP session id used for the unpaid challenge and paid retry. | |
| settlement | No | x402 settlement response returned by the facilitator when available. | |
| signerAddress | No | Public address of the local SAP MCP signer. Secret bytes are never returned. | |
| transientRetries | No | Retryable errors encountered before success. |