Skip to main content
Glama
tsubotax
by tsubotax

check_html

Validate generated HTML/JSX against melta-ui lint rules to catch class, attribute, and composition violations before presenting UI code.

Instructions

Lint a full HTML/JSX source against melta-ui rules — the same checks as CI and the PostToolUse hook (class rules + html-attr rules + composition rules for HTML). Use this AFTER generating UI code to self-verify before presenting it. Response always includes coverage info (manual rules cannot be auto-checked).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceYesFull source code to lint (HTML / JSX / Vue template)
sourceTypeNoSource type. "html" (default) also runs composition lint (nested modal etc.); "jsx" runs class + attr lint only

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.8.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does so well: it discloses CI/PostToolUse parity, the exact rule categories run, the html-vs-jsx behavioral split, and that coverage info is always returned. It omits failure modes or output detail beyond coverage, but for a pure lint operation the disclosed context is substantial.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, all load-bearing: scope, when-to-use, and return-value caveat. The self-verification instruction is front-loaded and nothing is redundant.

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?

No output schema exists, but the description compensates by stating the response always includes coverage info and that manual rules cannot be auto-checked. Timing, scope, and return expectations are all present; only deeper output structure is left unspecified.

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% and the sourceType enum is already described in the schema. The description's mention of composition rules for HTML corroborates but does not extend the sourceType semantics, so the baseline 3 applies.

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 (lint), resource (full HTML/JSX source), and the rule system it validates against (melta-ui rules). It further scopes what is checked (class rules, html-attr rules, composition), which separates it from siblings like check_rule and get_rules.

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?

"Use this AFTER generating UI code to self-verify before presenting it" gives explicit timing and intent, which is real guidance. It does not name an alternative tool or state when not to use it (e.g., single-rule checks via check_rule), so it falls short of a 5.

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