Skip to main content
Glama

Irfan Aslam Tools

Saudi end-of-service award

saudi_end_of_service
Read-onlyIdempotent

Calculate the end-of-service award (gratuity / مكافأة نهاية الخدمة) under Saudi Labor Law Articles 84 and 85, including the reduction on resignation. Web version: https://irfanaslam.io/tools/saudi-end-of-service-calculator

Input Schema

NameRequiredDescriptionDefault
reasonNotermination = contract ended or employer terminated; resignation = employee resigned. Default termination.
end_dateNoLast working day, default today (YYYY-MM-DD)
start_dateYesFirst day of service (YYYY-MM-DD)
monthly_wageYesLast monthly wage in SAR as the contract defines it (usually basic plus fixed allowances).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behaviour, so the description need mainly add domain behaviour. It does: the award follows Articles 84/85 and is reduced on resignation, which tells the caller the result actually changes with the 'reason' parameter. It stops short of noting assumptions (e.g. wage basis, exclusion of unpaid leave) that affect the returned figure.

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?

A single front-loaded sentence gives the verb, the resource, the legal basis, and the key special case with zero filler. The trailing web-version URL is mild promotional ballast rather than instructional content, which keeps it off a 5.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a four-parameter, no-output-schema calculation tool, the description covers the purpose and the one behavioural twist but says nothing about the result (presumably an SAR amount plus service duration and a breakdown). An agent can call it correctly, but cannot predict the shape of what comes back.

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%, so the schema already explains monthly_wage, the date formats, and the reason enum. The description adds only indirect meaning, that choosing resignation triggers the statutory reduction. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (calculate) and resource (end-of-service award/gratuity) and anchors it to Saudi Labor Law Articles 84 and 85, which is far more specific than the name alone. It does not explicitly distinguish itself from near neighbours like saudi_final_settlement or saudi_gosi_contribution, so an agent must infer the boundary from the legal citation.

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

Usage Guidelines3/5

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

Usage is only implied: the legal reference and the mention of a resignation reduction signal the domain, and the 'reason' enum gates the two cases. There is no statement of when to prefer this over saudi_final_settlement or saudi_leave, and no mention of eligibility prerequisites such as minimum service length under Article 85.

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.

Resources