Skip to main content
Glama

suggest_improvements

Analyzes code and returns actionable recommendations to boost readability, maintainability, and performance, with optional focus areas for targeted review.

Instructions

Code Reviewer suggests improvements for readability, maintainability, and performance

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesThe code to review for improvements (min 10 characters)
focus_areasNoSpecific areas to focus on (e.g., 'performance, readability')
performance_criticalNoWhether performance is critical for this code

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It implies a read-only suggestion operation but does not state whether it modifies code, requires permissions, has rate limits, or what the output looks like.

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, front-loaded sentence with no wasted words. It efficiently communicates the core purpose without unnecessary elaboration.

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?

Given the low complexity (3 parameters, full schema coverage, no output schema), the description is minimally adequate. However, it omits important context such as how this tool relates to 'review_code' and what the agent should expect as a result, leaving gaps for proper tool selection.

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 the input schema already documents all three parameters thoroughly. The description only echoes the focus areas (readability, maintainability, performance) without adding syntax or format details beyond what the schema provides, making the baseline 3 appropriate.

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?

The description states a specific verb ('suggests improvements') and target areas (readability, maintainability, performance), making the tool's function clear. However, it does not distinguish this tool from the sibling 'review_code', leaving ambiguity about how the two differ.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus alternatives such as 'review_code' or 'analyze_codebase'. The description provides no prerequisites, exclusions, or context for selection.

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