is_leap_year
Checks if a given year is a leap year using the Gregorian calendar rule (divisible by 4, except centuries unless divisible by 400). (cost: 1 credit)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "is_leap_year"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | integer, required, the year to check (e.g., 2024) |