Skip to main content
Glama
Mile-Host

MileHost MCP Server

Official
by Mile-Host

create_file

Create source code and configuration files directly inside a MileHost remote container by providing a file path and content, eliminating manual uploads.

Instructions

Creates a new file with content inside the user remote container folder on MileHost. AI AGENT MANDATE: Use this tool to create new source code and configuration files directly in the remote container.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
api_keyNoOptional MileHost agent API key (mhk_...)
api_urlNoOptional base URL of MileHost API
contentYesComplete text or code content to write to the remote file
file_pathYesRelative path of the file to create inside the remote container (e.g. bot.py, .env)
folder_idNoTarget server or container ID (optional if user has a single server)

Schema Changelog

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

  1. First observedv1.0.0

TDQS

B3.4/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 discloses the high-level side effect (creating a new file) and the remote-container location, but it does not state whether an existing file is overwritten, whether parent directories are created, whether a MileHost connection must be established first, or what error behavior to expect. This is a meaningful gap 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.

Conciseness4/5

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

The description is compact and front-loaded with the core action. The 'AI AGENT MANDATE' phrasing is somewhat redundant and noisy, but the overall length is appropriate and every substantive detail is present.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Adequate for a simple file-creation tool: the schema covers parameters and the description covers the target location and typical use. However, it leaves gaps around overwrite/error semantics, connection prerequisites, and how it relates to overlapping sibling tools like write-to-file or create-file.

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 the schema already documents all five parameters including file_path, content, and optional folder_id/api fields. The description only adds the use context 'source code and configuration files' and does not provide additional parameter-level meaning 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?

Clearly states it creates a new file with content in a specific location (the user remote container folder on MileHost) and reinforces that it is for source code and configuration files. It is not a tautology and is distinguishable from read/run/delete siblings, though it does not explicitly differentiate from the near-duplicate write-to-file/create-file siblings.

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?

Provides clear usage context: use this tool when creating new source code and configuration files directly in the remote container. It does not name alternatives or state when not to use it, so it misses the explicit when-not/alternative guidance required for a 5.

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/Mile-Host/MileHost-MCP'

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