Skip to main content
Glama

apply_solid_principles

Refactor code to follow SOLID principles

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "filePath": "<filePath>"
    },
    "name": "apply_solid_principles"
  }
}

Input Schema

NameRequiredDescriptionDefault
filePathYes
principlesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. First observed

TDQS

C2.4/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, and it discloses almost nothing. "Refactor" implies in-place source modification with destructive potential, yet the description never states whether files are overwritten, whether a diff or backup is returned, whether changes are reversible, or what permissions are needed.

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

Conciseness3/5

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

A single seven-word sentence with no padding or filler, and the intent is front-loaded. Its brevity is also its weakness: there is not enough content for the sentence to earn its place as the tool's only documentation.

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 code-mutating tool with zero annotations, no output schema, and two undocumented parameters, the definition is materially incomplete. An agent cannot predict the result of calling it, which principles are applied by default, or how the modified code is delivered back.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so both parameters are undocumented. The description says nothing about the required filePath or, more importantly, about the principles array — notably whether omitting it means "apply all five" or something else, and whether the enum values map to specific transformation behaviors.

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?

"Refactor code to follow SOLID principles" names a verb (refactor) and a target (code) plus the governing doctrine (SOLID), so the general intent is legible. However, it does not say what the refactoring produces or how it differs from the sibling apply_design_pattern, leaving the agent to guess at scope.

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 when-to-use, when-not-to-use, or prerequisite information. The agent is not told whether this should be applied to whole files, single classes, or after design patterns have been applied, nor what to do when the code already satisfies SOLID.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.