Skip to main content
Glama

CD Calculator API - certificate of deposit interest, APY/APR, tax & schedule

cd_calculator
Read-onlyIdempotent

Calculate Certificate of Deposit (CD) maturity value, total compound interest, effective APY and equivalent nominal APR from deposit, term (months or years), and compounding frequency (daily, monthly, quarterly, semiannually, annually, continuous). Supports optional marginal tax rate (after-tax return and after-tax APY), inflation-adjusted real value, early withdrawal penalty estimator, 3-to-60-month term comparison, and optional monthly and yearly growth schedule. 0 AI, deterministic, < 5 ms, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.001/call via x402 at https://radarbg.com/x402/cd-calculator.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "rate": 5,
      "term": 12,
      "deposit": 10000,
      "taxRate": 22,
      "rateType": "apy",
      "termUnit": "months",
      "compounding": "daily"
    },
    "name": "cd_calculator"
  }
}

Input Schema

NameRequiredDescriptionDefault
rateNoInterest rate (%)
termNoCD term length (in termUnit, e.g. 12 months or 3 years)
depositNoInitial CD deposit amount (e.g. 10000)
taxRateNoOptional marginal tax rate on interest (%)
rateTypeNo'apy' = annual percentage yield; 'apr' = nominal stated interest rateapy
termUnitNoUnit for term: 'months' or 'years'months
startMonthNoOptional start month YYYY-MM (defaults to next month)
compoundingNoInterest compounding frequencydaily
penaltyDaysNoOptional early withdrawal penalty in days of interest (e.g. 90 or 180)
inflationRateNoOptional expected annual inflation rate (%)
includeScheduleNoInclude full monthly and yearly growth schedule

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and open-world, so the safety profile is covered. The description adds genuinely useful behavior the annotations cannot: deterministic '0 AI', sub-5ms latency, stateless ('nothing stored'), free tier of 5 calls/day per IP, and paid access via X-API-Key or x402. What it does not disclose is the response shape, though no output schema exists to assume it from.

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 capability is front-loaded and information-dense, but the second half is a long pricing/access block with full URLs and per-call pricing detail that is boilerplate relative to the calculation semantics. It is serviceable but contains material that does not help an agent decide or invoke correctly.

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 an 11-parameter, zero-required tool with no output schema, the description does the necessary work of naming the optional outputs (after-tax return, real value, penalty estimate, comparison, schedule) so the agent knows what triggering each flag yields. Only the returned data shape is left unspecified, which is a modest gap given the absence of an output schema.

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%, so all 11 parameters are already documented, and the description largely restates the same surface (compounding options, term units, optional tax rate). It adds little parameter-level meaning beyond the schema, so the baseline 3 is appropriate.

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 opens with a specific verb and resource ('Calculate Certificate of Deposit (CD) maturity value') and enumerates the exact inputs and outputs it handles: compounding frequency, APY/APR, tax, inflation, penalty, schedule. An agent can distinguish it from a generic compound-interest calculcator by the CD-specific framing and the named feature set.

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 by the feature list (CD maturity, early withdrawal penalty, term comparison), but there is no explicit when-to-use versus when-not guidance and no mention of the sibling compound_interest_calculator. The only routing signal is the embedded pricing/auth information, which tells an agent how to call the paid tiers rather than when this tool is the right one.

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