Skip to main content
Glama
Forge-Space

@forgespace/ui-mcp

Official
by Forge-Space

analyze_component_library

Detect the UI component library in your source code, analyze usage patterns, and receive migration suggestions.

Instructions

Analyze component source code to detect which library is used, identify patterns, and get migration suggestions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesComponent source code to analyze
filePathNoFile path for context (e.g., src/components/Button.tsx)
detectLibraryNoDetect which component library is being used
analyzePatternsNoAnalyze component patterns and structure
suggestMigrationNoSuggest migration path to a target library
targetLibraryNoTarget library for migration suggestions
Behavior2/5

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

No annotations provided, and the description does not disclose any behavioral traits such as side effects, performance implications, or behavior when code belongs to no known library or multiple libraries. Agent cannot infer safe operation or limitations.

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?

Single sentence that efficiently conveys the tool's purpose without redundancy. Every phrase earns its place, and the structure is front-loaded with the main action and key outputs.

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?

Description covers high-level purpose but lacks details on how boolean flags interact (e.g., relationship between detectLibrary, analyzePatterns, suggestMigration) and does not describe return format or output structure. Given no output schema, more context would be beneficial.

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 description coverage is 100%, so baseline is 3. The description itself does not add beyond the schema; it rephrases what parameters do. No additional meaning or usage context is provided.

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?

Description clearly states the verb 'analyze', resource 'component source code', and three specific outcomes: detect library, identify patterns, get migration suggestions. Unambiguously distinguishes from sibling tools like generate_component_library or assess_legacy_codebase.

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?

No explicit guidance on when to use this tool versus alternatives like assess_legacy_codebase or audit_accessibility. The purpose implies it's for component library analysis, but context for prerequisites or exclusions is missing.

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/Forge-Space/ui-mcp'

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