Skip to main content
Glama
rehan1020

mcp-india-stack

by rehan1020

calculate_capital_gains

Read-onlyIdempotent

Compute capital gains tax for equity, mutual funds, real estate, gold, and other assets using sale price, purchase price, holding period, and indexation.

Instructions

Calculate capital gains tax for various asset types (FY2025-26).

Use when computing tax liability on sale of equity, mutual funds, real estate, gold, or other capital assets.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sale_priceYesSale proceeds in rupees
purchase_priceYesOriginal purchase price in rupees
asset_typeNoAsset type: equity, mutual_fund, real_estate, gold, debentures, cryptoequity
holding_period_daysNoNumber of days held before sale
inflation_index_purchaseNoCII for purchase year (for indexation)
inflation_index_saleNoCII for sale year (for indexation)
expenses_on_saleNoBrokerage, registration and other expenses on sale
improvementsNoCost of improvements (for real estate)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

Annotations already provide readOnlyHint=true and idempotentHint=true, covering safety. Description adds no behavioral traits beyond that, so score is baseline given annotations.

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 concise, front-loaded sentences. No unnecessary information, every sentence earns its place.

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?

Given output schema exists, description doesn't need return values. Covers purpose, usage, and asset scope. Complete for a calculator tool with good annotations.

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?

All 8 parameters have descriptions in the input schema (100% coverage). Description does not add extra meaning beyond schema, so baseline score of 3.

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?

Description clearly states 'Calculate capital gains tax' with specific verb and resource, and lists asset types. It distinguishes from sibling tools like calculate_income_tax or calculate_gst, which cover different tax types.

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?

Explicitly states when to use ('when computing tax liability on sale of...'). Does not explicitly state when not to use or name alternatives, but context from sibling tools makes it clear.

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

Install Server

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/rehan1020/MCP-India-Stack'

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