money_prorate
Prorate a cycle amount over a service window: prorated = amount * covered_days / cycle_days, exact fraction reported, rounding is the last step (half_up default), window clamped to the cycle. Paid route (x402 from first call).
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": {
"amount": "<amount>",
"cycle_start": "<cycle_start>",
"cycle_end": "<cycle_end>",
"service_start": "<service_start>",
"service_end": "<service_end>"
},
"name": "money_prorate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | half_up | |
| clamp | No | ||
| amount | Yes | decimal string | |
| places | No | ||
| cycle_end | Yes | ||
| inclusive | No | ||
| cycle_start | Yes | ||
| service_end | Yes | ||
| service_start | Yes |