Skip to main content
Glama

mechacut

date_relative

Relative-date phrases in human words → exact ISO, EN/FR/PT closed grammar: today/demain/amanha, [this|next|last] , in N days/weeks/months/years, N units ago, start|end of week|month|year, + declared time-of-day map (morning=09:00, tonight=21:00…). now is an ARGUMENT (echoed as now_used): same phrase + same now = same answer forever. ISO-week rules stated in reading_notes; 'this Friday' said on a Friday returns BOTH readings (ambiguity reported, never decided); anything outside the grammar is refused by name — normalizing messy prose to the grammar stays the model's job, the calendar math becomes ours. Answers the #1 complaint of every local-model forum. Free.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "phrase": "<phrase>"
    },
    "name": "date_relative"
  }
}

Input Schema

NameRequiredDescriptionDefault
tzNoIANA zone applied to now
nowNoISO-8601 anchor; omit = current UTC (echoed)
phraseYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full load and does it well: it declares determinism ('now is an ARGUMENT ... same phrase + same now = same answer forever'), discloses the echo field now_used, states that ISO-week rules live in reading_notes, and specifies that a genuinely ambiguous phrase like 'this Friday' on a Friday returns BOTH readings rather than silently picking one. Refusal-by-name for out-of-grammar input is also disclosed, so the agent knows failures are explicit rather than best-effort.

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 core mapping and grammar lead the description, which is correct front-loading, and most clauses carry real information. But it is a dense run-on with a promotional tail ('Answers the #1 complaint of every local-model forum. Free.') that adds no selecting or invoking value and dilutes an otherwise technical 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?

For a 3-parameter, mutation-free tool with no output schema, the definition covers grammar, anchoring, determinism, ambiguity policy, and refusal behavior — nearly everything needed to call it correctly. The remaining gap is the return shape: reading_notes and now_used are referenced as if they are output fields, but the description never states what the response object actually contains (single ISO string vs. dual-reading payload).

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 67% and the one undocumented parameter is `phrase` — exactly the one the description compensates for by enumerating the accepted grammar, unit list, and time-of-day map (morning=09:00, tonight=21:00). It also adds meaning beyond the schema for `now`: that it is the determinism anchor and is echoed back as now_used, which the bare 'ISO-8601 anchor; omit = current UTC (echoed)' only hints at.

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 states a concrete verb+resource mapping ('Relative-date phrases in human words → exact ISO') and then enumerates the exact grammar surface it accepts (today/demain/amanha, [this|next|last] <weekday>, in N days, start|end of week|month|year). The line 'normalizing messy prose to the grammar stays the model's job, the calendar math becomes ours' draws a usable boundary against prose-parsing siblings such as date_parse and against pure arithmetic siblings such as date_calc, 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?

It gives clear in-scope conditions (closed EN/FR/PT grammar) and an explicit out-of-scope behavior ('anything outside the grammar is refused by name'), which tells the agent when not to call it and to pre-normalize instead. It stops short of naming a specific alternative tool for messy input or for cases where no `now` anchor is meaningful, so the routing is implied rather than spelled out.

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.