Skip to main content
Glama
rehan1020

mcp-india-stack

by rehan1020

calculate_gratuity

Read-onlyIdempotent

Compute gratuity payable under the Payment of Gratuity Act, 1972 using salary and service tenure. Ideal for terminal benefits estimation and CTC comparison.

Instructions

Calculate gratuity under the Payment of Gratuity Act, 1972.

Use when computing terminal benefits, comparing CTC packages, or planning retirement benefits.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
last_drawn_salaryYesLast basic salary + DA per month in INR
years_of_serviceYesTotal years served (e.g., 5.8 = 5 yrs 9 months)
is_covered_under_actNoTrue if establishment has 10+ employees

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

Annotations already declare readOnlyHint and idempotentHint, so the description's simple statement adds no further behavioral insight. It does not disclose any side effects, assumptions, or edge cases beyond what annotations convey.

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?

The description is two efficient sentences with zero wasted words. It front-loads the main action and context immediately.

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?

The tool has an output schema, so the description need not explain return values. It names the governing act, which provides legal context. However, it omits mention that the parameter 'is_covered_under_act' affects eligibility, a detail that would improve completeness.

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?

The input schema covers all three parameters with descriptions, achieving 100% coverage. The description does not add additional semantic meaning beyond what the schema provides, so a baseline score of 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?

The description explicitly states the verb ('Calculate') and resource ('gratuity under the Payment of Gratuity Act, 1972'). This clearly distinguishes it from sibling tools like calculate_income_tax or calculate_epf_esic.

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?

The description provides clear usage context: 'Use when computing terminal benefits, comparing CTC packages, or planning retirement benefits.' However, it does not mention when not to use or name alternative tools for related calculations.

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