Skip to main content
Glama

Check markup against the Mlola contract

check_markup
Read-only

Checks HTML or JSX: classes and --ml-* tokens that do not exist (with the closest that do), variant classes, data-* values and React props a component does not take, a control's class on an element that cannot be operated (ml-button on a div), buttons, links, fields and images with no name, utility classes, misuse of data-theme or data-mode, and in style attributes, blocks and utility classes (bg-[#fafafa]) what is typed by hand instead of read from a token: colors, spacing, type sizes, radii, shadows, durations, layers, overridden theme tokens and text faded with opacity. Each issue names its line and the fix. Run it on markup you wrote before finishing: pass the whole page or file, blocks included, not an excerpt, since it only checks what it is given.

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": {
      "markup": "<markup>"
    },
    "name": "check_markup"
  }
}

Input Schema

NameRequiredDescriptionDefault
markupYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

The readOnlyHint annotation is consistent with a static checker, so the safety profile is already covered; the description adds value beyond it by disclosing the scope limit that the tool sees only the supplied text, and by describing the return shape — each issue names its line and the fix. It does not say whether checks can be suppressed or how many issues are returned, which keeps it short of a 5.

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?

The verb and resource are front-loaded, and the closing sentence about running it before finishing is well placed. But the middle is one long comma-spliced enumeration of check categories that is hard to scan and mixes defect classes with implementation details, so it costs more reading effort than its content requires.

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 one parameter, no annotations beyond readOnlyHint, and no output schema, the description covers what an agent needs: what is checked, what the input must contain, and that results are line-anchored issues with fixes. A brief note on whether it mutates nothing would be redundant with the annotation, so the remaining gap is minor.

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 0% and the single `markup` parameter is an undescribed string, so the description must carry the meaning — and it does, instructing the agent to pass the entire page or file with <style> blocks rather than an excerpt. That is meaningful guidance beyond the bare type constraint, though it does not specify encoding or size expectations.

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 opens with a specific verb and resource ('Checks HTML or JSX') and then enumerates the concrete defect classes it detects — nonexistent classes and --ml-* tokens, missing accessible names, hand-typed values in style attributes and <style> blocks. That is far more than a restatement of the name. It does not, however, distinguish itself from siblings such as check_render, so an agent must infer the boundary between static markup checking and render checking.

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 gives a clear when-to-use instruction ('Run it on markup you wrote before finishing') and a critical calling constraint: pass the whole page or file including <style> blocks, not an excerpt, because it only checks what it is given. What it lacks is any exclusion or comparison against alternatives, so an agent choosing between check_markup and check_render gets no routing help.

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.