Compare legacy vs modern
compare_implementationsRun an order through both legacy and modern invoice calculators and report whether they agree, so you can verify a refactor before switching MIGRATION_MODE to modern.
Instructions
Run the order through BOTH the legacy and the modern calculator and report whether they agree. Use this to verify a refactor before switching MIGRATION_MODE to modern.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"customerId": "<customerId>",
"items": "<items>"
},
"name": "compare_implementations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Order lines | |
| customerId | Yes | Customer id from list_customers |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| match | Yes | ||
| legacy | Yes | ||
| modern | Yes |