Skip to main content
Glama

Indian Mutual Fund Analytics (MFapi)

Compare Indian Mutual Fund Schemes

compare_indian_mf_schemes
Read-onlyIdempotent

Use this when the user wants a side-by-side historical comparison of 2 to 4 Indian mutual fund schemes over the exact same time period (comparing latest NAV, lumpsum CAGR, SIP XIRR, rolling return median/consistency, and max drawdown). Warn if comparing mixed Direct vs Regular or Growth vs IDCW plans.

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": {
      "schemeCodes": "<schemeCodes>"
    },
    "name": "compare_indian_mf_schemes"
  }
}

Input Schema

NameRequiredDescriptionDefault
endDateNoOptional common end date (YYYY-MM-DD). Defaults to earliest latest-NAV date across the schemes.
startDateNoOptional common start date (YYYY-MM-DD). Defaults to common overlapping start date across all schemes, capped at 5 years.
schemeCodesYesArray of 2 to 4 unique AMFI mutual fund scheme codes to compare.
monthlySipAmountNoMonthly SIP amount in INR for XIRR comparison (default 10000).
rollingWindowYearsNoRolling return window in years: 1, 3, or 5 (default 3).

Output Schema

NameRequiredDescriptionDefault
schemesYes
disclaimerYes
comparisonWindowYes
comparisonWarningsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/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 safety is covered. The description adds genuine behavioral context beyond that: the exact metric set that will be produced and the apples-to-oranges caveat about mixing Direct/Regular or Growth/IDCW plans, which is a real data-quality behavior an agent should surface.

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, front-loaded with the 'Use this when...' trigger, then the caveat. Every clause carries information — scope, metrics, period constraint, warning — with no filler or repetition of schema content.

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?

An output schema exists, so return values need no explanation, yet the description still names the compared metrics to aid routing. Combined with the 100%-covered input schema and full annotation set, an agent has everything needed to decide to call it and to interpret the result.

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 description coverage is 100%, with per-field defaults, formats and the 1/3/5 rolling-window constraint already documented, so the schema does the heavy lifting. The description reinforces the 'exact same time period' constraint shared across startDate/endDate and implies the schemeCodes must be comparable plan types, but adds no syntax or format detail beyond the schema. Baseline 3 is appropriate.

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 and resource — 'side-by-side historical comparison of 2 to 4 Indian mutual fund schemes' — and scopes it to an identical time period. The comparison framing plus the enumerated outputs (NAV, lumpsum CAGR, SIP XIRR, rolling median, max drawdown) makes it clearly distinct from single-scheme siblings like calculate_indian_mf_returns.

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?

'Use this when the user wants a side-by-side historical comparison of 2 to 4 schemes over the exact same time period' gives a concrete triggering condition, and the mixed Direct/Regular and Growth/IDCW warning tells the agent when to flag a questionable comparison. It stops short of naming an alternative for single-scheme or single-metric queries, so there is no explicit when-not routing.

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