Skip to main content
Glama
chaworld

vscode-mcp-server

by chaworld

overwrite_file

Overwrite an existing file or create a new file by specifying its path and content.

Instructions

Overwrites an existing file or creates a new one with the given content.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
contentYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It explicitly states that the tool overwrites existing content, which is critical destructive behavior. However, it does not mention other important traits such as whether it creates parent directories, preserves permissions, or handles errors, making it minimally transparent but not richly detailed.

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, concise sentence that is front-loaded with the main action. It contains no wasted words and effectively communicates the tool's purpose and basic behavior.

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?

The tool is simple with two string parameters and an output schema, so the description does not need to explain return values. It covers the core behavior (overwrite or create) sufficiently. However, it could be more complete by mentioning the distinction from create_file or potential error conditions, but for a tool of this simplicity it is adequate.

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 has 0% description coverage, so the description must compensate for parameter meaning. The description mentions 'given content' which clearly maps to the 'content' parameter, and 'existing file' implies the 'path' parameter. However, it does not elaborate on path format, encoding, or any constraints, providing only basic clarity beyond the raw schema.

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's action with a specific verb ('overwrites') and resource ('file'), and also indicates it can create a new file. This distinguishes it from sibling tools like create_file because it explicitly covers both overwriting existing files and creating new ones.

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 provides clear context on when to use the tool: when you need to overwrite an existing file or create a new one. However, it does not explicitly mention alternatives or when not to use it (e.g., when you want to create a file without risking overwriting an existing one, use create_file instead). This lacks explicit exclusion guidance.

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

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