Skip to main content
Glama

finance npv

finance_npv
Read-only

Investment appraisal from a cashflow series: NPV at your discount rate, IRR, profitability index, simple and discounted payback periods, totals, a sensitivity table of NPV at rates +/-2 and +/-5 points, and a verdict. Periods are whatever spacing you give (years, months). $0.002. Costs $0.002 USDC per call (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": {
      "cashflows": "<cashflows>"
    },
    "name": "finance_npv"
  }
}

Input Schema

NameRequiredDescriptionDefault
rateNodiscount rate per period in %, default 10
cashflowsYesperiod 0 first, outflows negative

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 declare readOnlyHint and openWorldHint, so the safety profile is covered. The description adds meaningful context the annotations cannot: a per-call cost ($0.002 USDC via x402, which implies a payment step) and the full set of computed outputs, including the sensitivity table. It stops short of stating constraints such as minimum cashflow count or what happens when IRR is undefined.

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 output inventory is front-loaded before the two short trailing sentences on period spacing and price. The first sentence is a long comma-chain, but nearly every clause carries distinct information (a named metric or cost), so little is wasted.

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, enumerating the returned metrics is the right compensating move, and the description does it. Gaps remain for a computation tool: what 'verdict' actually means, whether IRR requires a sign change, and any array-length or numeric limits on cashflows are unstated.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description still adds value: 'NPV at your discount rate' ties the rate parameter to the per-period denominator, and 'Periods are whatever spacing you give (years, months)' clarifies that rate and cashflow periods must share a unit — a semantic that the schema's 'discount rate per period in %' only hints at.

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?

States a specific verb+resource ('Investment appraisal from a cashflow series') and enumerates exactly what it returns: NPV, IRR, profitability index, payback periods, totals, a sensitivity table and a verdict. An agent can immediately tell this apart from siblings like finance_amortization or inflation_calculator without inspecting any schema.

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 domain framing ('investment appraisal from a cashflow series') and clarified by 'Periods are whatever spacing you give (years, months)', but there is no explicit when-to-use/when-not guidance and no sibling alternative is named. Adequate but leaves routing to inference.

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