Skip to main content
Glama

Get component docs

get_component
Read-onlyIdempotent

Retrieve an ExhaustiveUI component's import, tag, inputs, outputs, template contexts, examples, and optional full API/docs before writing code; include up to 10 components per request.

Instructions

Read an ExhaustiveUI component: its card (import, tag, key inputs, outputs, every template with the context it receives, one example), its sections and available examples, and optionally its full API, compiled declarations and full Markdown document. Start here before writing code with a component. Accepts a batch of up to 10 components.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_component"
  }
}

Input Schema

NameRequiredDescriptionDefault
detailNo"compact" returns the component card (import, tag, key inputs, outputs, templates with their context, one example); "full" also returns the complete Markdown document.compact
sectionsNoRestrict to these section ids or labels.
componentNoComponent name, selector, class name or docs URL (e.g. "button", "p-button", "Table", "dropdown").
componentsNoBatch form: up to 10 single-component requests.
includeApiNoInclude the API (inputs, outputs, templates, methods, PT keys, CSS classes, tokens) and compiled declarations.
includeExamplesNoInclude the code of every example section.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered; the description usefully adds the batch ceiling of 10 and the two-tier detail behavior (compact card vs. full Markdown document). It does not disclose what happens on an unresolvable component name or whether output is truncated, which are the remaining behavioral unknowns.

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, front-loaded with what is returned, then the usage instruction, then the batch constraint. The long parenthetical pays for itself because each item listed is content the agent would otherwise have to discover by calling.

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

Completeness5/5

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

With six optional parameters, no required fields, and a fully documented schema, the description covers the output shape and the entry-point role well enough to call correctly. The one omitted detail, which of component vs. components to supply, is inferable from the schema's own parameter descriptions; no output schema exists, yet the return contents are described in enough depth to substitute.

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, but the prose adds real meaning: it explains that detail=full layers the complete Markdown document on top of the card, that API and compiled declarations are an optional extra, and that 'components' is a batch form capped at 10. Only the sections and enumerate-all-examples parameters are left wholly to the schema.

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?

The description states a specific verb and resource ('Read an ExhaustiveUI component') and then enumerates exactly what comes back: the card with import, tag, inputs, outputs, templates with context, and one example, plus optional sections, API, and declarations. That enumeration distinguishes it from get_example and get_guide without needing to name them, since an agent can see the card already contains a sample example.

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?

'Start here before writing code with a component' gives a clear, actionable entry condition that positions it ahead of the sibling tools. It stops short of exclusions, e.g. it never says when to prefer get_example or search once the component is already identified, so the alternative-routing half of the guidance is absent.

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