Skip to main content
Glama

nestegg-calculators

Annuity Present Value

annuity-pv
Read-onlyIdempotent

Present value of an ordinary annuity (level payment at each period end). rate is the per-period rate in percent.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paymentYesPayment per period.
periodsYesNumber of periods.
ratePctYesRate per period in percent.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pvNoPresent value.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

The annotations already declare readOnlyHint and idempotentHint, so the description doesn't need to restate that. It adds the behavioral constraint that this is an ordinary annuity with payments at period end, and clarifies that the rate is per-period in percent, which prevents misuse. No contradiction with annotations.

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?

The description is a single concise sentence that front-loads the core purpose and includes the key nuance about payment timing. Every word earns its place.

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?

Given the simplicity of the tool, the combination of the description, full schema descriptions, and annotations is sufficient. The description covers the main concept and the rate unit, leaving no obvious gaps for a straightforward financial calculation. It doesn't explain the formula, but that's not required.

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?

The input schema already provides descriptions for all three parameters (payment, periods, ratePct), and the description reinforces that ratePct is per-period and in percent. However, it adds little beyond the schema's existing parameter descriptions, so the added semantic value is marginal.

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?

The description explicitly states the tool calculates the present value of an ordinary annuity, with a parenthetical clarifying level payments at period end. This clearly distinguishes it from sibling tools like annuity-fv or annuity-payment.

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 description implies when to use the tool by defining the scenario (ordinary annuity, period-end payments), but it does not explicitly name alternatives or state when not to use it. It doesn't mention that annuity-fv handles future value or that present-value may handle general cash flows. Guidance is implied rather than direct.

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.