Skip to main content
Glama
Jambozx

OnlineCyberTools MCP (280+ filterable tools)

time_week_number

Read-onlyIdempotent

Calculate week numbers for any date or find start and end dates of a week under ISO, US, simple, or CDC epi week numbering schemes. Supports week number to date conversion and week count per year.

Instructions

Week Number Calculator. Pure deterministic week-numbering over UTC with no clock/now dependency — every date or week is supplied by the caller. operation "fromDate" returns the week number and week-year of a calendar date under all four schemes at once (ISO 8601 = Monday-start, week 1 holds Jan 4 / the first Thursday; US = Sunday-start, week 1 holds Jan 1; simple = Jan 1-7 is week 1; epi/MMWR CDC = Sunday-start, week 1 has at least 4 days in the new year). operation "toDate" maps a (scheme, year, week) back to that week's start and end dates; "weeksInYear" returns 52/53/54 for a scheme+year; "weekRange" returns the full list of dates in a week. Use this for ISO week numbers or week-to-date conversion; use time_day_of_week for the weekday name of a date and time_date_calculator for adding/subtracting durations or business days. Read-only, non-destructive, idempotent, offline-capable, rate-limited (60 req/min anonymous), no auth. Result is wrapped as operation plus data.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
operationYes"fromDate": week numbers for a date (needs year/month/day). "toDate": start/end dates of a week (needs scheme/year/week). "weeksInYear": week count for a scheme+year (needs scheme/year). "weekRange": every date in a week (needs scheme/year/week).
schemeNoWeek-numbering scheme. Required for toDate, weeksInYear, and weekRange; ignored by fromDate (which returns all four). iso = ISO 8601 Monday-start; us = Sunday-start week 1 holds Jan 1; simple = Jan 1-7 is week 1; epi = MMWR/CDC.iso
yearNoCalendar year in the proleptic Gregorian calendar. Required for every operation.
monthNoMonth 1-12. Required when operation is fromDate.
dayNoDay 1-31; must be a real calendar date. Required when operation is fromDate.
weekNoWeek number 1-54; must not exceed the scheme/year week count. Required when operation is toDate or weekRange.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
operationNoThe operation that was run, echoed back (fromDate, toDate, weeksInYear, or weekRange).
dataNoResult payload; shape depends on operation.
Behavior5/5

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

Annotations already declare readOnlyHint, destructiveHint, and idempotentHint. The description adds significant value by stating it is 'pure deterministic week-numbering over UTC with no clock/now dependency', 'Read-only, non-destructive, idempotent, offline-capable, rate-limited (60 req/min anonymous), no auth.' It also explains the four week-numbering schemes in detail, which is well beyond 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 fairly long but well-structured, front-loading the purpose and then detailing each operation. It includes usage guidelines and behavioral traits. Every sentence adds value, though it could be slightly more concise. Still, it is well-organized and clear.

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 complexity of the tool (4 operations, 4 schemes, 6 parameters) and the presence of an output schema, the description combined with the schema is complete. The description covers all operations and schemes, and the schema provides full parameter details. The rule allows that output schema need not explain return values.

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%, so baseline is 3. The description provides high-level operation summaries (e.g., what each operation needs) but does not add significant per-parameter meaning beyond what the schema already provides. The schema descriptions themselves are thorough, so the description adds marginal value.

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 it is a 'Week Number Calculator' and lists four specific operations (fromDate, toDate, weeksInYear, weekRange) with detailed explanations of each. It also distinguishes from sibling tools time_day_of_week and time_date_calculator by specifying their different use cases.

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: 'Use this for ISO week numbers or week-to-date conversion' and when not to use: 'use time_day_of_week for the weekday name of a date and time_date_calculator for adding/subtracting durations or business days.' This provides clear guidance on alternatives.

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