Skip to main content
Glama
Jambozx

OnlineCyberTools MCP (280+ filterable tools)

time_date_calculator

Read-onlyIdempotent

Add or subtract years, months, weeks, or days from a base date, or shift by business days that skip weekends. Returns the resulting date and total days shifted.

Instructions

Date Calculator (Add/Subtract Duration and Business Days). Add or subtract a years/months/weeks/days duration from an explicit base date, or add a signed number of business days that skips weekends, using proleptic-Gregorian UTC arithmetic. Years and months apply first with the day-of-month clamped to the last valid day (Jan 31 + 1 month is Feb 28/29, never Mar 3), then the week/day shift. Use this when you have a known start date and want the resulting date; use time_date_difference to measure the span between two dates, or time_time_duration for HH:MM:SS clock arithmetic. The caller supplies every date, so results are deterministic (no current-time dependency). Runs locally: read-only, non-destructive, contacts no external service, and is rate-limited (60 requests/minute for anonymous callers). Returns the base and result dates (year/month/day, ISO date, weekday) plus the total days shifted and, for business-day mode, the weekends skipped.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
operationYesWhich calculation to run: "add" or "subtract" a calendar duration, or "addBusinessDays" to shift by weekday-only days.
yearYesBase date year (proleptic Gregorian).
monthYesBase date month, 1 (January) to 12 (December).
dayYesBase date day of month; must be a real calendar day for the given year/month.
yearsNoYears to add (add/subtract only; ignored for addBusinessDays).
monthsNoMonths to add (add/subtract only; ignored for addBusinessDays).
weeksNoWeeks to add (add/subtract only; ignored for addBusinessDays).
daysNoDays to shift. For add/subtract, a calendar-day component in -1000..1000 (default 0); for addBusinessDays, a signed weekday-only count in -100000..100000 (negative walks backward). For add/subtract, at least one of years/months/weeks/days must be non-zero.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
operationNoEcho of the requested operation (add, subtract, or addBusinessDays).
dataNoResult payload. Always includes base and result; add/subtract add totalDaysAdded and breakdown, addBusinessDays adds daysAdded, weekendsSkipped, and totalCalendarDaysShifted.
Behavior5/5

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

Beyond annotations (readOnlyHint, destructiveHint), the description adds behavioral details: runs locally, read-only, rate-limited, and explains business day arithmetic and month clamping. No contradiction; all are consistent with annotations.

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

Conciseness4/5

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

The description is a single paragraph but is information-dense and well-front-loaded. Every sentence adds value, though breaking into bullet points could improve scannability. Still, it's concise for the amount of information.

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?

Given the tool's complexity (8 parameters, business day logic, edge cases), the description covers input behavior (clamping), output format (returns base/result dates, total days, weekends skipped), constraints (rate limit, local execution), and non-destructiveness. Complete and sufficient.

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

Parameters5/5

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

While the schema covers 100% of parameters, the description adds crucial semantics: explains the order of operations for years/months clamping, and details the behavior of 'days' for business days vs calendar days. This goes beyond the schema's basic descriptions.

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?

The description clearly states the tool's purpose: 'Date Calculator (Add/Subtract Duration and Business Days)'. It explicitly distinguishes from sibling tools like time_date_difference and time_time_duration, making it easy for an agent to select the correct tool.

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

Usage Guidelines5/5

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

The description provides explicit usage guidance: 'Use this when you have a known start date and want the resulting date' and directs to alternatives for other scenarios. It also notes deterministic behavior and no current-time dependency, aiding appropriate invocation.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Jambozx/onlinecybertools-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server