Skip to main content
Glama
finance-mcp

finance-mcp

pmt

Read-onlyIdempotent

Calculate the fixed amount to pay each period to repay a loan with interest from principal, annual rate, and number of periods, using exact decimal arithmetic.

Instructions

Level payment for a loan: the amount to pay each period so that the principal is repaid with interest over the given number of periods. Exact decimal arithmetic.

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": {
      "principal": "<principal>",
      "periods": "<periods>"
    },
    "name": "pmt"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNo0 = pay at period end (default), 1 = at the start.
periodsYes
principalYes
future_valueNoBalloon left unpaid at the end (default 0).
annual_rate_pctNoNominal annual rate in percent, e.g. 6 for 6%.
periods_per_yearNoPayments per year (12 = monthly).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so safety is covered. The description usefully adds that arithmetic is exact decimal (no float drift), but it omits rounding behavior, what happens when the rate is zero or omitted, and any error conditions for out-of-range periods.

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?

Two tight sentences: the operation and its amortization meaning come first, the numeric-precision note second. Nothing is wasted or buried.

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?

The core computation and the return value (the per-period amount) are conveyed, which is adequate for a small math utility with no output schema. However, defaults for annual_rate_pct and periods_per_year are absent from both description and schema, leaving an agent to guess how a rate-free call behaves.

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 67% and the schema itself documents type, future_value, annual_rate_pct and periods_per_year, so most semantics are already structured. The description adds the conceptual role of principal/periods (the payment amortizes the principal over those periods) but nothing about defaults for the rate or payment frequency, which are unstated in both places.

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?

States a precise verb+resource: it computes the level payment per period for a loan, and clarifies the amortization relationship (principal repaid with interest over the given number of periods). This distinguishes it from siblings like fv/npv/irr by concept, though it never names an alternative explicitly.

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 definition of a level payment, so an agent can infer this is the tool for a fixed installment amount. There is no explicit when-to-use versus when-not guidance, and no mention that loan_schedule would be the choice when a full amortization table is wanted rather than a single payment figure.

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

Deploy Server

Other Tools