Skip to main content
Glama
Arnavshah22

indstocks-mcp

by Arnavshah22

Compute XIRR

compute_xirr

Calculate annualized returns for irregular cash flows such as SIPs, lump sums, and redemptions. Enter outflows as negative and inflows as positive, with today's portfolio value as the final flow.

Instructions

Annualised return across irregular cash flows (SIP instalments, lumpsums, redemptions). Outflows negative, inflows positive. Include current portfolio value as a final positive flow dated today.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cashFlowsYes
Install Server

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full transparency burden. It does add important conventions: outflows must be negative, inflows positive, and the current portfolio value must be included as a final positive flow dated today. Still, it does not disclose potential failure modes such as non-convergence, the need for at least one negative and one positive flow, or the exact form of the returned annualised value.

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 dense, purposeful sentences. The core concept is front-loaded, followed immediately by the operational rules an agent needs to construct valid input. There is no filler or repetition of schema details.

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?

For a single-parameter computation tool with no output schema, the description provides sufficient input semantics and the one special cash-flow requirement. It is missing an explicit disambiguation from compute_cas_xirr and does not mention edge cases such as non-convergence, but the description is otherwise complete for an agent to produce a valid 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?

The schema describes only the date format and leaves 'amount' semantically empty. The description compensates by defining the amount sign convention and instructing the agent to include the portfolio value as a final positive flow. It does not discuss ordering or duplicate-date handling, but the core meaning of the single cashFlows parameter is substantially clarified.

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 computational goal ('Annualised return across irregular cash flows') and illustrates the resource with SIP instalments, lumpsums, and redemptions. This makes it clear that the tool computes XIRR for a raw dated cash-flow series rather than for a parsed CAS file, distinguishing it from the sibling compute_cas_xirr even without naming it.

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?

The description clearly implies when the tool is relevant: whenever an agent has a dated series of irregular cash flows and needs an annualised return. However, it never explicitly contrasts this with compute_cas_xirr or other portfolio-analysis siblings, and it gives no when-not-to-use guidance such as 'do not use for already-parsed CAS data.'

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Arnavshah22/indstocks-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server