Skip to main content
Glama
aditya-613

vs-code-mcp-server

by aditya-613

insert_lines_code

Insert lines at a specified line number in a file, adding content exactly where needed without overwriting existing lines.

Instructions

Insert new lines at a specific position in a file

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
lineYesThe line number where to insert (1-based)
pathYesThe path to the file to modify
contentYesThe content to insert
Behavior2/5

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

With no annotations provided, the description carries the full burden. It only states the action without disclosing side effects, prerequisites, edge cases (e.g., out-of-bounds line numbers), or return behavior. This is insufficient for a mutation 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?

The description is a single, focused sentence with no unnecessary words. Every word adds value.

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?

For a mutation tool with no annotations and no output schema, the description lacks critical contextual information such as file existence requirements, behavior on invalid line numbers, and whether changes are reversible. It is not complete enough for an agent to use safely.

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?

The schema already provides full descriptions for all three parameters (100% coverage). The description adds no additional parameter semantics beyond restating the general purpose, so it meets the baseline.

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 uses the specific verb 'Insert' and identifies the resource 'new lines' in a 'file' at a 'specific position'. This clearly distinguishes it from sibling tools like replace_lines_code, append_to_file_code, and prepend_to_file_code.

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 implies usage when inserting lines at a specific position, but does not explicitly state when to use this tool over alternatives like append_to_file_code or replace_lines_code. It provides no exclusions or alternative recommendations.

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/aditya-613/vscode-mcp-server'

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