Skip to main content
Glama

age-threshold

Age in complete years on a date and the exact dates a minimum or maximum age is reached (leap-day births) — For up to 100 people, computes age in complete years and months on a caller asOf date, the date they reach each minimum age (the birthday) and the first day they exceed each maximum age, and checks min/max age requirements; 29 February births need a declared common-year rule (28 February or 1 March) because jurisdictions differ. Built for an agent checking eligibility (18+, under 65, 21 to buy). I

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": {
      "asOf": "<asOf>",
      "items": "<items>"
    },
    "name": "age-threshold"
  }
}

Input Schema

NameRequiredDescriptionDefault
asOfYes
itemsYes
leapDayRuleNoIn common years a 29 February birthday is observed on 28 February or on 1 March depending on the legal context you apply; you must choose. Required if any birth date is 29 February.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it discloses the 100-item cap, that asOf is caller-supplied, that leap-day handling is jurisdiction-dependent and must be chosen, and that max-age is exceeded the day after the birthday. It omits failure behavior (e.g., future birth dates, missing leapDayRule) and return shape, keeping it below a 5.

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

Conciseness3/5

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

The core facts are front-loaded, but the text is a run-on with dense parentheticals, and it ends with a dangling 'I' fragment that looks like truncation and adds nothing. Restructuring into short separate sentences would make the leap-day rule and boundary semantics easier to scan.

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?

There is no output schema, so the description appropriately spells out what is returned: complete years and months, the birthday reaching each minimum age, and the first day exceeding each maximum age. For a three-parameter eligibility calculator this is nearly complete; only error conditions and the role of the 'id' field remain unexplained.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 33% and minAgeYears has no schema description, but the prose compensates: it explains asOf as the reference date, the items cap, and the inclusive boundary semantics ('first day they exceed each maximum age'). The leapDayRule rationale (28 February vs 1 March by jurisdiction) adds real meaning beyond the bare enum. The 'id' field is never mentioned, a minor gap.

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 computation: age in complete years and months on a caller-supplied asOf date, the date each minimum age is reached, and the first day each maximum age is exceeded. The scope (up to 100 people, eligibility checking) makes it unmistakable what this tool does versus any sibling utility.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear usage context: 'Built for an agent checking eligibility (18+, under 65, 21 to buy)' and notes the leap-day rule must be declared when a 29 February birth is present. It does not name any alternative tools or state when not to use it, so it stops short of full routing 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