Skip to main content
Glama

Get component source

get_component_source

The CSS for the component and, if it has behaviour, its part of mian.js.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
partNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.7/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose a genuine behavioral trait beyond structure: JS is only included when the component has behaviour. But it omits the read-only nature, the output format (raw source vs. wrapped text), whether results are cached or large, and how the 'part' parameter affects what comes back.

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 front-loaded sentence with no filler, which is appropriate for this tool. It is slightly undermined by the typo 'mian.js', which momentarily obscures the referenced artifact.

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

Completeness2/5

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

With no annotations, no output schema, and two parameters at 0% schema coverage, the description is too thin. An agent cannot tell whether the response is a single blob, separated CSS/JS fields, or how 'part' selects between them, nor how this differs from sibling retrieval tools.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It gestures at the two content kinds (CSS and main.js), which partially maps to the css/js/both enum, but the 'part' parameter is never named or explained, and the large id enum receives no framing beyond the implicit vocabulary of 'component'.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states what is returned (the component's CSS, plus its portion of main.js when it has behaviour), so the resource and content type are identifiable. However, it never names the action or distinguishes itself from close siblings like get_component, get_noodle_css, or get_accessibility_notes, leaving the agent to infer that this returns raw source rather than API documentation or usage examples.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance and no mention of alternatives. With siblings such as get_component and get_noodle_css available, the description gives the agent no basis for choosing this tool over them, nor any stated prerequisites for the id.

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