Skip to main content
Glama
Jambozx

OnlineCyberTools MCP (280+ filterable tools)

time_day_of_week

Read-onlyIdempotent

Find the weekday for any proleptic-Gregorian date, list next or previous occurrences of that weekday, or measure the calendar distance between two dates in days and weeks. Supports years from -9999 to 9999.

Instructions

Day of Week Calculator. Find the weekday for any proleptic-Gregorian date, list the next or previous N occurrences of that weekday, or measure the calendar distance between two dates in days and weeks. Select the mode with the operation field (weekday, scan, distance). Use this for weekday lookups and recurring weekday schedules; use time_date_difference when you need business-day counts or to add or subtract a duration from a date. Supports years -9999 to 9999 including BCE (year 0 and negatives), with strict round-trip date validation. Pure local computation: read-only, non-destructive, contacts no external service, and is rate-limited (60 requests/minute for anonymous callers). Returns ISO 8601 date strings plus weekday name, indices, ISO week number, and day-of-year metadata.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
operationYesMode: weekday returns the weekday for one date; scan lists N recurring weekday dates; distance measures the gap between two dates.
yearNoYear of the date (weekday and scan modes). BCE allowed via 0 and negative values.
monthNoMonth of the date (weekday and scan modes), 1 to 12.
dayNoDay of month (weekday and scan modes); must be a real day for that month.
countNoScan mode only. Non-zero signed count of same-weekday occurrences; positive scans forward, negative backward.
fromYearNoDistance mode only. Year of the start date.
fromMonthNoDistance mode only. Month of the start date, 1 to 12.
fromDayNoDistance mode only. Day of month of the start date.
toYearNoDistance mode only. Year of the end date.
toMonthNoDistance mode only. Month of the end date, 1 to 12.
toDayNoDistance mode only. Day of month of the end date.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
operationNoThe operation that was performed (weekday, scan, or distance).
dataNoResult payload; fields depend on the operation. Weekday fields shown below; scan adds from/dayOfWeek/count/occurrences, distance adds from/to/days/weeks/weekRemainder/sameWeekday.
Behavior5/5

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

Annotations already indicate readOnlyHint=true and destructiveHint=false. The description adds valuable context: 'Pure local computation: read-only, non-destructive, contacts no external service, rate-limited (60 requests/minute)'. It also mentions strict validation and BCE support, fully disclosing behavior without contradicting annotations.

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?

The description is concise (5-6 sentences) and well-structured: purpose first, then mode explanation, then differentiation, then constraints, then safety/performance. Every sentence provides unique value, no redundancy.

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 moderate complexity (three modes, 11 parameters), excellent annotations, and an output schema, the description covers all necessary aspects: inputs, modes, constraints, safety, rate limits, and return metadata. No gaps remain.

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

Parameters4/5

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

Schema coverage is 100% with descriptions for all 11 parameters. The description goes further by explaining the operation enum and how parameters relate to each mode (e.g., count for scan mode, fromYear/toYear for distance). This adds meaningful semantic context beyond the schema, justifying a slightly above-baseline score.

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 labels the tool as a 'Day of Week Calculator' and explains three distinct modes (weekday, scan, distance) with specific verbs like 'Find', 'list', and 'measure'. It distinguishes from sibling tool time_date_difference by specifying when to use each, ensuring no ambiguity.

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 explicitly states when to use this tool ('weekday lookups and recurring weekday schedules') and when to use the alternative time_date_difference ('business-day counts or to add/subtract a duration'), providing clear, actionable guidance.

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