Skip to main content
Glama
MCP Financial Calculator

MCP Financial Calculator

pmt

Calculate loan or annuity payments per period from interest rate, period count, and present value to determine recurring cash flows.

Instructions

Calculate payment amount per period.

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": {
      "rate": "<rate>",
      "nper": "<nper>",
      "pv": "<pv>"
    },
    "name": "pmt"
  }
}

Input Schema

NameRequiredDescriptionDefault
fvNo
pvYes
nperYes
rateYes
typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it discloses nothing about the sign of the returned payment, how the 'type' flag (begin vs end of period) changes the result, error behavior for invalid rate/nper, or the return shape. Only the barest statement of what is computed is given.

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?

One short, front-loaded sentence with no filler, so nothing needs trimming. The problem is under-specification rather than verbosity; the available space is simply not used.

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

Completeness2/5

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

For a 5-parameter numerical tool with zero schema description coverage, no annotations, and no output schema, the definition is far too thin. An agent would have to guess units, sign conventions, and the semantics of the enum and fv parameters in order to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 5 parameters, including the enum on 'type' which is unlabeled (0/1) and the fv parameter aliased to pv. The description adds no meaning for rate, nper, pv, fv, or type, so an agent cannot know units (per-period rate vs annual), the meaning of the enum values, or how fv defaults.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The verb 'Calculate' and the resource 'payment amount per period' identify a specific computation, so the purpose is not a pure tautology of the name. However, it never states the standard financial semantics (periodic loan/annuity payment derived from rate, nper and pv) nor how it differs from siblings like fv, pv, nper, or rate, which share almost identical vocabulary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no guidance on when to use pmt rather than fv, pv, nper, or rate, and no mention of prerequisites or the sign convention for cash flows. The agent is left to infer everything from the name alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.