Skip to main content
Glama
rodhayl
by rodhayl

suggest_refactoring

Analyze code files to propose refactoring options with tradeoffs and safer alternatives for improved code quality and maintainability.

Instructions

Suggest refactors with tradeoffs and safer alternatives.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesFile to analyze for refactoring
Behavior3/5

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

With no annotations provided, the description carries the full burden. It implies a read-only, analytical behavior ('suggest' rather than apply, plus 'tradeoffs'), but lacks explicit safety disclosure, output format details, or side effect warnings that would help an agent understand execution impact.

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?

Extremely concise at 6 words, front-loaded with the action verb. While efficient, the brevity is arguably excessive given the crowded tool ecosystem with many similar refactoring-related siblings.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the high complexity (many similar siblings like 'refactor_helper', 'suggest_edit', 'find_and_fix'), lack of annotations, and absence of an output schema, the 6-word description is insufficient to help an agent confidently select this tool over alternatives.

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?

With 100% schema coverage ('path' is fully described as 'File to analyze for refactoring'), the baseline score is 3. The description adds no parameter-specific semantics, but none are required given the complete schema documentation.

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 uses a specific verb ('Suggest') and resource ('refactors'), and adds distinguishing detail by mentioning 'tradeoffs and safer alternatives' which implies an analytical comparison function. However, it does not explicitly differentiate from similar siblings like 'refactor_helper' or 'suggest_edit'.

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 like 'refactor_helper', 'suggest_edit', or 'find_and_fix'. The phrase 'tradeoffs and safer alternatives' hints at analysis vs. application, but lacks clear when/when-not conditions.

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/rodhayl/mcpLocalHelper'

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