Skip to main content
Glama

review_generated_code

⚠️ MANDATORY — call this on every piece of code you generate before returning it to the user. Validates TSX/JSX against real @marmoui/ui prop signatures and returns { valid, errors[], warnings[], suggestedFixes[], iconLibrary }. Catches: (1) unknown imports, (2) Tabs.List/Tabs.Trigger namespace misuse → auto-suggests TabsList/TabsTrigger fix, (3) PageSection used as wrapper (must be self-closing), (4) hallucinated props, (5) icons imported from the wrong icon library (pass iconLibrary — default "phosphor" — matching what you passed to get_design_guidelines; wrong-library icon imports are ERRORS). If valid=false, fix all errors and call this again. DO NOT return code with errors to the user.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesThe complete TSX/JSX code you just generated. Must import from @marmoui/ui.
contextNoOptional: describe what the code is supposed to do (e.g. "settings page with tabs"). Helps produce more targeted feedback.
iconLibraryNoIcon library the code must import icons from. Default: "phosphor". Pass the SAME value you passed to get_design_guidelines. When set, imports from any other icon library are reported as ERRORS. Supported: phosphor, material, lucide, tabler, heroicons, feather.

Schema Changelog

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

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations, the description fully carries the transparency burden and meets it exceptionally. It discloses the return shape, enumerates five specific error categories, explains the auto-suggest fix for Tabs namespace misuse, and defines that wrong-library icon imports are errors. This is far beyond a typical tool description.

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?

Though long, every sentence is high-signal. The mandatory directive is front-loaded, the numbered catches make complex rules scannable, and the closing prohibitions are unambiguous. No filler or redundancy; the structure earns its length.

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?

With no output schema, the description correctly explains the return object and its fields. It covers the necessary preconditions (complete code, import from @marmoui/ui), the expected parameters, and the iterative workflow. For a tool of this complexity, nothing significant is missing.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3. The description adds meaningful semantics for iconLibrary by linking it to get_design_guidelines and clarifying that mismatched imports are errors. Code and context parameters are adequately described in the schema, so the extra value for iconLibrary pushes this to a 4.

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 states a specific verb and resource: 'Validates TSX/JSX against real @marmoui/ui prop signatures'. It clearly differentiates from siblings by framing itself as a mandatory pre-return step for generated code, not just a general validation tool. The scope and outcome are unmistakable.

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

Usage Guidelines5/5

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

Provides explicit when-to-use guidance: 'MANDATORY — call this on every piece of code you generate before returning it to the user', plus a clear feedback loop ('If valid=false, fix all errors and call this again') and a hard rule ('DO NOT return code with errors'). It also instructs matching iconLibrary with get_design_guidelines, which is actionable usage context.

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.2/5.0
Disambiguation4/5

Most tools have distinct purposes, but review_generated_code and validate_component_usage are very similar in functionality, differentiated only by intended usage context. list_components and search_components also have some overlap, though descriptions clarify their preferred use cases.

Naming Consistency5/5

All tool names follow a consistent verb_noun snake_case pattern (e.g., get_component_info, list_components, review_generated_code). The verbs are clear and the naming convention is uniform throughout.

Tool Count5/5

14 tools is well within the ideal 3-15 range and each tool serves a distinct role in the workflow: discovery, guidance, generation, validation, and prototype sharing. The count feels appropriate for the server's comprehensive purpose.

Completeness4/5

The server covers the full generation workflow: discover components, get guidelines, generate code, validate, and deploy/share. However, there is no tool to retrieve or list saved custom components, and prototype management is limited to deploy and feedback, leaving minor gaps in persisted resource handling.