Skip to main content
Glama

Desescapar HTML

html-unescape
Read-onlyIdempotent

Decodifica referencias de caracteres HTML numéricas y unas 100 entidades con nombre comunes. Cuándo: hay que leer, construir o revisar con exactitud una URL, una cabecera HTTP, un token, una versión, un rango de IP, un documento HTML o Markdown o un archivo para agentes. No para: escapar &, <, > (html-escape). 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: Decodes HTML character references: numeric (é é) and about 100 common named entities (&amp; &nbsp; &ntilde; &euro; …). Unknown names are left as-is. When: a URL, HTTP header, token, version string, IP range, HTML or Markdown document or agent-readiness file has to be parsed, built or checked exactly. Not for: escaping &, <, > (html-escape). Side effects: none (read-only, no network access, no stored state). [EN completo / full EN: inputSchema.description]

Input Schema

NameRequiredDescriptionDefault
htmlYesHTML-escaped text (string; required).

Output Schema

NameRequiredDescriptionDefault
textNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / html / examples
      Added value: +[
      +  "Tom &amp; Jerry &lt;3 &ntilde;and&uacute; &#8364;&#x20AC;"
      +]
  2. Changed1 schema field changed
    • addedInput schema / description
      Added value: +"EN: Decodes HTML character references: numeric (&#233; &#xE9;) and about 100 common named entities (&amp; &nbsp; &ntilde; &euro; …). Unknown names are left as-is. When: a URL, HTTP header, token, version string, IP range, HTML or Markdown document or agent-readiness file has to be parsed, built or checked exactly. Not for: escaping &, <, > (html-escape). 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.3/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive and closed-world, so the description correctly doesn't repeat those; instead it adds genuinely new behavior: unknown entity names are left as-is, determinism, and hard limits (64 KB input, 1 s, 1 MB result). The stated 64 KB input cap conflicts with the schema's maxLength of 1,048,576, which is an internal inconsistency worth flagging but not an annotation contradiction.

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?

Internally well-structured with labeled sections (Cuándo / No para / Efectos secundarios / Determinista / Límites) and the purpose is front-loaded. However, the entire content is then duplicated verbatim in a second language plus a pointer sentence ('EN completo / full EN: inputSchema.description'), roughly doubling length without adding information.

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?

For a single-parameter, fully annotated tool with an output schema, the description covers purpose, triggers, exclusion, edge-case behavior, determinism and resource limits — everything an agent needs to call it correctly and safely.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with its own description and an example, so the schema already does the heavy lifting. The description adds only the flavor of what input looks like (named and numeric references) and the unknown-name fallback; it doesn't address edge cases like double-escaped input or whether partially escaped text is fine.

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?

Opens with a specific verb+resource: decodes HTML character references, both numeric (&#233; &#xE9;) and ~100 named entities. It explicitly names html-escape as the thing it is NOT, so an agent can distinguish it from the sibling 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?

Has explicit 'Cuándo' with concrete triggers (URL, HTTP header, token, version string, IP range, HTML/Markdown documents) and an explicit 'No para' pointing to html-escape. Both when-to-use and the alternative are spelled out, leaving nothing to inference.

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