Skip to main content
Glama

pyeconomics

Capital budgeting

corporate_capital_budgeting
Read-onlyIdempotent

Project NPV, IRR, MIRR, fractional payback, profitability index and equivalent annual annuity. Runs Capital budgeting (corporate.capital_budgeting, version 2) on the given inputs and returns its canonical result: the validated inputs, the outputs, the warnings and the manifest. Every number carries its unit in the input schema; rates are decimals.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "rate": 0.1,
      "cash_flows": [
        -100,
        60,
        60
      ],
      "finance_rate": 0.1,
      "reinvestment_rate": 0.1
    },
    "name": "corporate_capital_budgeting"
  }
}

Input Schema

NameRequiredDescriptionDefault
rateYesDiscount rate per period
cash_flowsYesSigned project cash flows at t=0, 1, ...; negative means paid out
finance_rateNoMIRR financing rate per period for negative flows
reinvestment_rateNoMIRR reinvestment rate per period for positive flows

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is fully covered. The description adds genuine value by stating the return envelope (validated inputs, outputs, warnings, manifest), but says nothing about computation limits such as non-unique IRR with multiple sign changes or when warnings get raised — the most decision-relevant behavior for this tool.

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 sentences: metrics first, then execution and return shape, with the units caveat last. No filler, no restatement of the title, and the most informative content is front-loaded.

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 an output schema present and full schema coverage, the definition covers what an agent needs to invoke it correctly. The remaining gap is behavioral: nothing says how degenerate inputs (IRR undefined, payback never reached) surface in the outputs/warnings, which matters for interpreting the call.

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 per-parameter meaning is already documented (rate is 'discount rate per period', cash_flows are signed with negatives paid out, finance/reinvestment rates feed MIRR). The description still adds a useful cross-cutting convention — 'rates are decimals' and every number carries a unit — which disambiguates 0.1 vs 10 at call time.

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?

Names the exact resource (corporate.capital_budgeting v2) and enumerates the specific metrics computed — NPV, IRR, MIRR, fractional payback, profitability index, EAA. An agent can tell it is a capital-budgeting projector rather than a cost-of-capital or dividend-discount tool, though it never explicitly contrasts itself with those siblings.

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 context is implied by the phrase 'Runs Capital budgeting ... on the given inputs', so an agent can infer this is the entry point for project cash-flow valuation. There is no explicit when-to-use/when-not guidance, no prerequisites (e.g. sign convention requirements for IRR to exist), and no named alternative for related tasks.

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.