Skip to main content
Glama

HTML entities escape / unescape

html_entities
Read-onlyIdempotent

Encode text into HTML entities or decode named, decimal, and hex entities back into characters to safely display or process HTML content.

Instructions

Escape text for HTML or turn HTML entities (named, decimal, hex) back into characters. (Same as IT-Tools /html-entities.)

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": {
      "action": "<action>",
      "text": "<text>"
    },
    "name": "html_entities"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
actionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and a closed-world scope, so the safety profile is covered. The description contributes the detail that decode handles named, decimal, and hex entity forms, which is behavior beyond the structured fields, but it says nothing about malformed-input handling or output format.

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?

Two short sentences, front-loaded with the core operation and with the reference tool cited parenthetically at the end where it does no harm. Nothing is wasted, though the second parenthetical adds little for an agent.

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 simple two-parameter, no-output-schema converter with read-only annotations, this is nearly complete: both directions and the entity formats are stated. Only edge-case behavior and the required-ness of both parameters are left uncovered.

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 description coverage is 0%, so the description must carry the parameters. It does map the two enum values implicitly (escape → encode, entities back to characters → decode) and identifies the free-text input, but it never names the action/text parameters or states that both are required, leaving the mapping to inference.

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?

Names a specific pair of verbs (escape / turn back into characters) and a specific resource (HTML entities, named/decimal/hex), which cleanly separates it from adjacent text utilities like case_convert or text_stats. An agent can identify the tool's job from the first sentence alone.

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?

The two modes give implicit selection guidance: escape text when producing HTML, decode entities when consuming HTML. There are no explicit exclusions or named alternatives (e.g. when to prefer json_format or regex_test), but the context of use is unambiguous for a single-purpose converter.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.