Skip to main content
Glama
Atomic-Germ

Optimist MCP Server

by Atomic-Germ

suggest_refactoring

Analyze your codebase to identify refactoring opportunities. Get prioritized AI suggestions focused on performance, maintainability, or readability to improve code quality.

Instructions

Provide AI-powered refactoring recommendations

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesDirectory or file path to analyze
focusAreaNoFocus area for refactoring suggestionsall
maxResultsNoMaximum number of suggestions to return
minPriorityNoMinimum priority level for suggestions (filters out lower priority items)low
excludeTypesNoTypes of refactoring suggestions to exclude (e.g., ["LONG_FUNCTION", "COMPLEX_CONDITION"])

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

C2.9/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 for behavioral disclosure. It implies a read-only analysis by saying 'provide recommendations,' but it does not explicitly state that the tool does not modify files, how results are returned, or any requirements or side effects. This is a significant gap for a tool whose behavior is otherwise opaque.

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?

The description is a single short sentence and is easy to scan. 'AI-powered' is filler that doesn't add operational value, but otherwise the text is free of redundancy. It is concise but so terse that it sacrifices useful detail.

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?

The tool has five parameters, no output schema, and no annotations, so the description should explain return values, side effects, and how parameters influence results. It only states that it provides refactoring recommendations, leaving an agent without enough context to confidently invoke it. Sibling tools are not referenced to help disambiguate.

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 detailed descriptions for all five parameters including enums, defaults, and constraints. The tool description adds no additional parameter meaning beyond what the schema already provides. Baseline 3 is appropriate because the schema carries the documentation burden.

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 ('provide') and a clear resource ('refactoring recommendations'), which indicates the tool suggests code improvements. It is distinct from siblings like analyze_performance or detect_code_smells, though the distinction is not explicitly stated. 'AI-powered' is unnecessary but doesn't obscure the purpose.

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?

The description gives no guidance on when to use this tool versus sibling tools such as detect_code_smells or analyze_performance. It also doesn't mention the focusArea or excludeTypes parameters that could help an agent tailor the call. An agent must infer usage solely from the tool name and schema.

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

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/Atomic-Germ/mcp-optimist'

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