Skip to main content
Glama

Age Calculator API - exact age in years, months, days

age_calculator
Read-onlyIdempotent

Exact age from a birth date on today or any date: years, months, days, total days and next birthday. Runs on our server, files are deleted right after the call, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €9/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.001/call via x402 at https://radarbg.com/x402/age-calculator.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "dateOfBirth": "1990-05-17"
    },
    "name": "age_calculator"
  }
}

Input Schema

NameRequiredDescriptionDefault
asOfNoAge on this date (default today)
dateOfBirthYesDate of birth YYYY-MM-DD

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, openWorld), the description discloses privacy behavior ('files are deleted right after the call, nothing stored'), rate limits (5 calls/day per IP), and both authentication paths (X-API-Key paid tier, x402 per-call billing). These are exactly the operational facts an agent needs that structured fields do not carry.

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?

The capability and the returned values are front-loaded, followed by privacy and pricing in a compact two-sentence block. The pricing sentence is dense with URLs and tiers, but it is information an agent needs for access, so little is wasted.

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?

For a simple two-parameter read-only tool with annotations and full schema coverage, the description covers purpose, outputs, privacy, rate limits, and auth. Minor gaps remain – no error behavior for invalid dates, and no explicit note on the response shape beyond the enumerated measure names.

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 description coverage is 100%, so both parameters are already documented ('dateOfBirth YYYY-MM-DD', 'asOf default today'). The description's phrase 'on today or any date' echoes the asOf default rather than adding new meaning such as date-range limits or format edge cases, so baseline 3 applies.

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?

The description names a specific verb and resource ('Exact age from a birth date') and enumerates the returned measures (years, months, days, total days, next birthday), which distinguishes it from a generic date_calculator. It does not explicitly differentiate itself from close siblings like countdown_days_until or date_calculator, so it falls 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 implied by 'Exact age from a birth date on today or any date' – an agent can infer it computes age for a given date. There are no explicit when-not conditions or named alternatives (e.g., when to prefer countdown_days_until for a birthday countdown), so guidance remains at the implied level.

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