Estimate SAP x402 Cost
sap_x402_estimate_costEstimate cost for a number of calls before settling, using escrow or pricing data and optional volume curve overrides.
Instructions
Estimate cost for a number of calls using SDK X402Registry.estimateCost. Reads escrow/pricing when available and supports optional volume curve overrides. SAP MCP context: Payment and settlement flow. Estimate or fetch state before creating escrows or settling calls; write operations require an enabled signer mode and MCP policy approval.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| calls | No | Number of calls to estimate | |
| agentWallet | No | Agent wallet public key (base58) | |
| volumeCurve | No | Optional array of { afterCalls, pricePerCall } pricing breakpoints | |
| pricePerCall | No | Optional base price per call override in token base units | |
| totalCallsBefore | No | Optional cumulative settled calls before this estimate |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | MCP content blocks returned to the caller. | |
| isError | No | True when the tool result represents an application-level error. |