Skip to main content
Glama

Roll to a business day

roll_date
Read-onlyIdempotent

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateYesCivil date, YYYY-MM-DD. Not a timestamp.
calendarNoCalendar 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. us-nyse is NYSE full-day holidays for 2026 through 2028. us-sifma is SIFMA recommended U.S. full closes for 2026 and 2027. An early close stays open. us-ca is California state offices for 2026. A Saturday holiday does not close Friday. us-ny is New York State executive-branch offices for 2026 and 2027. A floating holiday stays open. us-nyc is New York City offices for 2026 and 2027. A Saturday holiday closes Friday.
directionYesnext walks forward. previous walks backward.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateYesdate
reasonYesreason
resultYesresult
rolledYesrolled
sourcesYessources
calendarYescalendar
directionYesdirection
disclaimerYesdisclaimer

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover read-only, idempotent, non-destructive and closed-world behavior, yet the description still adds real value: the idempotent no-op condition, the error on unknown calendar ids, and the scope limitation that it does not adjudicate filing timeliness. It does not restate anything the annotations contradict.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences, front-loaded with the core behavior, then scoping caveats, then the default-calendar rule. No filler and nothing buried.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema, a complete parameter schema, and full annotations, the description only needs to supply behavioral and scoping context — which it does via the no-op rule, the unknown-id error, the calendar default, and the explicit non-timeliness disclaimer.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and both enums are documented in the schema, so the schema carries the parameter burden. The description only restates the calendar default and the direction semantics, which the schema already conveys — marginal added meaning over structured data.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a precise verb+resource behavior: keep the date if it is already a business day, otherwise move it to the nearest business day in the given direction. It explicitly bounds itself against neighbors — 'not Excel WORKDAY' and 'does not decide whether a filing is timely' — which separates it from frcp_6a_deadline and add_business_days.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear usage context: the no-op case, the two directions, and the default-calendar rule ('Omit calendar for us-federal-opm'). It also flags when this tool is the wrong choice (filing timeliness), though it never names the sibling an agent should use instead, so routing is implied rather than explicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources