Skip to main content
Glama

Add Canada Federal Working Days

add_canada_federal_working_days
Read-onlyIdempotent

Use this when you need a deterministic baseline offset for a federally regulated-employer calendar in 2026-2027. 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 a provincial, private-employer or schedule-specific substitution result. What it computes: Adds or subtracts dates using Canada federal general holidays and a Saturday/Sunday baseline; schedule-dependent substitute days remain unresolved. Example user requests: Add five Canada federal working days after 2026-09-28. Inputs: start_date (date); working_days (integer). Complete JSON argument examples: {"start_date":"2026-09-29","working_days":1} Outputs: start_date, result_date, working_days_added, calendar_days_elapsed, federal_general_holidays_skipped, territory, territory_name, day_type, holiday_names, holiday_observed, holiday_actual_dates, weekend_days, rest_day_policy, substitute_day_policy, calendar_scope, calendar_profile, dataset_version, sources. Formula: move one day at a time; decrement remaining only when Canada federal status.is_working_day=true Direct REST fallback: POST https://tttkmbb.com/api/v1/calculate/canada-federal-add-working-days with the same JSON input fields. Do not guess another /api/* path. Docs: https://tttkmbb.com/everyday/canada-federal-add-working-days.md

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
start_dateYesGregorian start date in 2026-2027.
working_daysYesSigned offset; start date is 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.6/5.0
Behavior5/5

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

Annotations cover the safety profile (readOnly, idempotent, non-destructive), and the description adds substantial context beyond them: the exact formula, the limitation that schedule-dependent substitute days remain unresolved, the enumerated output fields, and a REST fallback path plus docs URL. This is unusually rich disclosure for a read-only calculator.

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?

Front-loads the when-to-use condition, then segments inputs, outputs, formula, and fallback with clear labels. Slightly long because it restates outputs already covered by the output schema, but every block is scannable and purposeful.

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

Completeness5/5

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

For a 2-param read-only calculator with annotations and an output schema, the description covers scope, exclusions, formula, and fallback endpoint completely. Nothing an agent needs to invoke it correctly is missing, and the redundant output listing is harmless rather than a gap.

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% and the two parameters (start_date, working_days) are already fully documented including the signed-offset and start-date-exclusion semantics, so the description's 'Inputs' line largely repeats structured data. The complete JSON argument example adds marginal value, but the baseline 3 applies when the schema carries the meaning.

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 (adds/subtracts) and resource (Canada federal working days) and immediately distinguishes scope: 'federally regulated-employer calendar' versus provincial/private-employer/schedule-specific. An agent can separate it from add_us_federal_working_days or the provincial siblings without opening schemas.

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?

Explicitly gives when-to-use ('deterministic baseline offset for a federally regulated-employer calendar, 2026-2027') and when-not-to-use ('provincial, private-employer or schedule-specific substitution result'), plus the instruction to call it directly rather than answering from memory. Nothing is left to inference.

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