Skip to main content
Glama
rehan1020

mcp-india-stack

by rehan1020

calculate_leave_encashment_tax

Read-onlyIdempotent

Calculate tax-exempt leave encashment under Section 10(10AA) and determine the taxable portion from salary, earned leave, and service years.

Instructions

Calculate tax-exempt portion of leave encashment under Section 10(10AA).

Use when computing leave encashment tax exemption or planning retirement benefits.

Args: leave_encashment_amount: Actual amount received average_monthly_salary: Average of last 10 months basic + DA earned_leave_balance_days: Days of earned leave years_of_service: Total years of service is_government_employee: Government employee flag

Returns: Exemption amount and taxable portion breakdown.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
years_of_serviceYesTotal years of service
average_monthly_salaryYesAverage of last 10 months basic + DA
is_government_employeeNoGovernment employee flag
leave_encashment_amountYesActual amount received in INR
earned_leave_balance_daysYesDays of earned leave

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv0.5.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / average_monthly_salary / title
      Added value: +"Average Monthly Salary"
    • addedInput schema / properties / earned_leave_balance_days / title
      Added value: +"Earned Leave Balance Days"
    • addedInput schema / properties / is_government_employee / title
      Added value: +"Is Government Employee"
    • addedInput schema / properties / leave_encashment_amount / title
      Added value: +"Leave Encashment Amount"
    • addedInput schema / properties / years_of_service / title
      Added value: +"Years Of Service"
    • addedInput schema / title
      Added value: +"calculate_leave_encashment_taxArguments"
    • addedOutput schema / title
      Added value: +"calculate_leave_encashment_taxDictOutput"
  2. Addedv0.4.2

TDQS

A4.1/5.0
Behavior4/5

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

The annotations already cover read-only and idempotent behavior. The description additionally states the statutory basis (Section 10(10AA)) and the expected output shape (exemption amount and taxable breakdown), adding useful behavioral context beyond the annotations. No contradiction exists.

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?

The description is front-loaded with purpose and usage context, and the Returns line is useful. The Args duplication is somewhat redundant with the schema, and this prevents a 5, but the overall structure is still compact and scannable.

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?

With an output schema present and strong annotations, the description is largely complete: it names the law, the inputs, and the output type. It could benefit from clarifying how the is_government_employee flag impacts the exemption, but the core callable details are sufficiently covered.

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%, and the Args section mostly repeats the schema text without adding new meaning. The description does not explain key calculation nuances such as how years_of_service converts to months or exactly how is_government_employee changes the exemption, so it stays at the baseline.

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 opening sentence clearly identifies the verb, resource, and legal basis: 'Calculate tax-exempt portion of leave encashment under Section 10(10AA).' This is specific enough to stand out from the many sibling calculators, such as calculate_gratuity and calculate_income_tax.

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?

It gives an explicit and useful 'Use when' condition: when computing leave encashment tax exemption or planning retirement tax. It doesn't name alternatives or state when-not-to-use it, so it misses a 5, but the context is clear in practice.

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