datetime_diff
Calculate the number of days between two dates by subtracting Date B from Date A. Use it to measure date spans for scheduling, billing, or project timelines.
Instructions
Return the number of days between two dates (a - b).
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": {
"date_a": "<date_a>",
"date_b": "<date_b>"
},
"name": "datetime_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date_a | Yes | ||
| date_b | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |