Skip to main content
Glama

Calculate a Sri Lanka payslip

calculate_sri_lanka_payslip
Read-onlyIdempotent

Estimate monthly APIT/PAYE, employee and employer EPF, ETF, stamp duty, net pay, and employer cost for regular primary employment in Sri Lanka.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
grossSalaryYesGross monthly employment income in Sri Lankan rupees
epfEtfEarningsBaseNoEPF/ETF-eligible monthly earnings; defaults to gross salary
otherEmployeeDeductionsNoOptional non-statutory employee deductions, such as a loan repayment

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
apitYes
netPayYes
cautionYes
sourcesYes
currencyYes
stampDutyYes
employeeEpfYes
employerEpfYes
employerEtfYes
grossSalaryYes
employerCostYes
methodologyUrlYes
sourceTableYearYes
yearOfAssessmentYes
epfEtfEarningsBaseYes
payslipGeneratorUrlYes
otherEmployeeDeductionsYes
totalEmployeeDeductionsYes

TDQS

A3.8/5.0
Behavior4/5

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

Annotations indicate read-only, idempotent, non-destructive behavior. The description adds context by listing the specific calculated outputs (APIT/PAYE, EPF, ETF, etc.) and confirming the estimation nature, consistent with 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?

The description is a single, well-formed sentence of 25 words that front-loads the tool's purpose and lists key outputs without any extraneous content.

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 description covers the scope (regular primary employment in Sri Lanka) and lists all major components. Given the existence of an output schema and comprehensive annotations, it is complete enough for a calculation tool.

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 coverage is 100% with descriptive parameter comments. The description provides a high-level context but does not add any new meaning beyond what the schema already states for each parameter. 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?

The description specifies the verb 'Estimate' and the resource: monthly APIT/PAYE, EPF, ETF, stamp duty, net pay, and employer cost. It clearly distinguishes from sibling tools (reference and checklist) by focusing on computation of payslip components.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description does not provide any guidance on when to use this tool versus alternatives. It does not mention prerequisites, when not to use it, or compare with sibling tools.

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.

TDQS

A4.2/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose: calculation, reference data, and checklist. No overlap or ambiguity.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern (calculate_..., get_...), with clear and descriptive naming.

Tool Count5/5

With 3 tools, the server is well-scoped for its narrow domain of Sri Lanka payslip processing. Each tool is essential.

Completeness4/5

The set covers calculation, reference assumptions, and a checklist, which are sufficient for basic payslip tasks. Minor gaps like handling edge cases or multiple employments are absent but within the stated scope.