Skip to main content
Glama

finance_cashflow

Read-only

Cash Flow Analysis (NPV, IRR, MIRR) — Offline capital-budgeting math: flows= comma-separated cash flows starting at period 0 (investment negative), rate= discount rate % per period (default 10). Optional reinvest= and finance_rate= (MIRR), period=year|quarter|month|week|day (annualizes IRR). Returns NPV, IRR (all IRRs when signs change more than once), MIRR, profitability index, payback and discounted payback, equivalent annuity, accept/reject and a per-period PV schedule. Price: $0.002 USDC (Base, via x402).

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": {
      "flows": "<flows>"
    },
    "name": "finance_cashflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
flowsYes-1000,300,400,500

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, non-destructive), and the description adds genuinely new behavior: the computation is offline/deterministic, the return payload is enumerated, sign-change handling for multiple IRRs is disclosed, and the cost ($0.002 USDC via x402) is stated. It stops short of describing failure behavior (e.g., what happens on malformed flows or negative rates), which keeps it from a 5.

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?

The definition is a single dense, front-loaded block in which nearly every clause carries information (input conventions, return fields, price). It is appropriately sized for the amount of information conveyed, though the unbroken one-paragraph format makes scanning harder than a short structured layout would.

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 no output schema, the description fully enumerates the return payload (NPV, IRR, MIRR, PI, payback, equivalent annuity, verdict, PV schedule), and it covers the cost model. The one substantive gap is the mismatch between described optional parameters and the one-parameter schema, which could mislead an agent about callable arguments.

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 100% and the description usefully explains the semantics of flows (period 0, negative for investment), which the terse schema example does not. But it also documents rate, reinvest, finance_rate, and period — parameters that do not exist in the supplied schema — creating ambiguity about which arguments are actually accepted, so the added meaning is partly unreliable.

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 states a specific verb+resource ('Cash Flow Analysis … Offline capital-budgeting math') and enumerates the exact computations produced (NPV, IRR, MIRR, PI, payback). An agent can distinguish this from finance_loan_calc or finance_invest_calc without opening the schema, because the method family (capital budgeting from a raw flow series) is named 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 parameter conventions ('flows= comma-separated cash flows starting at period 0 (investment negative)'), which tells an agent what kind of input this tool expects. However, there is no explicit when-to-use/when-not guidance and no named alternative among the many finance_* siblings, so the agent must infer the routing decision itself.

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