Skip to main content
Glama
Carnegie Mellon Web Kilt MCP Server

Carnegie Mellon Web Kilt MCP Server

Official
by cmu-web

Check HTML

check_html
Read-only

Validates HTML pages or fragments for Kilt kit issues, including unknown cmu- classes or data-cmu- hooks, missing files, missing cmu-app body class, and incorrect loading order.

Instructions

Checks a page or a fragment for kit mistakes: cmu- classes or data-cmu- hooks the kit doesn't have and, for a whole page, missing files, the cmu-app body class and the loading order.

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": "check_html"
  }
}

Input Schema

NameRequiredDescriptionDefault
htmlYesThe HTML to check: a whole page or a fragment.
versionNoThe kit release the project pins, like "0.6.9", or a line, like "0.x", for its newest release. Leaving it out uses the newest release of any line.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.4.0
    • changedInput schema / properties / version / description
      Previous value: -"A kit release, like \"0.4.0\". Defaults to the latest."New value: +"The kit release the project pins, like \"0.6.9\", or a line, like \"0.x\", for its newest release. Leaving it out uses the newest release of any line."
  2. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnlyHint=true, openWorldHint=false), so the bar is lower. The description does add real behavioral detail beyond that: certain checks (missing files, cmu-app body class, loading order) apply only to whole pages, not fragments. It does not say what the tool returns or whether it fails vs. reports problems, which matters given there is no output schema.

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 sentence with no filler, and the core purpose is front-loaded before the enumerated checks. The trailing list is slightly dense and paratactic, but every clause carries information about what gets validated.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Inputs are fully covered, but with no output schema the description must carry the burden of explaining results, and it never says whether the tool returns a list of problems, a pass/fail, or throws. For a validation tool whose entire value is its report, that's a meaningful gap.

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%, so both the html and version parameters are already documented, including version formats like "0.6.9" and "0.x". The description reinforces the page-vs-fragment distinction for html but adds nothing about version semantics. Baseline 3 is appropriate.

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?

States a specific verb (checks) and resource (an HTML page or fragment) and enumerates the exact defect classes it looks for (unknown cmu- classes, data-cmu- hooks, missing files, body class, loading order). This makes it clearly a validator rather than a fetch/lookup tool like get_component or get_install, though no sibling is named explicitly.

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 only implied: an agent can infer you run this on HTML you've produced against the kit. There is no explicit statement of when to call it versus the retrieval siblings, no prerequisites (e.g. does it need the project's pinned version to be meaningful?), and no when-not guidance.

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