# 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.

Agent View of the PolicyLayer registry record for `count_working_days`. HTML page: https://policylayer.com/tools/dev-asiaref-reference-data/count-working-days

## Facts

- Tool: `count_working_days`
- Server: Reference Data (`https://asiaref.dev/mcp`) — https://policylayer.com/tools/dev-asiaref-reference-data.md
- Homepage: https://github.com/https://asiaref.dev/mcp
- Risk category: Read (Low risk)
- Registry record: grade D, identity unverified
- Server auth posture: open
- Server rate-limited: no
- Parameters: 5 (3 required)
- Recommended policy verdict: Allowed

## Parameters

| 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 | no | API key |
| `country` | string | yes | ISO country code |
| `subdivision` | string | no | 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.

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "count_working_days",
    "arguments": {
      "to": "<to>",
      "from": "<from>",
      "country": "<country>"
    }
  }
}
```

## 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 signals: Handles credentials or secrets (api_key)

## Use case

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.

## Recommended policy (PolicyLayer)

Verdict: **Allowed**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Reference Data:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "count_working_days": {}
  }
}
```

## Other tools on Reference Data (9)

- `check_minimum_wage` — Read — https://policylayer.com/tools/dev-asiaref-reference-data/check-minimum-wage.md
- `compute_income_tax` — Read — https://policylayer.com/tools/dev-asiaref-reference-data/compute-income-tax.md
- `get_public_holidays` — Read — https://policylayer.com/tools/dev-asiaref-reference-data/get-public-holidays.md
- `get_series` — Read — https://policylayer.com/tools/dev-asiaref-reference-data/get-series.md
- `get_series_history` — Read — https://policylayer.com/tools/dev-asiaref-reference-data/get-series-history.md
- `get_snapshot` — Read — https://policylayer.com/tools/dev-asiaref-reference-data/get-snapshot.md
- `list_series` — Read — https://policylayer.com/tools/dev-asiaref-reference-data/list-series.md
- `settlement_date` — Read — https://policylayer.com/tools/dev-asiaref-reference-data/settlement-date.md
- `compute_vat` — Write — https://policylayer.com/tools/dev-asiaref-reference-data/compute-vat.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=dev-asiaref-reference-data · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/dev-asiaref-reference-data
