Calculate SAP x402 Cost
sap_x402_calculate_costCalculate cost for X402 registry calls using volume pricing curves. Estimate total cost before escrow creation or settlement in SAP payment flow.
Instructions
Pure local cost calculation using SDK X402Registry.calculateCost; does not read chain state. 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 calculate | |
| basePrice | No | Base price per call in token base units | |
| volumeCurve | No | Array of { afterCalls, pricePerCall } pricing breakpoints | |
| totalCallsBefore | No | Cumulative settled calls before this calculation (default: 0) |
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. |