Skip to main content
Glama

suggest_improvements

Read-onlyIdempotent

Analyze code to suggest targeted improvements for performance, readability, maintainability, accessibility, or type-safety based on specified priority levels.

Instructions

개선|더 좋게|리팩토링|improve|make better|refactor|optimize|enhance code - Suggest improvements

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesCode to analyze
focusNoFocus area
priorityNoPriority level
Behavior4/5

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

Annotations already provide readOnlyHint=true, destructiveHint=false, idempotentHint=true, and openWorldHint=false, covering safety and idempotency. The description adds no behavioral context beyond what annotations declare, but doesn't contradict them. It mentions 'suggest improvements' which aligns with read-only analysis, so no contradiction exists.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single run-on phrase listing synonyms without proper structure or front-loading of key information. It wastes space on redundant terms ('improve|make better|refactor|optimize|enhance code') rather than providing a clear, concise purpose statement. Every word doesn't earn its place.

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 annotations cover safety and idempotency, and schema fully describes parameters, the description is minimally adequate. However, it lacks output information (no output schema provided) and doesn't explain what the improvements entail or how results are presented. For a code analysis tool with siblings, more context on differentiation would be beneficial.

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%, with clear descriptions for all parameters and enums. The description adds no parameter-specific information beyond what the schema provides, such as examples or usage tips. With high schema coverage, the baseline score of 3 is appropriate as the schema carries the semantic burden.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description lists synonyms for 'improve' but lacks a specific verb-resource combination. It states 'Suggest improvements' which is tautological with the tool name, and doesn't clearly differentiate what type of improvements (code improvements) or how it differs from siblings like 'validate_code_quality' or 'apply_quality_rules'.

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?

No explicit guidance on when to use this tool versus alternatives. The description provides no context about appropriate scenarios, prerequisites, or comparisons to sibling tools like 'analyze_complexity' or 'apply_quality_rules'. Usage is implied through parameter enums but not explained.

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/su-record/hi-ai'

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