Skip to main content
Glama

mechacut

date_week

ISO 8601 weeks, both directions, with the year-boundary trap shown on YOUR date. Pass 'date' → iso_year/iso_week/iso_day, week bounds, and the live proof of the %Y-W%V vs %G-W%V concatenation bug (formatting 2027-01-01 with the GREGORIAN year prints '2027-W53', a week that does not exist — 2027 has 52 weeks). Pass 'iso' (YYYY-Www-d) → the calendar date, nonexistent weeks REFUSED naming the theorem (a year has 53 ISO weeks iff it contains 53 Thursdays: Jan-1 Thursday, or Wednesday in a leap year — computed, zero embedded tables). Pass 'year' → weeks count, W01/W53 bounds, January days of the previous ISO year, neighbouring 53-week years. Excel/US conventions (WEEKNUM 1/2, %U, %W) rendered BESIDE ISO, never chosen for you — a German 'KW 53' and an American 'week 2' can name the same seven days. Platform notes included (PostgreSQL IYYY, Snowflake session policy, BSD strftime deviation measured in production testing). Free.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "date_week"
  }
}

Input Schema

NameRequiredDescriptionDefault
isoNoYYYY-Www-d (day optional) — to calendar date
dateNoYYYY-MM-DD — to ISO week
yearNoYYYY — how many weeks, does W53 exist

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses that nonexistent weeks are 'REFUSED' with a named theorem in the error, that no lookup tables are embedded, that conventions are rendered side-by-side rather than chosen, and that platform-specific behaviors (PostgreSQL IYYY, Snowflake session policy, BSD strftime) are documented. The remaining weakness is that a few sentences are promotional ('Free.', 'live proof') rather than behavioral, and the zero-argument case is undisclosed.

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

Conciseness3/5

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

The three 'Pass X → Y' clauses are front-loaded and well structured, but the text is bloated by a long illustrative parenthetical about the 2027-W53 concatenation bug and by asides ('computed, zero embedded tables', 'measured in production testing', 'Free.') that read as marketing rather than decision-relevant content. Trimming those would sharpen an otherwise well-organized definition.

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

Completeness4/5

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

There is no output schema, so the description must explain returns, and it does so per mode: ISO week triple, week bounds, calendar date, week counts, W01/W53 bounds, January days of the previous ISO year, and neighbouring 53-week years. The gap is the unspecified behavior when zero or multiple of the three optional parameters are supplied, which an agent needs in order to call it safely.

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 description coverage is 100%, so the baseline is 3, but the description goes further by stating what each parameter produces downstream — the iso_year/iso_week/iso_day triple, week bounds, the optional day component, and the fact that 'year' answers whether W53 exists. That is genuine semantic value about parameter consequences rather than a restatement of the schema types.

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 names a specific resource (ISO 8601 weeks) and enumerates all three operating modes with their input and output: 'date' → iso_year/iso_week/iso_day plus bounds, 'iso' → calendar date, 'year' → week count and W53 existence. The ISO-week focus makes it immediately distinguishable from general date siblings like date_calc or date_parse without needing to name them.

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?

Each of the three optional parameters is paired with an explicit 'Pass X → you get Y' routing rule, which tells an agent exactly which mode to select for which input shape. What is missing is the negative case: it never says what happens if no parameter is passed (all three are optional) or if more than one is passed, and it names no alternative tool for adjacent needs.

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.