Skip to main content
Glama
Mile-Host

MileHost MCP Server

Official
by Mile-Host

create-file

Create a new file with full content directly in your MileHost remote container, enabling source code and configuration files to be written into the server environment.

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

A3.6/5.0
Behavior3/5

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

With no annotations, the description must carry the full behavioral burden. It does disclose the core behavior: creating a new file with content in the remote container. However, it omits edge-case behavior such as whether an existing file is overwritten, whether parent directories are created, or what error/output the agent should expect.

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 brief and front-loaded with the core action in the first sentence. The 'AI AGENT MANDATE' sentence adds usage context but is somewhat redundant with the first sentence. Overall, it is compact and scannable with minimal waste.

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?

The description is adequate for a simple file-creation tool and the schema covers all parameters. However, the sibling list includes several similar write/create tools, and the description does not clarify the difference. It also lacks any mention of overwrite semantics, path constraints, or expected results, which would help an agent invoke it correctly.

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 parameters including file_path and content. The description adds little parameter-level meaning beyond reinforcing that the file lives in the remote container. A baseline 3 is appropriate when the schema fully covers parameter semantics.

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 clearly states the verb and resource: 'Creates a new file with content inside the user remote container folder on MileHost.' It is specific about creating new files with content and gives an example use case. However, it does not explicitly distinguish itself from the similar siblings write-to-file, write_to_file, and create_file.

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 'AI AGENT MANDATE' provides clear guidance: use this tool to create new source code and configuration files directly in the remote container. This clearly establishes the intended context of use. It does not, however, state when not to use it or name alternatives for editing or updating files.

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