Skip to main content
Glama

Check markup

check_markup
Read-onlyIdempotent

Validate HTML, JSX, or templates for unknown or legacy pui-* classes before returning markup. Reports each issue with line number and the correct or replacement class.

Instructions

Lists every pui-* class in the HTML that Perfect UI 1.0.0 does not define (kind "unknown"), with its line and the closest real class, and every Perfect UI 0.23.0 class that the migration guide renames (kind "legacy"), with the guide's replacement. Reads class and className attributes only; other classes (your own, Tailwind) are ignored. Call it on any markup before returning it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
htmlYesHTML, JSX or a template, up to 100000 characters

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
validYes
checkedYes
versionYes
findingsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint=false and destructiveHint=false, so safety is covered. The description adds real behavioral scope beyond that: only class and className attributes are inspected, and the user's own or Tailwind classes are ignored — a meaningful constraint on the analysis.

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?

Three tight sentences, front-loaded with the two result kinds before the scoping caveat and the call-to-action. Dense but every sentence carries information; no filler.

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?

An output schema exists and annotations cover safety, so return-value and side-effect details need not be repeated. The description still adds the key semantic distinction between 'unknown' and 'legacy' kinds plus the class-attribute scope, leaving nothing essential missing for a one-parameter read tool.

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 100% and the single `html` parameter is fully documented with its type and length bounds. The description adds no syntax or format detail beyond what the schema provides, 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+resource (lists pui-* classes in HTML) and precisely scopes the two output kinds the tool produces ('unknown' and 'legacy'). An agent can distinguish it from siblings like list_components or get_component without opening either schema.

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?

Explicitly says 'Call it on any markup before returning it,' giving a clear trigger condition. It does not name any alternative or when-not-to-use case, but the sibling tools are unrelated lookup tools, so the missing exclusion is minor.

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