count_working_days
PAID ($0.02). Working days in a date range for a country: weekends (Egypt's Fri–Sat handled) and statutory public holidays applied, with the holidays hit by name and the next working day after the range. Range max 366 days. Pass api_key if you have one; otherwise the response explains how to pay ...
This record as markdown: /tools/dev-asiaref-reference-data/count-working-days.md
What count_working_days does on Reference Data
AI agents call count_working_days to retrieve information from Reference Data without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.
| Parameter | Type | Required | Description |
|---|---|---|---|
to | string | Yes | Range end, YYYY-MM-DD, inclusive |
from | string | Yes | Range start, YYYY-MM-DD, inclusive |
api_key | string | — | API key |
country | string | Yes | ISO country code |
subdivision | string | — | Optional ISO 3166-2 region code (e.g. 'DE-BY') to apply that region's statutory holidays on top of the national calendar. Regions are listed under `subdivisions |
Parameters from the server's own tool schema.
Why count_working_days is rated Low
Even though count_working_days only reads data, uncontrolled read access leaks sensitive information and racks up API costs: an agent caught in a retry loop can make thousands of calls a minute without anyone noticing.
Risk signalsHandles credentials or secrets (api_key)
Attacks that exploit this kind of access
The rule that runs count_working_days safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Reference Data, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For count_working_days, this is the rule to start with:
count_working_days is read-only, so it stays allowed. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Reference Data, apply this rule, and every count_working_days call is checked against it from then on.
Questions about count_working_days
PAID ($0.02). Working days in a date range for a country: weekends (Egypt's Fri–Sat handled) and statutory public holidays applied, with the holidays hit by name and the next working day after the range. Range max 366 days. Pass api_key if you have one; otherwise the response explains how to pay via x402. It is categorised as a Read tool in the Reference Data MCP Server, which means it retrieves data without modifying state.
count_working_days accepts 5 parameters: to, from, api_key, country, subdivision. Required: to, from, country. The full parameter table on this page comes from the server's own tool schema.
Register the Reference Data MCP server in PolicyLayer and add a rule for count_working_days: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Reference Data. Nothing to install.
count_working_days is a Read tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the count_working_days rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for count_working_days. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
count_working_days is provided by the Reference Data MCP server (https://asiaref.dev/mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Reference Data, and thousands of servers like it.
This server
Across the catalogue