Skip to main content
Glama
MCP Financial Calculator

MCP Financial Calculator

mirr

Calculates the modified internal rate of return for periodic cash flows using finance and reinvestment rates, helping evaluate project profitability.

Instructions

Calculate MIRR for periodic cashflows.

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": {
      "cashflows": "<cashflows>",
      "financeRate": "<financeRate>",
      "reinvestRate": "<reinvestRate>"
    },
    "name": "mirr"
  }
}

Input Schema

NameRequiredDescriptionDefault
cashflowsYes
financeRateYes
reinvestRateYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.6/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 discloses almost nothing. It does not state the prerequisite that cashflows must contain at least one negative and one positive value, does not describe the returned value (rate vs. percentage), and does not say what happens on invalid inputs.

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?

A single sentence with no waste and the key term front-loaded, but the brevity comes at the cost of under-specification rather than economy. It is short because it omits information, not because it distills it.

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 three-required-parameter financial function with no annotations, no output schema, and no parameter documentation, the description leaves too much unstated. An agent cannot confirm cashflow sign rules, rate units, or the shape of the result from this definition alone.

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

Parameters2/5

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

Schema description coverage is 0%, so all three parameters depend on the description, which only gestures at 'cashflows'. financeRate and reinvestRate — the defining inputs of MIRR — are never explained in terms of sign convention, periodicity, or relation to each other.

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 and resource ('Calculate MIRR') and scopes it to 'periodic cashflows', which implicitly separates it from the irregular-timing sibling xirr and from plain irr. It stops short of explaining what MIRR means or how it differs from irr, so an agent unfamiliar with the acronym still has to infer.

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 explicit when-to-use guidance and no named alternative, even though the sibling list contains irr, xirr, and npv that compete for the same request. 'Periodic cashflows' is the only selection hint, and the agent must derive it.

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