Skip to main content
Glama

ReSharper Cleanup Code

resharper_cleanup
DestructiveIdempotent

Run ReSharper code cleanup to reformat and normalize specified files in place, applying the solution's cleanup profile.

Instructions

Run ReSharper code cleanup to reformat and normalize files in place.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filesYesFile paths to clean up. Each is relative to the solution root, or absolute. jb matches them against the files that belong to a project in the solution, so one that is on disk but in no project matches nothing. Wildcards are allowed and expanded by jb; a non-wildcard path that does not exist fails the whole call before anything is rewritten. An element joining several paths with ; or , is split into separate paths.
profileNoReSharper cleanup profile name. Defaults to the profile the solution declares, else full cleanup.
solutionPathNoPath to the .sln/.slnx to run against. Overrides JB_SOLUTION_PATH and working-directory discovery.

Schema Changelog

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

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already carry destructiveHint=true and idempotentHint=true, so the 'in place' phrase in the description confirms the mutating nature rather than introducing new information. The description does not contradict the annotations and adds a small amount of context, but it does not disclose side effects like overwriting formatting or requiring a backup.

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

Conciseness5/5

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

The description is one short, direct sentence that names the action, target, and in-place mutating effect. Every word contributes, with no filler or redundant rephrasing.

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

Completeness4/5

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

The schema handles the complex path-matching and profile-default semantics, and annotations cover the unsafe/idempotent behavior. The only missing piece is a description of return values or post-condition reporting, but no output schema exists and this is not essential for invoking the tool correctly.

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%, and the property descriptions are rich: files explains path matching, wildcards, splitting, and failure behavior, while profile explains defaults. The tool description itself adds no parameter-level detail, so it meets the baseline for an already fully documented schema.

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

Purpose5/5

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

The description pairs a specific verb ('Run') with a specific resource ('ReSharper code cleanup') and states the observable effect ('reformat and normalize files in place'). This clearly distinguishes the tool from siblings: cleanup modifies formatting, whereas resharper_inspect analyzes issues and resharper_reset_cache manages the cache.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description clearly frames the tool as the choice for reformatting and normalizing files in place, which gives an agent usable context for selection. It does not explicitly name alternatives or state when not to use it, but the behavior is distinct enough from the sibling tools that the usage intent is unambiguous.

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/andypgray/resharper-cli-mcp'

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