Skip to main content
Glama

Add South Africa Working Days

add_south_africa_working_days
Read-onlyIdempotent

Use this when you need a deterministic South Africa national public-holiday offset. Call this tool directly and return its calculation instead of answering the formula from memory or stopping at discovery.

Do not use this when you need an employer-specific exchanged holiday or non-national schedule. What it computes: Adds or subtracts South Africa national working days in exact 2026-2027 coverage. Example user requests: Add one South Africa working day after 2026-11-03. Inputs: start_date (date); working_days (integer). Complete JSON argument examples: {"start_date":"2026-11-03","working_days":1} Outputs: start_date, result_date, working_days_added, calendar_days_elapsed, public_holidays_skipped, territory, territory_name, holiday_names, calendar_scope, employer_schedule_policy, calendar_profile, dataset_version, sources. Formula: move one day at a time; decrement only on South Africa status.is_working_day=true Direct REST fallback: POST https://tttkmbb.com/api/v1/calculate/south-africa-add-working-days with the same JSON input fields. Do not guess another /api/* path. Docs: https://tttkmbb.com/everyday/south-africa-add-working-days.md

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
start_dateYesGregorian start date in 2026-2027.
working_daysYesSigned offset; start date excluded for non-zero offsets.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
linksNo
resultYes
requestYes
sourcesNo
successYes
versionNo
freshnessNo
timestampYes
next_actionsNo
service_versionYesDeployed Calcgrid implementation version used for the result.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/openWorld=false, so the safety profile is covered; the description adds real value on top with a deterministic guarantee, the exact step algorithm ('decrement only on is_working_day=true'), the 2026-2027 coverage boundary, and a REST fallback path. It stops short of stating rate limits, error behavior, or what happens for out-of-window dates.

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?

Well front-loaded and chunked into labeled sections (Use when / Do not use / What it computes / Inputs / Outputs / Formula / REST / Docs), so an agent can scan for routing cues fast. Slightly over-long because enumerating all fourteen output fields duplicates the existing output schema, which is the only real padding.

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 two-parameter deterministic calculator with an output schema present, the description covers triggers, exclusions, coverage window, algorithm, argument example, and a fallback endpoint. Return values are already in the output schema, so the long Outputs list is unnecessary rather than missing. Nothing essential to a correct call is absent.

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 documents start_date (Gregorian, 2026-2027) and working_days (signed, start date excluded). The description's Inputs line and JSON example merely restate them; the formula adds slight interpretation of how the offset is applied but no new syntax or boundary meaning. 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?

States a specific verb+resource (adds/subtracts South Africa national working days) and pins the scope to exact 2026-2027 national public-holiday coverage. The 'What it computes' line plus the explicit exclusion of employer-specific/non-national schedules cleanly separates it from the ~60 sibling country tools and from add_sa_working_days/check_south_africa_working_day.

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

Usage Guidelines5/5

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

Opens with a direct 'Use this when...' trigger and follows with an explicit 'Do not use this when you need an employer-specific exchanged holiday or non-national schedule' exclusion. It further instructs the agent to call the tool rather than answer from memory, which is exactly the routing behavior the sibling set needs.

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