Skip to main content
Glama

Money maths

money_maths
Read-onlyIdempotent

Works out compound growth, what a fee costs over the years, what inflation does to cash, or how holding more things changes how much a mix swings, from numbers the person gives. Use it to show how money grows or shrinks over time with their own example. Pure arithmetic, drawn as a chart they can change in Claude; the rate is their assumption, never a forecast or a suggestion.

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": {
      "calculation": "<calculation>"
    },
    "name": "money_maths"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearsNoNumber of years, 1 to 60.
amountNoStarting amount (compound_growth, fees, inflation).
fee_pctNoYearly fee in percent of the balance (fees).
monthlyNoOptional amount added each month (compound_growth, fees).
holdingsNoShow up to this many holdings, 2 to 100 (diversification; default 20).
rate_pctNoYearly return the person wants to assume, in percent (compound_growth, fees).
calculationYesWhich calculation.
correlationNoHow closely holdings move together, -1 to 1 (diversification).
inflation_pctNoYearly inflation to assume, in percent (inflation).
volatility_pctNoHow much one holding swings in a year, in percent (diversification).

Output Schema

NameRequiredDescriptionDefault
linesYes
inputsNo
noticeYes
seriesYes
xLabelNo
yLabelNo
calculationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, closed-world and non-destructive, so the safety profile is covered. The description adds genuinely useful context beyond them: the results are pure arithmetic rendered as a chart the user can edit in Claude, and the rate is the user's own assumption rather than a recommendation — an important framing constraint for financial 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?

Three sentences, front-loaded with the four calculation types, followed by usage and then the caveat about assumptions. Dense but every clause carries information; the phrasing is conversational rather than crisp, which keeps it off a 5.

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?

With an output schema present and annotations covering safety, the description needn't explain return values. It covers purpose, usage, and the epistemic caveat, which is sufficient for a 10-parameter tool whose schema documents all inputs.

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%, and each parameter already documents its unit, range, and which calculation it applies to (e.g. fee_pct for fees, correlation for diversification). The description adds no per-parameter meaning beyond that, so the baseline 3 applies.

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 names a concrete verb (works out) and enumerates the four specific calculations — compound growth, fee drag, inflation erosion, and diversification volatility — which map directly onto the calculation enum. This clearly separates it from the data-retrieval siblings, which fetch facts rather than do arithmetic.

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?

"Use it to show how money grows or shrinks over time with their own example" gives a clear use context, and the closing clause rules out treating outputs as forecasts. It stops short of naming an explicit when-not condition or pointing to a specific alternative tool, so it falls just short of a 5.

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.