Skip to main content
Glama

roslyn:change_signature

Modify method signatures by adding, removing, renaming, or reordering parameters with preview capability to assess impact across all call sites before applying changes.

Instructions

Change a method signature and preview impact on all call sites.

ACTIONS: add (new param), remove, rename, reorder parameters. WORKFLOW: (1) Call with preview=true (default) to see affected call sites, (2) Review changes, (3) Call with preview=false to apply. OUTPUT: oldSignature, newSignature, list of call sites needing updates. IMPORTANT: Uses ZERO-BASED coordinates (editor line - 1).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filePathYesAbsolute path to source file containing the method
lineYesZero-based line number on the method
columnYesZero-based column number
changesYesArray of changes to apply
previewNoPreview mode (default: true). Set to false to apply changes.
Behavior4/5

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

With no annotations provided, the description carries full burden and does well. It discloses the preview/apply workflow, zero-based coordinate system, and output format (oldSignature, newSignature, call sites). It doesn't mention error conditions or performance characteristics, but covers core behavioral aspects thoroughly.

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 efficiently structured with clear sections (ACTIONS, WORKFLOW, OUTPUT, IMPORTANT). Every sentence earns its place by providing essential information without redundancy. The information is front-loaded with the core purpose in the first sentence.

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?

For a complex refactoring tool with 5 parameters and no output schema, the description provides substantial context about workflow, coordinate system, and output format. It could potentially mention error handling or limitations, but covers the essential usage pattern comprehensively given the tool's complexity.

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%, so the schema already documents all parameters. The description adds context about zero-based coordinates and the preview parameter's role in the workflow, but doesn't provide additional semantic details beyond what the schema already specifies for individual parameters.

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 starts with a clear verb ('Change') and resource ('method signature'), then specifies the scope ('preview impact on all call sites'). It distinguishes from siblings like 'rename_symbol' by focusing specifically on method signature modifications rather than general symbol renaming.

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

Usage Guidelines5/5

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

The description explicitly outlines a three-step workflow with clear guidance: first call with preview=true (default), review changes, then call with preview=false to apply. It also lists specific actions (add, remove, rename, reorder parameters) that define when this tool is appropriate.

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