Skip to main content
Glama

Semana ISO de una fecha

date-iso-week
Read-onlyIdempotent

Convierte una fecha a semana ISO 8601 (AAAA-Www-D) o una semana ISO a su rango de fechas. Cuándo: un resultado de fechas, zonas horarias o calendario tiene que ser exacto (desfases, horario de verano, fines de mes, bisiestos). No para: describir un año y mes (month-info). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.

EN: Converts a date to its ISO 8601 week date (YYYY-Www-D) or an ISO week (year + week) to its Monday-Sunday date range; also reports weeks in that ISO year. When: a date, time-zone or calendar result has to be exact (offsets, daylight saving, month ends, leap years). Not for: describing a year and month (month-info). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB.

Input Schema

NameRequiredDescriptionDefault
dateNoDate to convert (string; optional; up to 10 chars; format date).
weekNoISO week 1-53 (integer; optional; min 1; max 53).
iso_yearNoISO week-numbering year (integer; optional; min 1; max 9999).

Output Schema

NameRequiredDescriptionDefault
endNo
isoNo
weekNo
startNo
weekdayNo
iso_yearNo
weeks_in_yearNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint=false, idempotentHint and destructiveHint=false, so the restatement of 'no side effects' and 'deterministic' is largely redundant. However, the description adds genuinely new operational context not in annotations: 64 KB JSON input cap, 1 s per call, 1 MB result cap, and no stored state.

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?

Front-loaded with the action, then When / Not for / Side effects / Limits in a scannable order; every clause carries information. It loses a point because the full text is duplicated in Spanish and English, roughly doubling length for a single-locale caller.

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?

An output schema exists, so return values need not be explained. The description still covers modes, exclusions, determinism and runtime limits, which is everything an agent needs to call this correctly.

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%, so the baseline is 3, but the description adds meaning the schema does not: it explains the two modes and implicitly which parameters pair (date alone vs. week + iso_year). It still does not state what happens if all three are supplied or omitted (all params are optional), leaving the combination rules partly implicit.

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 specific verb and resource ('Convierte una fecha a semana ISO 8601 ... o una semana ISO a su rango de fechas') and even covers the third behavior (reports weeks in an ISO year). It explicitly names the sibling it is not for (month-info), so an agent can distinguish it without opening the schema.

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?

Provides an explicit 'Cuándo/When' trigger (exact date, time-zone or calendar results with offsets, DST, month ends, leap years) and an explicit 'No para/Not for' exclusion pointing at month-info. Both the positive selection condition and the alternative are named.

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