datetime_diff
Calculate the difference between two dates or times. Input start and end dates to get the duration between them.
Instructions
Calculate the difference between two dates/times
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": {
"from": "<from>",
"to": "<to>"
},
"name": "datetime_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | End date (ISO 8601 or common formats) | |
| from | Yes | Start date (ISO 8601 or common formats) |