Skip to main content
Glama
Carnegie Mellon Web Kilt MCP Server

Carnegie Mellon Web Kilt MCP Server

Official
by cmu-web

Get a Component

get_component
Read-only

Fetches a component's full usage details, required labels, classes, and example markup, including framework-specific syntax for React, Svelte, Vue, Astro, Rails, or Django.

Instructions

One component's full description, what it requires (its labels), its classes and example markup to copy. With a framework, also how to use it there, with the markup in that framework's form (JSX for React, braces escaped for Astro).

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": {
      "id": "<id>"
    },
    "name": "get_component"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe component's id or name, from search_components, like "file-picker".
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.
frameworkNoReact, Svelte, Vue, Astro, Rails or Django: the project's framework.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.4.0
    • addedInput schema / properties / framework
      Added value: +{
      +  "description": "React, Svelte, Vue, Astro, Rails or Django: the project's framework.",
      +  "type": "string"
      +}
    • changedInput schema / properties / id / description
      Previous value: -"The component's id or name, from search_components, like \"drop\"."New value: +"The component's id or name, from search_components, like \"file-picker\"."
    • 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

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. Beyond that, the description discloses the return payload's shape (description, labels, classes, markup) and, importantly, that supplying a framework changes the markup rendering (JSX for React, escaped braces for Astro) — output-shaping behavior the annotations do not convey.

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?

Two dense, front-loaded sentences with no filler; the returned fields are listed before the framework caveat. Minor slack in 'full description', which partly restates the tool name, and the parenthetical '(its labels)' takes a beat to parse.

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?

There is no output schema, so the description must carry return-value information — and it does, enumerating the four content areas returned plus the framework-dependent variant. It stops short of covering error behavior for an unknown id or cross-version resolution, but nothing essential for calling the tool is missing.

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%, so every parameter is already documented and the baseline is 3. The description adds real meaning only for framework — that it changes the emitted markup dialect — while id and version semantics are left entirely to the schema.

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 names a specific resource (one component) and enumerates what comes back: full description, required labels, classes, and example markup. The singular scope ('One component's...') implicitly separates it from search_components, though it never names that sibling to make the contrast explicit.

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: the id parameter's schema text points to search_components as the source, and the description implies the framework argument is optional via 'With a framework, also...'. There is no explicit statement of when to call this rather than search_components or get_conventions, and no failure conditions.

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