Skip to main content
Glama

complexity_suggest_simplifications

Suggest specific refactoring strategies to reduce code complexity in a file or function.

Instructions

Suggest specific refactoring strategies to reduce complexity

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
api_keyNo
file_pathYesFile with complex code to simplify
function_nameNoSpecific function to simplify
Behavior3/5

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

With no annotations, the description carries the behavioral burden; 'suggest' signals that the tool returns recommendations rather than applying edits, which is useful context. However, it does not disclose whether file contents are sent externally (api_key exists), what the output format is, or whether prior analysis is required.

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?

Single sentence, front-loaded with the action, and no filler words. It is efficiently terse, though it misses the opportunity to include targeted usage context.

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?

For a tool with no output schema, no annotations, and three parameters, the description is too skeletal. It does not state return format, the relationship to complexity_analyze/complexity_report, or how to choose between file-level and function-level analysis.

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 descriptions already cover file_path and function_name, and the description adds no specific parameter semantics beyond the general goal. The api_key parameter is undocumented in both schema and description, but the remaining two parameters are already clear.

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 verb 'suggest' plus object 'specific refactoring strategies' and goal 'reduce complexity' clearly identifies an advisory refactoring tool. It is distinguishable from complexity_analyze and complexity_report, but does not differentiate itself from similar sibling tools like smell_refactor_plan.

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 when-to-use or alternative guidance is provided. The description does not say to run it after complexity_analyze, nor when this tool is preferable to smell_refactor_plan or other refactoring-suggestion tools.

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/barnburner121/claude-plugin-marketplace'

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