Skip to main content
Glama

Error message check

error_message_check
Read-only

Checks UI and error strings against WCAG 3.3.1 (Error Identification), 3.3.3 (Error Suggestion), 4.1.3 (status messages that vanish) and plain-language convention. Pass messages: a list of strings, or objects { text, where, autoDismissMs } where where is inline, toast, tooltip, placeholder and so on. Flags: says what went wrong but not what to do next, states a rule without an action, blames the person, is a code or generic phrase only, contains system jargon, is shouted, runs long, or disappears (toast, tooltip, placeholder, auto-dismiss under 20 seconds). For each message that needs work it returns a fill-in template (problem, then one step) chosen by the kind of error, with the slots named. It does not write the final copy. Judges wording by pattern; it cannot see whether a message is linked to its field or announced.

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": {
      "messages": "<messages>"
    },
    "name": "error_message_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
messagesYesError and status strings, one per item.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the readOnly/destructive annotations: it discloses that it judges by pattern rather than semantics, that it returns a fill-in template with named slots rather than final copy, that the template is selected by error kind, and that auto-dismiss under 20 seconds is flagged as a disappearing-message failure. It also states what it cannot verify (field linkage, announcement), which is exactly the kind of blind-spot disclosure an agent needs before trusting the result.

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 purpose and standards, then the input shape, then the detection list, then the return contract and limits — a sensible order. It is dense rather than padded, though the long comma-separated flag list is the least scannable part and could be tightened.

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?

There is no output schema, so the description carries the return contract itself — a per-message fill-in template with problem-then-one-step structure and named slots — and it closes with the tool's epistemic limits. For a single-parameter, read-only checker, nothing an agent needs to call it or interpret results responsibly 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% with a single parameter, so the schema already defines `text`, `where`, and `autoDismissMs`. The description still adds value: it explains the string-or-object union in plain terms, and supplies the 20-second auto-dismiss threshold that the schema does not state, turning a bare numeric field into a judgment criterion.

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 and resource — checking error/status strings — and pins it to named standards (WCAG 3.3.1, 3.3.3, 4.1.3) plus the exact defect classes it detects. An agent can tell this apart from generic copy tools like review_microcopy or notification_copy_check because the scope is error/status messaging and the criteria are enumerated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the scope ('error and status strings') and bounded by a useful limitation ('cannot see whether a message is linked to its field or announced'), but there is no explicit when-to-use/when-not guidance and no named alternative among the many sibling copy-checking tools (plain_language_check, notification_copy_check, error_state_writer_template).

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