Skip to main content
Glama

time_age

Read-only

Age calculator — Exact age from a birth date: years/months/days, totals in days/weeks/months, next birthday (date, days until, weekday, age turning), birthday-today flag, born weekday and day of year, leap-day handling (leap=feb28 default or mar1), 18/21/65 thresholds and dates, US Social Security full retirement age and date, earliest benefits and Medicare dates, generation, western and Chinese zodiac, and day-count milestones. dob=YYYY-MM-DD required; optional on=YYYY-MM-DD reference date or tz= (IANA) for today. Price: $0.001 USDC (Base, via x402).

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": {
      "dob": "<dob>"
    },
    "name": "time_age"
  }
}

Input Schema

NameRequiredDescriptionDefault
dobYes1990-05-15

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/non-destructive, and the description adds genuinely useful behavior beyond them: leap-day policy with its default (leap=feb28), the reference-date override, IANA timezone handling, and the $0.001 USDC x402 payment requirement. Cost and default-behavior disclosure are exactly what annotations cannot convey; only output formatting is left implicit.

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?

Purpose and required input are front-loaded, and no sentence is filler — even the pricing note carries decision-relevant weight. It is a single dense run-on enumeration, though, and the parameter notes (on/tz/leap) are buried at the tail rather than structured separately.

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 one parameter and no output schema, the description carries the full burden of describing returns, and it does so thoroughly, including defaults and pricing. The gap is that several referenced parameters are absent from the schema, which could mislead an agent into trying to pass on/tz/leap.

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?

The schema documents only dob with a bare example ('1990-05-15'), and the description usefully fixes the YYYY-MM-DD format and its meaning. But it also describes on=, tz=, and leap= parameters that do not appear in the input schema at all, so the added semantics partly point at inputs the agent cannot supply.

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?

States a specific verb and resource — 'Age calculator — Exact age from a birth date' — then enumerates the concrete outputs (years/months/days, next birthday, thresholds, zodiac, milestones). That enumeration makes it unmistakably distinct from generic date-arithmetic siblings like time_date_math or time_calendar_info.

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 implied by the output list (an agent can infer to call this when it needs age or retirement-eligibility figures), and the required dob plus optional on/tz is spelled out. However, there is no explicit when-to-use vs when-not guidance and no named alternative for plain date subtraction.

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