Skip to main content
Glama

create_file

Create a new file at a specified path with provided text content, enabling AI assistants to add files during cPanel hosting automation.

Instructions

Create a new file with specified text content

Input Schema

NameRequiredDescriptionDefault
pathYesFull file path including filename
contentYesFile content

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden, and it discloses almost nothing. It does not say whether an existing file is overwritten or the call errors, whether parent directories are auto-created, how text encoding is handled, or what permissions are required for the target path.

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?

One short sentence, front-loaded with the action and free of filler. It is efficient, though the brevity leaves no room for the behavioral details the tool actually needs.

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?

This is a mutation tool on the filesystem with no annotations and no output schema, yet the description never addresses overwrite semantics, failure modes, or path scoping. For a destructive-capable file write, that leaves an agent unable to predict the consequences of the call.

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%, so both parameters are already documented with their meaning (full path including filename, file content). The description's phrase "text content" reinforces that only text, not binary, is accepted, which is a small addition beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb and resource ("Create a new file") and adds the content qualifier ("with specified text content"), so the agent knows exactly what action is performed. It does not distinguish this from siblings like edit_file or upload_file_base64, which also produce file content.

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

Usage Guidelines2/5

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

There is no statement of when to use this versus edit_file, upload_file_base64, or compress/extract helpers. The word "new" hints that this is for creation rather than modification, but nothing explicit identifies preconditions or the alternative to pick for an existing file.

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

Deploy Server

Other Tools