Utilities
Data source: Algorithmic
MCP Protocol
Endpoint
https://context.gnist.ai/mcp/working-days/
claude_desktop_config.json
{
"mcpServers": {
"gnist-working-days": {
"url": "https://context.gnist.ai/mcp/working-days/",
"headers": {
"Gnist-API-Key": "YOUR_API_KEY"
}
}
}
}
Shell
curl -X POST "https://context.gnist.ai/mcp/working-days/" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "Gnist-API-Key: YOUR_API_KEY" \
-d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "count_working_days", "arguments": {"start": "example", "end": "example"}}}'
REST API
API Root
https://context.gnist.ai/rest/working-days/
5 endpoints available:
GET /rest/working-days/count_working_daysGET /rest/working-days/add_working_daysGET /rest/working-days/is_working_dayGET /rest/working-days/get_working_days_in_monthGET /rest/working-days/report_feedback
Shell
curl "https://context.gnist.ai/rest/working-days/count_working_days?start=example&end=example" \ -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx
resp = httpx.get(
"https://context.gnist.ai/rest/working-days/count_working_days",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
params={
"start": "example",
"end": "example"
},
)
print(resp.json())
Command Line
Command
gc working-days
CLI documentation will be available when the GnistAI SDK is published.
Install
pip install gnistai
Available Tools (5)
count_working_daysCount business days between two dates (Monday–Friday only).
| Parameter | Type | Required | Description |
|---|---|---|---|
start | string | required | |
end | string | required |
add_working_daysAdd N business days to a date and return the resulting date.
| Parameter | Type | Required | Description |
|---|---|---|---|
date | string | required | |
days | integer | required |
is_working_dayCheck whether a given date is a business day (Monday–Friday).
| Parameter | Type | Required | Description |
|---|---|---|---|
date | string | required |
get_working_days_in_monthList all working days (Monday–Friday) in a given year and month.
| Parameter | Type | Required | Description |
|---|---|---|---|
year | integer | required | |
month | integer | required |
report_feedbackReport a bug, feature request, or general feedback for this data source.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |