Skip to main content
Glama
achatainga

mcp-code-context

by achatainga

rename_symbol

Rename a symbol across your repository with a safe two-phase process: preview changes as a diff, then confirm with a token to apply.

Instructions

Rename a symbol across the entire repository. Phase 1: returns diff + token. Phase 2: confirm with token to apply.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filePathYesFile where symbol is defined
projectRootYesProject root (REQUIRED)
oldNameYesCurrent name
newNameYesNew name
rootDirNoRepository root (optional)
confirmNoSet true to apply a pending operation
confirmationTokenNoToken from Phase 1 dry-run
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses the two-phase destructive behavior and the need for a confirmation token, which is critical for an AI agent to understand the operation's impact.

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?

Two concise sentences, front-loaded with purpose. No wasted words; every sentence contributes meaning.

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 7 parameters, no output schema, and no annotations, the description adequately covers the two-phase workflow and key parameters. However, it could detail the return format or safety considerations.

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 value by explaining the phased context for 'confirm' and 'confirmationToken' parameters, going beyond the schema's basic 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' and the resource 'symbol across the entire repository,' effectively distinguishing it from sibling tools like insert_symbol or remove_symbol.

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 explains the two-phase process (dry-run then confirm), providing clear usage context, though it does not explicitly mention when not to use the tool or suggest 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/achatainga/mcp-code-context'

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