{"openapi":"3.0.3","info":{"title":"Gnist Context — Working Days Calculator","description":"Business day calculator — count working days, add/subtract business days, check weekday status.\n\n- **MCP endpoint:** `https://context.gnist.ai/mcp/working-days/`\n- **Toolkit page:** `/toolkits/working-days`\n- **Full API spec:** `/api/openapi.json`\n- **Get an API key:** `/signup`","version":"1.0.0","contact":{"name":"GnistAI","url":"https://gnist.ai"}},"servers":[{"url":"https://context.gnist.ai","description":"Production"}],"paths":{"/rest/working-days/count_working_days":{"post":{"tags":["Utilities"],"summary":"count_working_days","description":"Count business days between two dates (Monday–Friday only).\n\nThe range is [start, end) — start is inclusive, end is exclusive.\nReturns a negative count if end is before start.\n\nArgs:\n    start: Start date in ISO 8601 format (YYYY-MM-DD).\n    end: End date in ISO 8601 format (YYYY-MM-DD), exclusive.\n\nReturns:\n    Dictionary with count of working days and calendar days in the range.","operationId":"working_days_count_working_days","responses":{"200":{"description":"Successful tool call","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Server or tool not found"},"500":{"description":"Tool execution error"}},"security":[{"ApiKeyHeader":[]},{"ApiKeyQuery":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"start":{"type":"string"},"end":{"type":"string"}},"required":["start","end"],"type":"object"}}}}}},"/rest/working-days/add_working_days":{"post":{"tags":["Utilities"],"summary":"add_working_days","description":"Add N business days to a date and return the resulting date.\n\nSkips weekends (Saturday and Sunday). Supports negative values to subtract days.\n\nArgs:\n    date: Starting date in ISO 8601 format (YYYY-MM-DD).\n    days: Number of business days to add (negative to subtract).\n\nReturns:\n    Dictionary with the starting date, days added, and resulting date.","operationId":"working_days_add_working_days","responses":{"200":{"description":"Successful tool call","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Server or tool not found"},"500":{"description":"Tool execution error"}},"security":[{"ApiKeyHeader":[]},{"ApiKeyQuery":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"date":{"type":"string"},"days":{"type":"integer"}},"required":["date","days"],"type":"object"}}}}}},"/rest/working-days/is_working_day":{"post":{"tags":["Utilities"],"summary":"is_working_day","description":"Check whether a given date is a business day (Monday–Friday).\n\nArgs:\n    date: Date to check in ISO 8601 format (YYYY-MM-DD).\n\nReturns:\n    Dictionary with is_working_day boolean and day_of_week name.","operationId":"working_days_is_working_day","responses":{"200":{"description":"Successful tool call","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Server or tool not found"},"500":{"description":"Tool execution error"}},"security":[{"ApiKeyHeader":[]},{"ApiKeyQuery":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"date":{"type":"string"}},"required":["date"],"type":"object"}}}}}},"/rest/working-days/get_working_days_in_month":{"post":{"tags":["Utilities"],"summary":"get_working_days_in_month","description":"List all working days (Monday–Friday) in a given year and month.\n\nArgs:\n    year: The year (e.g. 2026).\n    month: The month (1–12).\n\nReturns:\n    Dictionary with count of working days and list of dates.","operationId":"working_days_get_working_days_in_month","responses":{"200":{"description":"Successful tool call","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Server or tool not found"},"500":{"description":"Tool execution error"}},"security":[{"ApiKeyHeader":[]},{"ApiKeyQuery":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"year":{"type":"integer"},"month":{"type":"integer"}},"required":["year","month"],"type":"object"}}}}}},"/rest/working-days/report_feedback":{"post":{"tags":["Utilities"],"summary":"report_feedback","description":"Report a bug, feature request, or general feedback for this data source.\n\nUse this when something doesn't work as expected, when you'd like\na new feature, or when you have suggestions for improvement.\n\nArgs:\n    feedback: Describe the issue or suggestion.\n    feedback_type: One of 'bug', 'feature_request', or 'general'.","operationId":"working_days_report_feedback","responses":{"200":{"description":"Successful tool call","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Server or tool not found"},"500":{"description":"Tool execution error"}},"security":[{"ApiKeyHeader":[]},{"ApiKeyQuery":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"feedback":{"type":"string"},"feedback_type":{"default":"general","type":"string"}},"required":["feedback"],"type":"object"}}}}}}},"tags":[{"name":"Utilities","description":"Data sources: Utilities"}],"components":{"securitySchemes":{"ApiKeyHeader":{"type":"apiKey","in":"header","name":"gnist-api-key","description":"API key passed via request header."},"ApiKeyQuery":{"type":"apiKey","in":"query","name":"gnist_api_key","description":"API key passed via query parameter."}}}}