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.

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full burden. It reveals the return structure ({ valid, errors[], warnings[], suggestedFixes[], iconLibrary }), enumerates five specific error classes, and states that wrong-library icon imports are errors. It also discloses the default iconLibrary and the auto-suggest behavior. This is comprehensive and leaves no safety ambiguity.

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?

The description is long but information-dense, using emoji, bold, and a numbered list to guide reading. Every sentence contributes operational insight; there is no filler. It could be slightly trimmed, but the complexity justifies the 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?

Without an output schema, the description compensates by specifying the exact return shape and error categories. It also covers prerequisites (must import from @marmoui/ui), parameter intent, and the conditional loop for calling again. This is a self-contained contract that enables an agent to use the tool correctly and interpret results.

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 coverage is 100%, with all three parameters already well-described in the schema. The description largely restates what the schema says (e.g., iconLibrary default and matching get_design_guidelines), adding no new parameter-level meaning. The baseline of 3 applies because the schema does the heavy lifting; the description's value lies in behavioral context, not parameter semantics.

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: it validates TSX/JSX code against @marmoui/ui prop signatures and returns structured feedback. It distinguishes itself from siblings like generate_component (which creates code) and validate_component_usage by being the mandatory post-generation check, with specific error categories. The verb 'validates' and resource '@marmoui/ui' make the purpose explicit.

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?

Usage is explicitly prescribed: 'MANDATORY — call this on every piece of code you generate before returning it to the user.' It also provides a clear workflow: fix errors and call again if valid=false, and instructs not to return code with errors. This is stronger than generic guidance, covering when to use the tool and the expected loop.

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 there is some overlap between review_generated_code and validate_component_usage, and between list_components and search_components. However, descriptions clearly differentiate their intended use cases, reducing ambiguity.

Naming Consistency5/5

All tools follow a consistent verb_noun pattern with snake_case (e.g., get_component_info, generate_component, review_generated_code). The naming is predictable and clearly indicates the action.

Tool Count5/5

14 tools is well-scoped for a UI design system assistant. It covers component discovery, detailed info, design guidelines, theme, code generation and validation, and prototype management without being overwhelming.

Completeness5/5

The tool set covers the full workflow: discover components, get patterns, get design guidelines, generate and validate code, get tenant theme, deploy prototypes and collect feedback. No obvious gaps for the intended usage scenario.

Resources