Skip to main content
Glama

Leap Year Checker

calculator_leap_year
Read-only

Gregorian leap-year check and days in year (div by 4, not 100 unless 400).

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": {
      "year": "<year>"
    },
    "name": "calculator_leap_year"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearYesYear to check (1–9999).

Output Schema

NameRequiredDescriptionDefault
yearYes
expressionYes
days_in_yearNo
is_leap_yearYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare this a safe, closed-world read, so the safety profile is covered. The description adds real behavioral value by disclosing the exact Gregorian rule applied (div by 4, not 100 unless 400) and by noting a second return dimension (days in year), letting the agent predict results for edge cases like 1900 vs 2000.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One dense sentence with the primary function front-loaded and the rule parenthetical placed after it. No filler, no restatement of the title or annotations.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, return-value explanation is not required, and annotations cover the safety profile; the description still tells the agent the rule used and that days-in-year is also produced. Only the absence of sibling routing guidance keeps it from being fully complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There is a single parameter with 100% schema description coverage including a range (1–9999) and examples, so the schema fully carries parameter meaning. The description adds nothing about the year argument, which is the expected baseline-3 outcome when coverage is complete.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ('Gregorian leap-year check') plus a secondary output ('days in year'), which is far more than the tautological name restates. It does not explicitly distinguish itself from adjacent siblings such as calculator_days or calculator_weekday, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: the phrase 'leap-year check and days in year' signals the intended question, but there is no explicit when-to-use/when-not guidance and no pointer to alternatives for date-based questions. Adequate but leaves routing to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.