Skip to main content
Glama

review_code

Analyzes React/TypeScript code with parallel AI agents to identify performance issues such as unnecessary re-renders, memoization errors, bundle size, and profiling patterns.

Instructions

Analyze a React/TypeScript code snippet for performance issues using parallel AI agents (re-renders, memoization, bundle size, profiling patterns)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesThe React component code to analyze
filePathNoOptional file path hint for context (used to locate .react-perf.json and package.json)
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose a notable behavioral trait ('using parallel AI agents'), which adds transparency. However, it lacks other behavioral details such as whether it is read-only, how results are returned, or any side effects. The mention of parallel agents is useful but incomplete.

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, efficient sentence that front-loads the core action and then lists specific areas of analysis. There is no redundant or extra information.

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?

The tool has no output schema or annotations, so the description is the main source of context. It covers what the tool does and the primary focus areas, but it does not describe the output format, prerequisites, or limitations. For a simple two-parameter tool, it is adequate but leaves some gaps.

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% for both parameters, so the baseline is 3. The description does not add any additional semantics beyond what the schema already provides for 'code' and 'filePath'. It does not explain how the parameters interact or when to use them.

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 a specific action ('Analyze a React/TypeScript code snippet') and resource (React/TypeScript code), with explicit focus areas (re-renders, memoization, bundle size, profiling patterns). It distinguishes from sibling 'review_file' by targeting snippets rather than files.

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 use case is implied: it's for analyzing code snippets, while 'review_file' presumably handles full files. However, there is no explicit 'when to use' or 'when not to use' guidance, and no alternative is named. The implication is moderate but not explicit.

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/cma0232/react-perf-mcp'

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