Skip to main content
Glama

Apply safe mechanical fixes

design_autofix
Read-onlyIdempotent

Applies deterministic fixes that never change how the email looks in good clients (doctype, lang, meta tags, role=presentation, table resets, display:block images, removing scripts) and returns the fixed HTML with the remaining lint findings that need judgement.

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": {
      "html": "<html>"
    },
    "name": "design_autofix"
  }
}

Input Schema

NameRequiredDescriptionDefault
htmlYes
kindNomarketing
langNoe.g. en-AU
titleNoUsually the subject line.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent and non-destructive, so the bar is lower, yet the description adds real context: the fixes are deterministic, guaranteed not to change rendering in good clients, and the response carries both the fixed HTML and the residual findings. That is substantive behavioral disclosure beyond the structured fields.

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?

A single front-loaded sentence that leads with the safety guarantee, followed by the fix list and the return contract; no filler. The parenthetical list is dense but each item conveys the scope of what gets rewritten.

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?

With no output schema, the description correctly explains what comes back (fixed HTML plus remaining findings), which is the key missing piece. It leaves open whether the tool is safe to re-run and how the kind/lang/title inputs influence output, minor gaps given annotations cover idempotency and safety.

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

Parameters2/5

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

Schema coverage is only 50%: 'html' and 'kind' have no schema descriptions, and the description says nothing about the html input or how marketing vs transactional affects the fixes. Only 'lang' and 'title' are documented, and that documentation lives in the schema, not the description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb ('applies deterministic fixes') plus a concrete enumeration of the fix classes (doctype, lang, meta tags, role=presentation, table resets, display:block images, script removal) and states the return. It implicitly contrasts with design_lint by noting the leftover findings 'that need judgement', though it never names that sibling, so an agent must infer the routing.

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?

It clearly delineates the safe/mechanical subset from findings requiring human judgement, which is exactly the condition that selects this tool over design_lint. It does not explicitly say 'use design_lint for the judgement findings' or state prerequisites, so the routing is implied rather than stated.

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.