Skip to main content
Glama
chaworld

vscode-mcp-server

by chaworld

create_file

Creates a new file at a specified path with provided content, preventing accidental overwrites by failing if the file already exists.

Instructions

Creates a new file with the given content. Fails if the file already exists.

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 must disclose behavior on its own. It discloses the primary side effect (file creation) and a key edge case (fails if exists), but omits other behavioral traits such as whether parent directories are created, permission requirements, or error handling on partial writes.

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 with no filler or repetition. The action verb is front-loaded, and every word 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?

For a simple two-parameter file creation tool with an output schema, the description covers the core purpose and a key failure mode. It is slightly incomplete regarding directory creation or permissions, but these are not critical for basic file creation and the output schema likely covers return values.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema description coverage is 0%, so the description must compensate for parameter meaning. It only indirectly references 'content' and does not explain 'path' format or any constraints. Though parameter names are self-explanatory, the description adds minimal semantic value beyond the 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 uses the specific verb 'Creates' and names the resource ('a new file') with content. It clearly distinguishes itself from the sibling tool 'overwrite_file' by stating it fails if the file already exists, making the purpose unmistakable.

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 failure condition ('Fails if the file already exists') provides implicit guidance to use this tool only for new files and to consider the sibling tool for overwriting. However, it does not explicitly name 'overwrite_file' as an alternative, so it lacks a fully explicit when-not-to-use statement.

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