Indian Mutual Fund Analytics (MFapi)
v1.0.0AMFI mutual fund NAV tracking, SIP XIRR, lumpsum CAGR, and rolling returns on Cloudflare edge.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_indian_mf_schemes Search Indian Mutual Fund Schemes
Use this when the user asks to find an Indian mutual fund scheme code, look up an AMC's funds (e.g., HDFC, SBI, Parag Parikh, Quant, Nippon), or disambiguate between Direct/Regular and Growth/IDCW plans before fetching NAVs or calculating returns. Do not use for stocks, ETFs without AMFI scheme codes, or US/global funds.
| Parameter | Type | Description |
|---|---|---|
query * | string | Indian mutual fund name, AMC, or scheme keywords (e.g. 'Parag Parikh Flexi Cap', 'HDFC Mid Cap', 'SBI Nifty 50'). |
limit | integer | Maximum number of schemes to return (1-25, default 10). |
optionFilter | string | Filter schemes by option: 'growth', 'idcw', or 'all' (default 'all'). |
planFilter | string | Filter schemes by plan type: 'direct', 'regular', or 'all' (default 'all'). |
calculate_indian_mf_returns Calculate Indian Mutual Fund SIP, Lumpsum & Rolling Returns
Use this when the user wants exact historical SIP returns (XIRR), lumpsum returns (CAGR), or rolling return consistency (1Y/3Y/5Y/7Y) for a single Indian mutual fund scheme using real historical NAVs from AMFI/MFapi.in. Do not use for speculative future projections or investment advice.
| Parameter | Type | Description |
|---|---|---|
schemeCode * | integer | Numeric AMFI mutual fund scheme code. |
amount | number | Investment amount in INR (defaults to 10000 for SIP / 100000 for lumpsum). |
endDate | string | Optional valuation end date (YYYY-MM-DD). Defaults to latest available NAV. |
mode | string | Calculation mode: 'sip' (XIRR), 'lumpsum' (CAGR), 'rolling', or 'all' (default 'all'). |
rollingWindowYears | Rolling return window in years: 1, 3, 5, or 7 (default 3). | |
sipDay | integer | Monthly SIP installment day of month (1-28, default 5). |
startDate | string | Optional start date (YYYY-MM-DD). Defaults to 5 years before latest available NAV, or scheme inception if newer. |
compare_indian_mf_schemes Compare Indian Mutual Fund Schemes
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.
| Parameter | Type | Description |
|---|---|---|
schemeCodes * | array | Array of 2 to 4 unique AMFI mutual fund scheme codes to compare. |
endDate | string | Optional common end date (YYYY-MM-DD). Defaults to earliest latest-NAV date across the schemes. |
monthlySipAmount | number | Monthly SIP amount in INR for XIRR comparison (default 10000). |
rollingWindowYears | Rolling return window in years: 1, 3, or 5 (default 3). | |
startDate | string | Optional common start date (YYYY-MM-DD). Defaults to common overlapping start date across all schemes, capped at 5 years. |