Skip to main content
Glama

get_component

Get the full schema for one petal_components component: attrs, slots, defaults, allowed values, and a working HEEx usage example. Call this every time you are about to write a tag like <.button>, <.modal>, <.table>, or <.field> so the attrs and slots match the real library instead of training-data guesses.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesComponent function name without the leading dot (e.g. 'button', 'modal', 'field', 'text_input'). The HEEx tag is the same name prefixed with a dot: <.button>. Call list_components for the full inventory.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed1 schema field changed
    • changedInput schema / properties / name / description
      Previous value: -"Component function name (e.g. 'button', 'modal', 'input'). Get the full list via list_components."New value: +"Component function name without the leading dot (e.g. 'button', 'modal', 'field', 'text_input'). The HEEx tag is the same name prefixed with a dot: <.button>. Call list_components for the full inventory."
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations provided, the description carries the burden of disclosing behavior. It describes what the tool returns (full schema, usage example) and clearly signals a read-only operation via the verb 'Get' and the nature of the content. It does not explicitly state side-effect safety or permissions, but for a getter this is adequately transparent.

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?

The description is two sentences, front-loaded with the purpose, and includes actionable examples. No wasted words; every sentence adds value.

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?

Given the tool is simple (one parameter, fully documented), the description covers the essential context: what the tool returns, why it matters, and when to invoke it. The absence of an output schema is compensated by the explicit enumeration of return contents.

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?

The input schema already provides 100% coverage, explaining the parameter name without the leading dot and suggesting examples. The description reinforces this with tag examples but does not add significant new meaning beyond the schema. Therefore, it sits at the baseline for high schema coverage.

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 clearly states the tool's function: 'Get the full schema for one petal_components component' and enumerates specific contents (attrs, slots, defaults, allowed values, HEEx example). It distinguishes itself from sibling tools by focusing on a single component's schema rather than listing all components or install instructions.

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?

The description gives strong, explicit when-to-use guidance: 'Call this every time you are about to write a tag like <.button>, <.modal>, <.table>, or <.field>'. It also provides a rationale ('instead of training-data guesses'). However, it does not explicitly name alternatives or say when not to use this tool versus siblings like list_components, so it lacks full exclusion guidance.

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.

TDQS

A4.6/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose: listing all components, getting details for a specific component, and providing installation instructions. There is no overlap or ambiguity between them.

Naming Consistency5/5

All tool names follow a consistent imperative verb-noun pattern (get_component, list_components, get_install_instructions). The naming is uniform and predictable.

Tool Count5/5

With exactly 3 tools, the server is tightly scoped to its purpose of supporting petal_components usage. Each tool earns its place and the count is well within the ideal range.

Completeness5/5

The server covers the essential needs for working with petal_components: discovering components, understanding their schemas, and setting up the library. No critical gaps are apparent for the server's stated mission.