Skip to main content
Glama

Age Calculator

calculate_age
Read-onlyIdempotent

Calculate exact age from a birth date: age in years, years/months/days, Japanese kazoedoshi (traditional age), days since birth, next birthday and days until it, weekday of birth, Japanese era (wareki) of the birth date and the zodiac animal (eto). February 29 birthdays move to March 1 in non-leap years. Reference date defaults to today in Japan.

Input Schema

NameRequiredDescriptionDefault
langNoLanguage of the user. Use "ja" when the user writes in Japanese (affects the source link and notes). Default "en".
birth_dateYesDate in YYYY-MM-DD (1873-01-01 to 2200-12-31)
reference_dateNoDate in YYYY-MM-DD (1873-01-01 to 2200-12-31)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, non-open-world, so the safety profile is covered. The description adds genuinely new behavioral context beyond the schema: the Feb 29 -> Mar 1 rule and the Japan-timezone default for the reference date, which an agent could not infer otherwise.

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

Conciseness4/5

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

Front-loaded with the verb and purpose, followed by a dense output list and two short edge-case sentences. Every clause carries information, though the long mid-sentence output enumeration is list-heavy rather than prose-optimized.

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 no output schema, the description correctly enumerates the returned fields and covers the key edge case (leap-day) and the reference-date default. The only thin spot is that lang's effect is left entirely to the schema, but overall it is complete enough for correct invocation.

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?

Schema coverage is 100% and the schema documents all three parameters including the lang enum and date range. The description adds only one semantic not in the schema, the default reference date being today in Japan, so the baseline of 3 applies.

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

Purpose5/5

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

The description opens with a specific verb+resource ('Calculate exact age from a birth date') and then enumerates the concrete outputs, so an agent knows precisely what the tool computes. It is easily distinguished from siblings like convert_japanese_era or days_between because it bundles multiple derived values rather than performing one conversion.

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 leap-day rule and the 'reference date defaults to today in Japan' note signal relevant contexts, but there is no explicit statement of when to pick this over days_between or convert_japanese_era. The guidance is adequate but leaves the routing decision 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.

Resources