Skip to main content
Glama
JSungMin

vs-token-safer

rename

Update a symbol's identifier across the entire project using language-server references. Preview changes as file:line list, then apply edits to disk.

Instructions

Semantically rename the symbol at a 0-based position across the whole project (language-server rename — updates every reference, never a text sed). Default is a PREVIEW returning the affected file:line list; pass apply=true to write the edits to disk. Use this instead of editing call sites by hand.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesSource file containing the symbol.
lineYes0-based line of the symbol.
characterYes0-based character/column of the symbol.
newNameYesNew name for the symbol.
applyNoWrite the edits to disk (default false = preview only).
projectPathNo
backendNo
maxResultsNo
Behavior4/5

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

With no annotations, description discloses it's a language-server rename updating all references, default preview returning file:line list, and apply=true writes to disk. This covers key behavioral aspects, though it omits details like required permissions or rate limits, which are less critical for a rename tool.

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 sentences, each packing essential information: first explains semantic nature and method, second covers default behavior, apply toggle, and usage recommendation. No redundant words.

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 complex tool (project-wide rename with preview/write), the description covers semantic behavior, default mode, how to apply, and returns. It also distinguishes from text sed. Without output schema, it mentions return format (file:line list). No annotations, but description alone is sufficient for an agent to use correctly.

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?

The description adds value beyond the schema by clarifying the 'apply' parameter's default (false = preview) and its effect. Schema covers the 4 required params (path, line, character, newName) with descriptions, but 3 optional params (projectPath, backend, maxResults) have no descriptions in either schema or description. Overall, the key parameters are well-addressed.

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?

Description clearly states the tool semantically renames a symbol across the whole project using language-server logic, contrasting with a text sed replacement. It specifies verb (rename), resource (symbol), and 0-based position, distinguishing it from siblings like replace_symbol_body.

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?

Explicitly advises 'Use this instead of editing call sites by hand,' giving a clear usage context. Explains default preview behavior and option to apply edits, but does not explicitly mention when not to use it (e.g., for non-semantic text replacement), though the contrast is implied.

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/JSungMin/vs-token-safer'

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