Skip to main content
Glama

UK Data: Everyday calculators

calculate_age

Read-onlyIdempotent

Calculates a person's age in years based on their birth date and the current date. (cost: 1 credit)

Input Schema

NameRequiredDescriptionDefault
birth_dateNostring, required, date of birth in ISO format (YYYY-MM-DD), no unit, no default

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description adds two useful behavioral facts beyond them — the 1-credit cost and the dependence on the current date — but says nothing about rounding/precision, timezone of 'current date', or the returned value.

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?

Two compact sentences with the purpose first and the cost parenthetical last; no filler or redundant restatement.

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 single-parameter, no-output-schema utility, this is close to sufficient: purpose, input basis, and cost are all given. Minor gaps remain around precision and the exact form of the returned age.

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 the single parameter already documents the required ISO (YYYY-MM-DD) format. The description only restates that a birth date is needed, adding no meaning beyond the schema.

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 ('Calculates a person's age in years') plus the basis ('based on their birth date and the current date'), which cleanly separates it from the many other calculate_* siblings that have generic or unnamed purposes.

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?

The usage is strongly implied by the description, but there is no explicit when-to-use framing, no mention of what to do instead for related questions (e.g. is_leap_year, format_date), and no prerequisites stated.

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