Skip to main content
Glama

MaliMoney Calculators

Longevity Estimate

longevity_estimate
Read-onlyIdempotent

Actuarial life-expectancy and planning-horizon estimate from mortality tables. Use for 'how long should I plan for', 'what age should I plan to', 'how long does my money need to last', or any retirement-horizon question — instead of assuming age 95. Pass partnerAge for couples: it returns the LAST-survivor horizon (the age by which there's only a ~10% chance either partner is alive), which is what a joint plan must fund. Quote the planning-horizon age; for couples explain they should fund the last survivor, not the average.

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": {
      "currentAge": "<currentAge>"
    },
    "name": "longevity_estimate"
  }
}

Input Schema

NameRequiredDescriptionDefault
currentAgeYes
partnerAgeNoPartner's age — include for couples to get joint last-survivor figures.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, and closed-world behavior. The description adds useful context beyond that: it computes from mortality tables, returns a last-survivor horizon with a ~10% survival probability for couples, and advises quoting the planning-horizon age. It does not describe the exact return structure, but that is a minor gap given the simple output.

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 description is front-loaded with the core purpose, then provides usage examples, partnerAge behavior, and quoting guidance. Each sentence adds value, though the final sentence could be slightly tighter. Overall it is efficient and well-organized.

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 tool with no output schema, the description covers purpose, usage scenarios, joint-survivor semantics, and advice on interpreting results. It does not explicitly state the return type (e.g., an age number), but the phrase 'planning-horizon age' implies this. Safety behavior is fully covered by annotations, so the description need not repeat it.

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 description coverage is 50%, with only partnerAge documented. The description significantly enriches partnerAge semantics by explaining that including it returns the last-survivor horizon (the age by which only ~10% chance either partner is alive) and that joint plans should fund that age. currentAge remains undocumented in both schema and description, but its meaning is obvious from context.

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 states a specific verb and resource: 'Actuarial life-expectancy and planning-horizon estimate from mortality tables.' It clearly distinguishes the output (planning-horizon age, last-survivor age) and contrasts with assuming age 95. No explicit sibling tool is named, which keeps it from 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 Guidelines4/5

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

The description gives explicit when-to-use examples ('how long should I plan for', 'what age should I plan to') and the scenario to avoid ('instead of assuming age 95'). It also instructs to pass partnerAge for couples. However, it does not name alternative tools or specify when not to use this tool.

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