Skip to main content
Glama
JSungMin

vs-token-safer

insert_before_symbol

Insert text on a line before a named declaration, such as adding an import or decorator. Preview by default; set apply=true to write changes.

Instructions

Insert text on a line BEFORE a named declaration (e.g. add an import/attribute/decorator above it). The outline supplies the insertion point. Default PREVIEW; apply=true writes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYesDeclaration to insert before.
textYesText inserted on a line before the declaration.
pathNoFile holding the symbol (else resolved via the index).
lineNo0-based line to disambiguate same-named symbols (optional).
applyNoWrite to disk (default false = preview only).
projectPathNo
backendNo
maxResultsNo
Behavior2/5

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

No annotations are provided, so the description must cover behavioral details. It mentions using the outline for insertion points and default preview, but lacks detail on error conditions, side effects, or confirmation mechanisms for writes. The behavior is only partially disclosed.

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 extremely concise, with two sentences covering the core functionality and default behavior. No extraneous information is present.

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

Completeness2/5

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

Given the tool modifies files (write capability), has 8 parameters (3 undocumented), and lacks an output schema, the description is too minimal. It does not explain preview mechanics, error scenarios, or how the outline supplies insertion points. More detail is needed for safe and accurate invocation.

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 63%, with descriptions for symbol, text, path, line, and apply. The tool description does not add any additional meaning or constraints beyond what is in the schema, so it meets the baseline without compensating for the undocumented 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 clearly states the tool inserts text before a named declaration, with examples like imports or decorators. It distinguishes from the sibling 'insert_after_symbol' by specifying 'BEFORE' and providing typical use cases.

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

Usage Guidelines3/5

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

The description mentions default preview and apply=true for writes, implying when to use each mode. However, it does not explicitly contrast with alternatives like 'insert_after_symbol' or provide conditions for when not to use this tool.

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