Skip to main content
Glama

ReSharper Reset Cache

resharper_reset_cache
DestructiveIdempotent

Deletes a solution's ReSharper analysis cache so the next inspection rebuilds from cold to fix stale-index compilation errors after a successful build. Build first; it costs a full cold analysis.

Instructions

Delete this solution's ReSharper analysis cache so the next inspect or cleanup rebuilds it from cold. The cure for inspect reporting compilation errors a successful build does not: a stale index serves those until the cache is dropped, unless jb predates the project's C# version, which only a jb update cures. Build first, because on a checkout that was never built or restored the errors are real and a reset only adds a cold analysis to the build it still needs. Costs the next call a full cold analysis, so it is not routine maintenance. A deleted checkout's cache outlives it: pass its old solution path as solutionPath to reclaim it.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "resharper_reset_cache"
  }
}

Input Schema

NameRequiredDescriptionDefault
solutionPathNoPath to the .sln, .slnx or .slnf to run against. Overrides JB_SOLUTION_PATH and working-directory discovery.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.8.0
    • changedInput schema / properties / solutionPath / description
      Previous value: -"Path to the .sln/.slnx to run against. Overrides JB_SOLUTION_PATH and working-directory discovery."New value: +"Path to the .sln, .slnx or .slnf to run against. Overrides JB_SOLUTION_PATH and working-directory discovery."
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare destructive=true and idempotent=true, but the description adds genuinely non-redundant behavior: the next inspect or cleanup pays a full cold analysis, the cache outlives a deleted checkout, and a version mismatch makes reset ineffective. These are operational consequences an agent could not infer from the annotations.

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?

Front-loaded with the action and justified by real content, but the dense subordinate clauses ('The cure for inspect reporting compilation errors a successful build does not') require re-reading. Every sentence earns its place semantically, yet the phrasing is more tangled than it needs to be.

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

Completeness5/5

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

For a single-parameter deletion tool with no output, the description covers trigger, prerequisites, consequence, failure mode and an edge-case recovery path. Nothing an agent needs before calling it is missing.

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

Parameters4/5

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

Schema coverage is 100% and the single parameter is already documented as overriding JB_SOLUTION_PATH and working-directory discovery. The description adds real meaning beyond the schema by naming a non-obvious use: passing a deleted checkout's old solution path to reclaim its orphaned cache.

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?

States a specific verb and resource — 'Delete this solution's ReSharper analysis cache' — and immediately ties it to the siblings resharper_inspect and resharper_cleanup rebuilding from cold. An agent can distinguish this from read-only inspection tools without opening any schema.

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?

Gives a precise when-to-use trigger (inspect reporting compilation errors that a successful build does not) and a prerequisite (build first), plus an explicit when-not (not routine maintenance) and an alternative cure (a jb update when jb predates the project's C# version). It stops short of a full decision tree against sibling tools, so a 4 rather than 5.

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