Skip to main content
Glama
Mile-Host

MileHost MCP Server

Official
by Mile-Host

milehost_run_command

Execute terminal commands directly inside your remote MileHost Docker container to install dependencies, start bots, and manage files—no local scripts required.

Instructions

Executes a terminal or shell command directly inside the remote cloud Docker container on MileHost (e.g. pip install -r requirements.txt, python bot.py, npm start, node index.js, ls -la, ps aux). AI AGENT MANDATE: Do NOT attempt to write or execute local bash or python scripts to manage remote bots. Use this tool exclusively to execute all build, run, dependency installation, and management commands directly within the remote MileHost server container.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
api_keyNoOptional MileHost agent API key (mhk_...)
api_urlNoOptional base URL of MileHost API
commandYesShell or terminal command string to execute inside the remote MileHost container (e.g. pip install -r requirements.txt, python bot.py, npm start)
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 no annotations provided, the description carries the full behavioral burden. It appropriately discloses that commands run inside the remote container rather than locally, which is critical context. However, it does not mention potential destructive effects, output behavior, working directory, command timeouts, or whether the command runs in a non-interactive shell—relevant gaps for a remote command execution tool.

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

Conciseness5/5

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

The description is two sentences, front-loaded with the core purpose and followed by a clear agent mandate. There is no filler or repetition of schema details; every sentence contributes to tool selection and correct usage.

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 command-runner tool and gives a clear mandate plus examples, but it lacks information about return values, execution environment details, and safety considerations for potentially destructive commands. Given the absence of an output schema and annotations, these gaps leave the agent partially underinformed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents all four parameters. The description adds practical value by giving realistic command examples and clarifying that the tool is intended for build, run, dependency installation, and management commands, which helps the agent populate the 'command' parameter correctly.

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 identifies the tool as executing shell or terminal commands directly inside a remote MileHost Docker container, with concrete examples like 'pip install -r requirements.txt' and 'python bot.py'. It is specific about the verb and resource, though it does not explicitly distinguish itself from similarly named siblings like milehost_exec_command or milehost-run-command.

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 description gives strong usage direction: 'Use this tool exclusively to execute all build, run, dependency installation, and management commands directly within the remote MileHost server container.' It also explicitly warns against writing or executing local bash/python scripts to manage remote bots. It does not name specific alternative tools for file transfers or server listing, but the 'when to use' instruction is clear.

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