Skip to main content
Glama

Get a Kodza component

get_component
Read-only

Fetch a Kodza component's full HTML, CSS, JS, API details, keyboard behavior, dark-mode values, and install notes by slug; optionally omit code files or narrow notes to one stack.

Instructions

The full code of one Kodza component (HTML, CSS and, when it has one, vanilla JS), its API (CSS variables with defaults, modifier classes, data attributes, events), what each key does when it takes the keyboard, its dark-mode values and its install notes. Its CSS and JS are also available as files at the URLs listed in its Files section; with inline: false, the answer leaves them out of the Code section. target narrows the install notes to one stack.

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

Input Schema

NameRequiredDescriptionDefault
slugYesThe component slug, from search_components (e.g. "button-fill")
inlineNofalse: the Code section leaves out the CSS and JS, which stay available as files at the listed URLs. true by default: the whole code inline
targetNoWhere it goes: html (a plain page), artifact (a Claude artifact on claude.ai), wordpress, shopify or react. All of them when omitted

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.4
    • changedInput schema / properties / inline / description
      Previous value: -"false: leave the CSS and JS out of the Code section (you download those files with the given commands). true by default, for assistants that cannot run commands"New value: +"false: the Code section leaves out the CSS and JS, which stay available as files at the listed URLs. true by default: the whole code inline"
  2. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=false and destructiveHint=false, so the safety profile is covered by structured data. The description adds real behavioral context beyond that: it details the shape of the payload, the existence of a Files section with per-file URLs, and the exact consequence of inline=false (CSS/JS omitted from Code but still reachable as files). It does not discuss failure behavior for an unknown slug, keeping it off 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.

Conciseness4/5

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

A single dense paragraph, front-loaded with what is returned before moving to the file-URL and parameter behavior. Every sentence carries information, though the tail sentences partially restate the inline and target semantics that the schema already documents, which is mild duplication rather than waste.

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 no output schema, the description must carry the return-shape burden and does so thoroughly: code contents, API surface, keyboard mapping, dark-mode values and install notes are all named. All three parameters (one required, one enum) are explained in context. Only minor gaps remain, such as behavior on an invalid or unknown slug.

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 100%, so the baseline is 3. The description nonetheless adds meaning beyond the schema: it explains that inline:false leaves CSS and JS out of the Code section while they remain downloadable from the listed URLs, and that target narrows the install notes to one stack rather than merely selecting a stack. That is genuine effect-level explanation, not a restatement.

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 Kodza component, and enumerates exactly what comes back: HTML, CSS, vanilla JS, API surface (CSS variables with defaults, modifier classes, data attributes, events), keyboard behavior, dark-mode values and install notes. That is far more specific than a restatement of the name. It does not explicitly contrast itself with search_components in the description body (only the slug param points back to it), so it stops short of a 5.

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 implied rather than stated: an agent can infer this is the tool for pulling one component's full implementation after finding a slug. Conditional guidance is present for inline:false (code left out, still available at listed URLs) and target (narrows install notes to one stack), which helps an agent choose parameter values. However, there is no explicit when-to-use/when-not statement and no named alternative, so it lands at minimum-viable-plus.

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

Deploy Server

Other Tools