Skip to main content
Glama

ScorpTech x402 Tools

Npv Irr

npv_irr
Read-onlyIdempotent

Investment appraisal for a cash-flow series: NPV at a discount rate, IRR (all roots for non-conventional flows), MIRR, profitability index, simple and discounted payback; with dates gives Excel-compatible XNPV and XIRR. POST JSON body {cashFlows, ratePct, dates?}. Returns JSON with: npv, ratePct, periods, dated, irrPct, mirrPct, profitabilityIndex, paybackPeriods. Price: $0.003 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/npv-irr

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": "npv_irr"
  }
}

Input Schema

NameRequiredDescriptionDefault
datesNoOptional YYYY-MM-DD date per cash flow for XNPV / XIRR (Actual/365)
ratePctNoDiscount rate per period (or per year with dates), percent
cashFlowsYesCash flows per period starting at t=0 (investments negative)
financeRatePctNoMIRR finance rate (default ratePct)
reinvestRatePctNoMIRR reinvestment rate (default ratePct)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations, the description discloses pricing ($0.003 USDC per successful call), payment protocol (x402 on Base or Solana), an HTTPS endpoint, the POST body shape, and the returned JSON fields. It also notes special IRR behavior for non-conventional flows and Excel compatibility for dated calculations, which is substantive operational context.

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 description is dense but well front-loaded: purpose first, then request shape, return fields, price, and endpoint. Every sentence carries operational information, though the body-shape shorthand is slightly incomplete and could be tighter.

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

Completeness5/5

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

Given a complex financial tool with five parameters and no output schema, the description supplies the return field list, the payment and endpoint details, and the dated versus undated behavior. Together with the annotations and fully described schema, an agent has enough information to invoke it correctly.

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%, so all five parameters are already documented in the schema. The description repeats the minimal body shape {cashFlows, ratePct, dates?} and adds little beyond the schema, while omitting the optional MIRR rate parameters from that shorthand. Baseline 3 is appropriate when the schema carries the parameter semantics.

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 and resource: investment appraisal for a cash-flow series, with named outputs NPV, IRR, MIRR, profitability index, and payback. It distinguishes dated and non-dated behavior by explaining that dates trigger Excel-compatible XNPV and XIRR. An agent can tell exactly what computation this tool performs.

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

Usage Guidelines4/5

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

The description clearly frames the tool as investment appraisal for a cash-flow series and notes the dated variant for XNPV/XIRR. It does not name explicit alternatives or when-not-to-use conditions, but the usage context is clear enough for selection.

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