Skip to main content
Glama

calculate sg notice period

calculate_sg_notice_period
Read-onlyIdempotent

Singapore notice period when the contract is silent (Employment Act): 1 day under 26 weeks, 1 week to under 2 years, 2 weeks to under 5 years, 4 weeks from 5 years; the period includes the day notice is given. Gives the last day. Singapore (MOM), as of 2026-11-22. General information only: not tax or legal advice.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "startDate": "<startDate>",
      "noticeDate": "<noticeDate>"
    },
    "name": "calculate_sg_notice_period"
  }
}

Input Schema

NameRequiredDescriptionDefault
startDateYesStart of employment
noticeDateYesDay notice is given
contractDaysNoNotice period in the contract (days), if any

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the safety profile is covered; the description adds what annotations cannot, namely the statutory basis, a version stamp ('as of 2026-11-22'), and a 'not tax or legal advice' disclaimer. It also discloses the inclusive-counting rule and that the result is a last day, which is the behavior an agent most needs to trust the output.

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?

Compact and information-dense: the rule table, output statement, jurisdiction, version date and disclaimer all appear in two sentences with no filler. The statutory bands lead the text, which is reasonable for a rule-based calculator, though the core purpose sentence is somewhat compressed into a semicolon chain.

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?

For a 3-parameter deterministic calculator with a full schema and no output schema, this covers jurisdiction, legal basis, applicability, counting convention, version currency and output shape ('Gives the last day'). The remaining minor gap is how a supplied contractDays value changes or overrides the statutory ladder.

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 startDate, noticeDate and contractDays are already documented, setting the baseline at 3. The description does add real value by clarifying that 'the period includes the day notice is given', which pins down the inclusive counting of noticeDate, but it says nothing about how contractDays interacts with the statutory default beyond the 'contract is silent' framing.

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?

States a specific computation (Singapore statutory notice period under the Employment Act), the exact output ('Gives the last day'), and the jurisdictional/regulatory basis (MOM). This clearly separates it from calculate_de_notice_period and the other country-specific siblings in the catalog.

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 phrase 'when the contract is silent' is an explicit applicability condition that tells the agent when this rule applies, and the numbered tenure bands make the scope unambiguous. It does not name an alternative tool or state when NOT to use it, though the sibling calculate_de_notice_period implies the jurisdiction split.

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.