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 €15/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. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Annotations only establish readOnly/idempotent/openWorld; the description adds substantive behavior the agent could not otherwise know: server-side processing, immediate file deletion, no data retention, a 5-calls/day-per-IP free tier, and two paid auth paths (X-API-Key header or x402 payment). Rate limits, retention, and auth requirements are exactly the traits annotations cannot convey.

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 purpose sentence is front-loaded and wastes nothing. The second sentence is dense with pricing tiers, URLs, and a header name, which is useful but crowded; it could be trimmed without losing decision-relevant information.

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 two-parameter, read-only calculator with no output schema, the definition covers what it computes, the privacy posture, and the access/payment model. It is slightly thin on the shape of the return value (e.g., how 'next birthday' is represented) but otherwise sufficient to call correctly.

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% and both parameters already carry format hints (YYYY-MM-DD, 'default today'), so the schema does the heavy lifting. The description only loosely reinforces that asOf accepts any date; the baseline of 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+resource ('Exact age from a birth date') and enumerates the returned quantities (years, months, days, total days, next birthday), so its function is unmistakable. It stops short of distinguishing itself from likely siblings like date_calculator or countdown_days_until, so it does not reach 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?

'on today or any date' implies the optional asOf parameter and gives some sense of context, but there is no explicit when-to-use vs when-not guidance and no named alternative tool. The rest of the text is commercial and authentication information rather than selection guidance.

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