Skip to main content
Glama

Get component docs

get_component_docs
Read-only

Full docs for one component by name or alias, in the project's framework: import, tag, setup, what it replaces, usage rules and example.

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

Input Schema

NameRequiredDescriptionDefault
nameYesComponent name, e.g. "Button" or an alias like "Modal"
frameworkNoThe project's UI framework (from its package.json: @angular/core → angular, vue → vue, svelte → svelte, solid-js → solid, react → react). Defaults to the one set for this connection.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered by structured data. The description adds real value by enumerating the returned sections (import, tag, setup, what it replaces, usage rules, example) and scoping output to the project's framework, but says nothing about missing/unknown component handling or whether aliases resolve ambiguously.

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?

A single front-loaded sentence with zero filler; the scope ("Full docs for one component") comes first and the content list is compact and informative.

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 compensates well by listing what the response contains and tying it to the framework. The remaining gap is failure behavior for an unknown name or alias, which an agent would need to plan around but can reasonably discover at call time.

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 both parameters are already documented in the schema, including the framework enum mapping and the connection default. The description only echoes that resolution happens "in the project's framework," adding little beyond the schema; baseline 3 applies.

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 and resource ("Full docs for one component") plus the exact contents returned, which separates it from a search-style sibling like find_component. It never names a sibling explicitly, so the differentiation is inferable rather than stated.

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?

"by name or alias" implies the caller must already know the component identifier, which hints at when this applies versus a lookup tool. However, there is no explicit when-to-use/when-not guidance and no reference to find_component, get_template, or get_guidelines as alternatives.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources