{"serverInfo":{"name":"bizday","version":"0.3.2"},"authentication":{"required":false},"tools":[{"name":"list_calendars","title":"List calendars","description":"Both shipped calendars: id, name, source URL, Saturday and Sunday rules, coverage, last verified, and changelog. us-federal-opm is the default.","inputSchema":{"type":"object","properties":{},"required":[],"additionalProperties":false},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"outputSchema":{"type":"object","required":["default","calendars"],"properties":{"default":{"description":"default"},"calendars":{"description":"calendars"}}}},{"name":"list_holidays","title":"List holidays","description":"The eleven nationwide legal public holidays for one year. On us-fed-banking, observed is null when the legal date is a Saturday, because Friday stays open. year is 2021 through 2100. Years after 2030 use the same rules and are not a later official table.","inputSchema":{"type":"object","properties":{"year":{"type":"integer","minimum":2021,"maximum":2100,"description":"Calendar year, 2021 through 2100."},"calendar":{"type":"string","enum":["us-federal-opm","us-fed-banking"],"description":"Calendar id. Omit for us-federal-opm. Unknown ids are an error. us-fed-banking keeps Reserve Banks open on the Friday before a Saturday holiday."}},"required":["year"],"additionalProperties":false},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"outputSchema":{"type":"object","required":["calendar","year","count","holidays","sources","disclaimer"],"properties":{"calendar":{"description":"calendar"},"year":{"description":"year"},"count":{"description":"count"},"holidays":{"description":"holidays"},"sources":{"description":"sources"},"disclaimer":{"description":"disclaimer"}}}},{"name":"is_business_day","title":"Is business day","description":"Whether a civil date is a business day, and why. Omit calendar for us-federal-opm (US federal offices). us-fed-banking is the Federal Reserve Banks schedule: a Saturday holiday does not close the preceding Friday. The result includes calendar, sources, and disclaimer. Not legal, payroll, or financial advice.","inputSchema":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Civil date, YYYY-MM-DD. Not a timestamp."},"calendar":{"type":"string","enum":["us-federal-opm","us-fed-banking"],"description":"Calendar id. Omit for us-federal-opm. Unknown ids are an error. us-fed-banking keeps Reserve Banks open on the Friday before a Saturday holiday."}},"required":["date"],"additionalProperties":false},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"outputSchema":{"type":"object","required":["calendar","date","business_day","sources","disclaimer"],"properties":{"calendar":{"description":"calendar"},"date":{"description":"date"},"business_day":{"description":"business_day"},"sources":{"description":"sources"},"disclaimer":{"description":"disclaimer"}}}},{"name":"add_business_days","title":"Add business days","description":"The date that is days business days after start. The start date is day 0, matching Excel WORKDAY, so days=1 always leaves the start date. days is an integer from -3660 to 3660. Omit calendar for us-federal-opm. us-fed-banking keeps Reserve Banks open on the Friday before a Saturday holiday.","inputSchema":{"type":"object","properties":{"start":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Civil date, YYYY-MM-DD. Not a timestamp."},"days":{"type":"integer","minimum":-3660,"maximum":3660,"description":"Business days to add. Negative counts backward. Zero returns the start date."},"calendar":{"type":"string","enum":["us-federal-opm","us-fed-banking"],"description":"Calendar id. Omit for us-federal-opm. Unknown ids are an error. us-fed-banking keeps Reserve Banks open on the Friday before a Saturday holiday."}},"required":["start","days"],"additionalProperties":false},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"outputSchema":{"type":"object","required":["calendar","start","days","date","sources","disclaimer"],"properties":{"calendar":{"description":"calendar"},"start":{"description":"start"},"days":{"description":"days"},"date":{"description":"date"},"sources":{"description":"sources"},"disclaimer":{"description":"disclaimer"}}}},{"name":"count_business_days","title":"Count business days","description":"How many business days are in the inclusive span from start through end, matching Excel NETWORKDAYS. Negative when end is earlier. The span must be 3660 days or less. Omit calendar for us-federal-opm.","inputSchema":{"type":"object","properties":{"start":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Civil date, YYYY-MM-DD. Not a timestamp."},"end":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Civil date, YYYY-MM-DD. Not a timestamp."},"calendar":{"type":"string","enum":["us-federal-opm","us-fed-banking"],"description":"Calendar id. Omit for us-federal-opm. Unknown ids are an error. us-fed-banking keeps Reserve Banks open on the Friday before a Saturday holiday."}},"required":["start","end"],"additionalProperties":false},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"outputSchema":{"type":"object","required":["calendar","start","end","business_days","sources","disclaimer"],"properties":{"calendar":{"description":"calendar"},"start":{"description":"start"},"end":{"description":"end"},"business_days":{"description":"business_days"},"sources":{"description":"sources"},"disclaimer":{"description":"disclaimer"}}}},{"name":"roll_date","title":"Roll to a business day","description":"Stay on date when it is already a business day. Otherwise move to the nearest business day in direction next or previous. This is not Excel WORKDAY, and it does not decide whether a filing is timely. Omit calendar for us-federal-opm.","inputSchema":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Civil date, YYYY-MM-DD. Not a timestamp."},"direction":{"type":"string","enum":["next","previous"],"description":"next walks forward. previous walks backward."},"calendar":{"type":"string","enum":["us-federal-opm","us-fed-banking"],"description":"Calendar id. Omit for us-federal-opm. Unknown ids are an error. us-fed-banking keeps Reserve Banks open on the Friday before a Saturday holiday."}},"required":["date","direction"],"additionalProperties":false},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"outputSchema":{"type":"object","required":["calendar","date","direction","rolled","result","reason","sources","disclaimer"],"properties":{"calendar":{"description":"calendar"},"date":{"description":"date"},"direction":{"description":"direction"},"rolled":{"description":"rolled"},"result":{"description":"result"},"reason":{"description":"reason"},"sources":{"description":"sources"},"disclaimer":{"description":"disclaimer"}}}}],"resources":[],"prompts":[]}