Skip to main content
Glama

excel_calculate_xirr

Calculate XIRR for irregular cash flows in an Excel workbook by specifying the worksheet, date range, and value range, with an optional initial guess.

Instructions

Calculate XIRR for irregular cash flows

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": {
      "filename": "<filename>",
      "worksheet": "<worksheet>",
      "dateRange": "<dateRange>",
      "valuesRange": "<valuesRange>"
    },
    "name": "excel_calculate_xirr"
  }
}

Input Schema

NameRequiredDescriptionDefault
guessNoInitial guess (decimal)
filenameYesWorkbook name
dateRangeYesDate range
worksheetYesWorksheet name
valuesRangeYesCash flow values range

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden and supplies almost nothing. It does not say whether the result is returned as a decimal rate, whether it writes into the workbook, how non-convergence or unsorted dates are handled, or whether the guess parameter affects failure modes.

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?

A single front-loaded sentence with no filler, so nothing is wasted. Brevity here edges into under-specification rather than tightness, since the tool has five parameters and no annotations.

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?

This is a five-parameter financial calculation with four required arguments, no annotations, and no output schema. The description should at minimum clarify the return value and the relationship between dateRange and valuesRange, but it covers none of that.

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 including guess are already documented, which sets the baseline at 3. The description adds only the notion that the date and value ranges represent irregular cash flows; it does not clarify that the two ranges must be parallel or how the decimal guess is used.

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?

States a specific verb and resource ('Calculate XIRR') and the qualifier 'irregular cash flows' implicitly separates it from the regular-period excel_calculate_irr sibling. It never names that sibling explicitly, so the differentiation is inferable rather than stated.

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 when-to-use guidance, no mention of when XIRR is preferred over excel_calculate_irr or excel_calculate_npv, and no prerequisites such as requiring both a date range and a matching values range in the same worksheet. The agent must infer all of this.

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

Deploy Server

Other Tools