Business Days
Public holidays and working-day maths for 200+ countries, cross-checked across three providers.
我該用這個嗎
品質與安全性
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"business-days": {
"url": "https://tools.profitpather.com/days/mcp"
}
}
}遠端端點
https://tools.profitpather.com/days/mcpstreamable-http它能做什麼
工具清單
工具(4)
🟢list_public_holidays(country, year, region)
Use this when the user asks what the public holidays are in a country or region for a given year, when a particular holiday falls, or how many holidays a year has. Covers 200+ countries with state and province detail. Do not use it for working-day arithmetic; use add_business_days for that.
輸入結構描述
{
"type": "object",
"properties": {
"country": {
"type": "string",
"description": "ISO 3166-1 alpha-2 country code, for example AU, US, GB, NZ, DE."
},
"year": {
"type": "integer",
"description": "Calendar year between 1975 and 2075."
},
"region": {
"type": "string",
"description": "Optional ISO 3166-2 subdivision code such as AU-NSW or US-CA. Supply it whenever the user names a state or province, otherwise only nationwide holidays are returned."
}
},
"required": [
"country",
"year"
],
"additionalProperties": false
}輸出結構描述
{
"type": "object",
"properties": {
"country": {
"type": "string"
},
"year": {
"type": "integer"
},
"region": {
"type": [
"string",
"null"
]
},
"holiday_count": {
"type": "integer"
},
"regional_holidays_excluded": {
"type": "integer"
},
"holidays": {
"type": "array",
"items": {
"type": "object"
}
}
},
"required": [
"country",
"year",
"holiday_count",
"holidays"
],
"additionalProperties": false
}🟢check_business_day(date, country, region)
Use this when the user asks whether one specific date is a working day, a public holiday, or whether businesses and banks are open. Names the holiday if there is one, and reports whether independent holiday sources agree on that date.
輸入結構描述
{
"type": "object",
"properties": {
"date": {
"type": "string",
"description": "The date to check, in YYYY-MM-DD format."
},
"country": {
"type": "string",
"description": "ISO 3166-1 alpha-2 country code, for example AU, US, GB."
},
"region": {
"type": "string",
"description": "Optional ISO 3166-2 subdivision code such as AU-NSW or US-CA."
}
},
"required": [
"date",
"country"
],
"additionalProperties": false
}輸出結構描述
{
"type": "object",
"properties": {
"date": {
"type": "string"
},
"weekday": {
"type": "string"
},
"country": {
"type": "string"
},
"region": {
"type": [
"string",
"null"
]
},
"is_weekend": {
"type": "boolean"
},
"is_public_holiday": {
"type": "boolean"
},
"holiday_name": {
"type": [
"string",
"null"
]
},
"is_business_day": {
"type": "boolean"
},
"agreement": {
"type": "object"
}
},
"required": [
"date",
"weekday",
"country",
"is_weekend",
"is_public_holiday",
"is_business_day",
"agreement"
],
"additionalProperties": false
}🟢add_business_days(start_date, days, country, region)
Use this when the user needs a date N working days from another date: delivery and shipping estimates, payment or settlement terms, notice periods, SLA and deadline questions. Skips weekends and the public holidays of the country or region, reports exactly which days were skipped, and flags any date in the range that independent sources disagree about.
輸入結構描述
{
"type": "object",
"properties": {
"start_date": {
"type": "string",
"description": "The starting date in YYYY-MM-DD format. It is not counted itself."
},
"days": {
"type": "integer",
"description": "Business days to move. Positive counts forward, negative counts backward. Maximum magnitude 1000."
},
"country": {
"type": "string",
"description": "ISO 3166-1 alpha-2 country code, for example AU, US, GB."
},
"region": {
"type": "string",
"description": "Optional ISO 3166-2 subdivision code such as AU-NSW or US-CA."
}
},
"required": [
"start_date",
"days",
"country"
],
"additionalProperties": false
}輸出結構描述
{
"type": "object",
"properties": {
"start_date": {
"type": "string"
},
"business_days_moved": {
"type": "integer"
},
"result_date": {
"type": "string"
},
"result_weekday": {
"type": "string"
},
"country": {
"type": "string"
},
"region": {
"type": [
"string",
"null"
]
},
"calendar_days_elapsed": {
"type": "integer"
},
"skipped": {
"type": "array",
"items": {
"type": "object"
}
},
"disputed_dates_in_range": {
"type": "array",
"items": {
"type": "object"
}
}
},
"required": [
"start_date",
"business_days_moved",
"result_date",
"result_weekday",
"country",
"calendar_days_elapsed",
"skipped",
"disputed_dates_in_range"
],
"additionalProperties": false
}🟢cross_check_holidays(country, year)
Use this when accuracy matters more than speed, or when the user questions whether a holiday date is right: contracts, payroll, settlement, compliance deadlines. Compares the national holiday list for a country and year across three independent providers and reports exactly where they agree and disagree, rather than picking one.
輸入結構描述
{
"type": "object",
"properties": {
"country": {
"type": "string",
"description": "ISO 3166-1 alpha-2 country code, for example AU, US, GB."
},
"year": {
"type": "integer",
"description": "Calendar year between 1975 and 2075."
}
},
"required": [
"country",
"year"
],
"additionalProperties": false
}輸出結構描述
{
"type": "object",
"properties": {
"country": {
"type": "string"
},
"year": {
"type": "integer"
},
"sources_compared": {
"type": "array",
"items": {
"type": "string"
}
},
"sources_unavailable": {
"type": "array",
"items": {
"type": "object"
}
},
"agreed_count": {
"type": "integer"
},
"disputed_count": {
"type": "integer"
},
"agreed": {
"type": "array",
"items": {
"type": "object"
}
},
"disputed": {
"type": "array",
"items": {
"type": "object"
}
}
},
"required": [
"country",
"year",
"sources_compared",
"sources_unavailable",
"agreed_count",
"disputed_count",
"agreed",
"disputed"
],
"additionalProperties": false
}社群
證據