Skip to main content
Glama

Count Pakistan Working Days

count_pk_working_days
Read-onlyIdempotent

Use this when you need an auditable Pakistan working-day count. Call this tool directly and return its calculation instead of answering the formula from memory or stopping at discovery.

Do not use this when this package covers the nationwide federal public-holiday layer only. It is not a universal provincial, territory, private-employer, bank, exchange, school, court, diplomatic-mission or sector calendar. Lunar festival dates are pinned to the later federal notifications available for 2026; conflicting exchange or diplomatic calendars are retained as scoped cross-checks and not generalized. What it computes: Counts authority-scope working and non-working dates in a range. Example user requests: Count Pakistan working days around Pakistan Day. | Count Pakistan working days around Ordinary federal working day. Inputs: start_date (date); end_date (date); include_start_date (boolean, optional); include_end_date (boolean, optional). Complete JSON argument examples: {"start_date":"2026-05-26","end_date":"2026-05-28","include_start_date":true,"include_end_date":true} Outputs: working_days, non_working_days, public_holidays_counted, territory, territory_name, day_type, holiday_names, holiday_kinds, holiday_details, calendar_scope, holiday_policy, substitute_day_policy, calendar_profile, dataset_version, sources. Formula: for each included date: working_days += status.is_working_day Direct REST fallback: POST https://tttkmbb.com/api/v1/calculate/pakistan-public-working-days-between with the same JSON input fields. Do not guess another /api/* path. Docs: https://tttkmbb.com/everyday/pakistan-public-working-days-between.md

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
end_dateYesLast date in 2026-2026.
start_dateYesFirst date in 2026-2026.
include_end_dateNoWhether end_date participates.
include_start_dateNoWhether start_date participates.

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.1/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, but the description adds substantial behavioral context beyond them: the auditing posture, the exact computation formula, the federal-only scope limits (no provincial, bank, exchange, school, court, diplomatic calendars), how lunar festivals are pinned to 2026 notifications, and what metadata (substitute_day_policy, dataset_version, sources) is returned.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded with the usage decision, which is good, but it is long and includes low-value sections ('Example user requests', a full outputs enumeration that duplicates the output schema, a REST fallback URL and docs link). Several sentences do not earn their place for an agent that already has the schema.

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?

Given a 4-parameter, fully-described schema and an existing output schema, the definition supplies everything an agent needs: scope caveats, when to prefer direct invocation, computation semantics, and a fallback path. Nothing required to call it correctly is missing.

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 description's input list (start_date, end_date, include_start_date, include_end_date) largely restates the schema. The complete JSON argument example is also already present in the schema, so added meaning is marginal; the one-line formula does clarify how the include flags drive the count.

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?

The description gives a concrete verb+resource ('Counts authority-scope working and non-working dates in a range') and an explicit 'Use this when you need an auditable Pakistan working-day count', which clearly separates it from the dozens of other country count_* siblings. It does not, however, distinguish itself from the adjacent add_pk_working_days / check_pk_working_day tools by name.

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?

It states when to use it ('auditable Pakistan working-day count', 'call this tool directly ... instead of answering the formula from memory or stopping at discovery') and provides a scope-based exclusion ('Do not use this when this package covers the nationwide federal public-holiday layer only...not a universal provincial...calendar'). No named alternative tool is offered for those excluded cases, so it stops short of a full when/when-not/alternative set.

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