Skip to main content
Glama

Leer números escritos en español

es-number-parse
Read-onlyIdempotent

Convierte números en palabras o cifras: «tres mil cuatrocientos veintiuno» → 3421, «dos coma cinco millones», «menos», escala larga (mil millones = 10⁹). Cifras como «1.250» (un separador + 3 dígitos) son ambiguas si no se da decimal_separator. 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: convertir textos de dinero en estilo colombiano (co-cop-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: Converts Spanish number words or digits to a number: "tres mil cuatrocientos veintiuno" → 3421, "dos coma cinco millones", "menos", long scale (mil millones = 10⁹). "1.250"-style digits (one separator + 3 digits) are ambiguous unless decimal_separator is given. [EN completo / full EN: inputSchema.description]

Input Schema

NameRequiredDescriptionDefault
textYesNumber in Spanish words or digits (accents optional) (string; required; up to 500 chars).
decimal_separatorNoDecimal separator of the digits; resolves "1,250"-style numbers (no default) (optional; one of: ,, .).

Output Schema

NameRequiredDescriptionDefault
unitNo
valueNoany JSON value
numberNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / text / examples
      Added value: +[
      +  "tres mil cuatrocientos veintiuno"
      +]
  2. Changed1 schema field changed
    • addedInput schema / description
      Added value: +"EN: Converts Spanish number words or digits to a number: \"tres mil cuatrocientos veintiuno\" → 3421, \"dos coma cinco millones\", \"menos\", long scale (mil millones = 10⁹). \"1.250\"-style digits (one separator + 3 digits) are ambiguous unless decimal_separator is given. When: Spanish text, numbers or dates have to be handled by the written rules of Spanish instead of by approximation. Not for: parsing money text written in Colombian style (co-cop-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 readOnlyHint, openWorldHint=false and idempotentHint, so the safety/determinism sentences largely restate structured data. The genuine addition is the operational limits (64 KB input, 1 s per call, 1 MB result) and the ambiguity rule for «1.250»-style digits, which the agent cannot infer from 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?

Front-loaded with the core mapping and examples, then layered as when / not-for / effects / limits, and every section is short. It loses a point only because the side-effects and determinism sentences duplicate the annotation block and the ES/EN doubling makes the payload denser than strictly necessary.

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?

With an output schema present, return format needs no explanation, and the description still covers the ambiguous-input hazard, scale convention, exclusions, and size/time limits. Nothing an agent needs in order to invoke it correctly 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 coverage is 100%, so the baseline is 3; the description earns above that by explaining *why* decimal_separator exists — one separator followed by three digits is ambiguous without it — and by noting accents are optional and «menos» is understood, none of which the schema spells out.

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 precise verb+resource (converts Spanish number words or digits to a number) and backs it with concrete input→output examples («tres mil cuatrocientos veintiuno» → 3421) plus the long-scale convention. It is clearly distinguishable from the inverse sibling es-number-to-words and from co-cop-parse.

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?

Explicit routing is provided: «Cuándo: hay que tratar texto, números o fechas en español según las reglas escritas» and an explicit exclusion «No para: convertir textos de dinero en estilo colombiano (co-cop-parse)». The agent has both the positive condition and a named alternative to fall back on.

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