Skip to main content
Glama

Amaltash Investment & Retirement Calculators

APY Calculator

calculate_apy
Read-onlyIdempotent

APY Calculator with a chart, the same math as the web page. What is my APY? APY is what a rate really pays in a year. It counts interest earned on interest. It turns a rate into its APY by counting interest on interest as often as you pick. It also shows a year of interest. It does not look up the rates banks pay today. People ask for it as "apy calculator", "how is apy calculated" or "how do i calculate apy".

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "calculate_apy"
  }
}

Input Schema

NameRequiredDescriptionDefault
nNoHow often interest is added. Default: 365.
fedNoYour federal tax rate. Shows what you keep after tax. Default: 0.
rateNoInterest rate each year. A percent: 5 means 5%. The rate before interest on interest. Your bank lists it. Default: 4.
moneyNoMoney you put in. US dollars. Optional. Shows one year of interest. Default: 10000.
stateNoYour state tax rate. A percent: 5 means 5%. Empty if left out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds useful behavior: it produces a chart, shows one year of interest, and its math matches the web page. It does not explain what happens with optional/absent inputs (e.g. blank state rate) or the shape of results, leaving that to the schema.

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

Conciseness2/5

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

The text is padded and repetitive: interest-on-interest is explained three separate times, and the closing string of SEO query variants ('apy calculator', 'how is apy calculated', 'how do i calculate apy') carries no operational information for an agent. The first sentence is reasonably front-loaded, but several sentences do not earn their place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With five fully documented optional parameters and complete annotations, an agent has enough structured data to invoke the tool. The description nonetheless omits how this differs from the near-identical siblings and says nothing about the chart or result content. Adequate, but with clear gaps for a computational finance tool in a crowded family.

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 coverage is 100% and every parameter is documented in-schema, including enums, defaults and percent semantics, so the baseline of 3 applies. The description gestures at two parameters ('as often as you pick' for compounding, 'a year of interest' for money) but adds no syntax, units, or edge-case meaning beyond what the schema already states.

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 (turn a rate into its APY, with compounding frequency selectable) and defines the concept: 'APY is what a rate really pays in a year.' It also scopes out what it is not ('does not look up the rates banks pay today'). It never distinguishes itself from adjacent siblings like convert_apr_to_apy or compound_interest, so it stops short of 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?

Usage is implied through sample phrasings ('how is apy calculated') and one negative exclusion about not fetching current bank rates. There is no explicit statement of when to choose this over convert_apr_to_apy or compound_interest, which are the closest alternatives in the sibling list. The agent must infer the boundary from concept overlap alone.

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