Skip to main content
Glama

Leer fechas escritas en español

es-date-parse
Read-onlyIdempotent

Encuentra y convierte una fecha escrita en español: «tres de marzo de 2026», «primero de enero del dos mil veintiséis», «15/03/2026» (día primero) y hoy/mañana/ayer respecto a una fecha de referencia. Devuelve ISO 8601 y el día de la semana. Cuándo: hay que tratar texto, números o fechas en español según las reglas escritas del idioma y no por aproximación. No para: leer un número escrito en palabras o cifras en español (es-number-parse). 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: Finds and parses a date written in Spanish: "tres de marzo de 2026", "1.º de enero del dos mil veintiséis", "15/03/2026" (day first), and hoy/mañana/ayer relative to a given reference date. Returns ISO 8601 (proleptic Gregorian; 2-digit years are 20xx) and the weekday. [EN completo / full EN: inputSchema.description]

Input Schema

NameRequiredDescriptionDefault
textYesText containing a date (string; required; up to 20000 chars).
reference_dateNoYYYY-MM-DD, needed for hoy/mañana/ayer and dates without a year (string; optional; pattern ^\d{4}-\d{2}-\d{2}$).

Output Schema

NameRequiredDescriptionDefault
dayNo
dateNo
yearNo
foundNo
monthNo
validNo
formatNo
reasonNo
weekday_enNo
weekday_esNo
offset_daysNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / text / examples
      Added value: +[
      +  "La reunión es el martes tres de marzo de 2026 a las 10."
      +]
  2. Changed1 schema field changed
    • addedInput schema / description
      Added value: +"EN: Finds and parses a date written in Spanish: \"tres de marzo de 2026\", \"1.º de enero del dos mil veintiséis\", \"15/03/2026\" (day first), and hoy/mañana/ayer relative to a given reference date. Returns ISO 8601 (proleptic Gregorian; 2-digit years are 20xx) and the weekday. When: Spanish text, numbers or dates have to be handled by the written rules of Spanish instead of by approximation. Not for: reading a number written in Spanish words or digits (es-number-parse). 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."
  3. 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 readOnly, idempotent, non-destructive and closed-world, and the description repeats the read-only claim but adds genuinely new behavioral facts: determinism, no network, no stored state, and hard limits (64 KB input, 1 s per call, 1 MB result) that an agent must respect to avoid failures. The safety restatement is mild redundancy rather than added value, which keeps it below a 5.

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?

Purpose and examples are front-loaded and each labeled section (Cuándo / No para / Efectos / Límites) is scannable. The bilingual duplication roughly doubles length, which is defensible for a Spanish-language tool, but the trailing "[EN completo / full EN: inputSchema.description]" pointer is a wasted meta-reference since it merely redirects elsewhere.

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 and an output shape (ISO 8601 proleptic Gregorian, weekday) is still briefly named, the two parameters are covered by the schema, and limits, determinism and the sibling exclusion are all stated. Nothing an agent needs to call this correctly or interpret the result is missing.

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; the description adds semantic context by explaining that hoy/mañana/ayer are resolved against "a given reference date" and that day-first order applies to 15/03/2026 and 2-digit years are 20xx. It doesn't restate the regex or maxLength constraints, but those are already fully in the schema.

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+resource ("Encuentra y convierte una fecha escrita en español") and backs it with three contrasting input examples plus the outputs (ISO 8601, weekday). It explicitly names the sibling it is not (es-number-parse), so an agent can separate it from the adjacent Spanish-language parsers without opening either 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?

Contains explicit routing: "Cuándo: hay que tratar texto, números o fechas en español según las reglas escritas del idioma y no por aproximación" and "No para: leer un número escrito en palabras o cifras en español (es-number-parse)". Both the positive trigger and the negative exclusion are present, which is the full standard.

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