Skip to main content
Glama
Mile-Host

MileHost MCP Server

Official
by Mile-Host

write-to-file

Create, write, or update files directly in a remote MileHost container to deploy bot code and configuration files without writing local scripts.

Instructions

Creates, writes, or updates file content directly in the user remote container folder on MileHost (e.g. bot.py, .env, package.json, requirements.txt, config.json). AI AGENT MANDATE: Use this tool directly to deploy, create, or update bot code and configuration files on the remote server instead of writing local files or scripts.

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 write inside the remote container (e.g. bot.py, .env, src/index.js)
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.8/5.0
Behavior3/5

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

With zero annotations, the description carries the full disclosure burden. It correctly reveals the create/write/update semantics and remote location, but does not disclose whether existing file contents are overwritten without confirmation, whether missing directories are created automatically, or what happens on failure. For a mutation tool that can clobber live .env or config content, this is a notable gap.

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?

Two sentences with action and examples front-loaded and no filler. The mandate sentence earns its place by conveying usage priority. The only minor cost is the 'AI AGENT MANDATE' framing, which is slightly pushy but still compact.

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?

Given 5 parameters, no annotations, and no output schema, the description covers the core purpose and agent usage well but leaves gaps: no response/return information, no overwrite or path-creation behavior, and no differentiation from overlapping siblings (write_to_file, create_file, milehost_deploy_file). Adequate but not complete.

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% — all five parameters (api_key, api_url, content, file_path, folder_id) already have meaningful schema descriptions. The description's file-type examples slightly reinforce file_path semantics but add no new parameter-level meaning, so the baseline of 3 applies.

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?

States a specific action set — 'Creates, writes, or updates file content' — with an explicit target location ('user remote container folder on MileHost') and concrete file examples (bot.py, .env, package.json, requirements.txt, config.json). The action and resource are unambiguous and clearly distinct from sibling read/run/delete/reboot tools.

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' sentence gives explicit direction: use this tool directly for deploying/creating/updating bot code and configuration files 'instead of writing local files or scripts.' This states the primary use case and an exclusion condition, though it never names which overlapping siblings (milehost_deploy_file, create_file) to prefer for related but different tasks.

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