Skip to main content
Glama
RoleModel

Optics MCP Server

by RoleModel

Get Component Info

get_component_info

Retrieve detailed information about a UI component, including its design token dependencies. Input a component name like 'Button' to get component specs and associated design tokens.

Instructions

Get detailed information about a component including its design token dependencies

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
componentNameYesThe name of the component (e.g., "Button", "Card", "Input")
Behavior2/5

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

With no annotations, the description carries full burden for behavioral disclosure. It only states the purpose without mentioning any side effects, failure modes, or authorization requirements. For a read operation, it minimally implies non-destructive behavior but provides no explicit details.

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 a single, front-loaded sentence that efficiently conveys the tool's primary function without unnecessary words. It is highly concise and structurally sound.

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

Completeness3/5

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

Given the lack of output schema, the description should elaborate more on what 'detailed information' includes beyond token dependencies. The presence of a similar sibling (get_component_tokens) further suggests a need for clarity, but the description is adequate for a simple one-parameter tool.

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 has 100% coverage with a description for the componentName parameter. The tool description does not add any additional semantic context beyond what the schema already provides, meeting the baseline expectation.

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 clearly states the tool retrieves detailed component info including design token dependencies, which distinguishes it from siblings like list_components and get_component_tokens. However, it doesn't specify what other details are included, leaving some ambiguity.

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?

No guidance is provided on when to use this tool versus alternatives like get_component_tokens or list_components. The description lacks context for appropriate usage scenarios.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/RoleModel/optics-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server