Skip to main content
Glama

create_file

Specify a file path and content to create a new file in the VSCode workspace.

Instructions

Create a new file with content

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesPath for the new file
contentYesFile content

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.1.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It only states the core action and does not disclose whether the tool overwrites existing files, creates parent directories, requires any permissions, or fails under certain conditions. For a mutation tool, this leaves important behavioral ambiguity.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single concise sentence with no filler. It is front-loaded with the action and object. It could perhaps add a brief behavioral note, but as a concise statement it is efficient and easy to parse.

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?

The tool is simple and the schema covers both parameters, but with no annotations and no output schema, the description should at least clarify overwrite behavior, parent directory creation, or failure modes. These gaps matter for an agent choosing and invoking a file-creation tool 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?

Schema description coverage is 100%: both path and content are documented in the schema. The description adds no additional meaning beyond 'with content', so it does not improve on the schema, but it also does not need to. Baseline 3 is appropriate.

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 a specific verb ('Create'), a clear resource ('a new file'), and states the primary purpose ('with content'). It distinguishes clearly from sibling tools like open_file, run_terminal_command, and search_workspace, none of which are about creating files.

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 wording implies this tool should be used for creating new files, and the sibling names make the contrast obvious. However, it does not explicitly state when to use this tool instead of open_file, nor does it mention what happens if the file already exists or whether it should be preferred over other write paths.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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/eyalev/vscode-self-mcp'

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