Skip to main content
Glama

roslyn:rename_symbol

Rename a symbol across the entire solution using Roslyn semantic analysis. Preview changes before applying to ensure all references are updated.

Instructions

Safely rename a symbol (type, method, property, etc.) across the entire solution. Uses Roslyn's semantic analysis to ensure all references are updated. SUPPORTS PREVIEW MODE - always preview first! IMPORTANT: Uses ZERO-BASED coordinates. Default shows first 20 files with summary verbosity.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filePathYesAbsolute path to source file containing the symbol
lineYesZero-based line number (editor line - 1)
columnYesZero-based column number (editor column - 1)
newNameYesNew name for the symbol
previewNoPreview changes without applying (default: true). ALWAYS preview first!
maxFilesNoMax files to show in preview (default: 20, prevents large outputs)
verbosityNoOutput detail level: 'summary' (default, file paths + counts only ~200 tokens/file), 'compact' (add locations ~500 tokens/file), 'full' (include old/new text ~3000+ tokens/file)
Behavior4/5

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

With no annotations, the description covers safety (semantic analysis), preview mode, coordinate system, and output defaults. It discloses behavioral traits like always previewing and zero-based inputs. Could mention limitations (e.g., cross-assembly renaming constraints) but is reasonably transparent.

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?

Description is concise and well-structured: first sentence states core purpose, then preview mode warning, coordinate system explanation, and default values. No redundant or irrelevant information.

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?

Given the tool's complexity (renaming across solution, 7 parameters, no output schema), the description explains the process and parameter usage effectively. It mentions preview output shows files with summary verbosity but doesn't detail the return structure or potential failure modes (e.g., ambiguous symbol). Still fairly complete.

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%, but the description adds significant value: explains importance of preview, zero-based coordinates, default maxFiles (20), and verbosity options with token counts. This goes beyond the schema descriptions.

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 clearly states the verb (rename), resource (symbol), scope (entire solution), and method (semantic analysis). It distinguishes from sibling tools like change_signature or extract_method by specifying it renames symbols safely across the solution.

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?

Provides explicit usage tips: 'always preview first!' and 'Uses ZERO-BASED coordinates'. Also explains defaults for maxFiles and verbosity. However, it does not explicitly state when not to use this tool (e.g., for simple text replacements) or compare to alternatives.

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/pzalutski-pixel/sharplens-mcp'

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