Skip to main content
Glama

Review UI Code

review-ui-code
Read-onlyIdempotent

Review inline React, CSS, HTML, SVG, or SwiftUI source files with deterministic rules to catch UI code issues without reading server paths or executing submitted code.

Instructions

Review inline React/CSS/HTML/SVG/SwiftUI source. files[].content is required; never reads server paths or executes submitted code.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "files": "<files>"
    },
    "name": "review-ui-code"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYes
contextNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and non-open-world behavior, so the safety profile is covered. The description adds two valuable behavioral facts beyond that: it does not read server filesystem paths and does not execute submitted code, which is meaningful for an agent handling untrusted source. It does not disclose what a review returns or how failures are reported, and there is no output schema to fill that gap.

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?

Two sentences, no filler, with the core action stated first and the key constraint immediately after. Every clause carries information the agent could not get from the schema or annotations.

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?

With no output schema, the description should indicate what a review produces (findings structure, severity, verdict) and it does not. It also omits the purpose of the `context` parameter, leaving one of only two parameters undocumented across both schema and prose. It is complete on safety guarantees but incomplete on inputs and results.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must carry the parameter meaning, and it only partially does. It clarifies that `files[].content` must be supplied inline, but it never mentions the `context` parameter at all and slightly understates the schema by implying content is the only required field when items also require `path` within 1-400 characters.

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?

"Review inline React/CSS/HTML/SVG/SwiftUI source" gives a specific verb and resource, and the supported-language list sharply scopes what kind of input it accepts. It does not name a sibling or contrast with review-dashboard-structure, so an agent still has to infer which review tool to pick, but the tool's own remit is unambiguous.

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?

The clause about `files[].content` being required and the tool never reading server paths or executing submitted code implies the usage mode (inline source, not paths), which is genuinely useful selection guidance. However, there is no explicit when-to-use or when-not-to-use versus the many sibling review/eval tools, so the agent is left to infer the boundary.

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