Skip to main content
Glama
Mile-Host

MileHost MCP Server

Official
by Mile-Host

milehost_get_file

Read the complete content of any file in your MileHost remote container to inspect code, logs, and configuration files.

Instructions

Reads the complete content of a file inside the user remote container on MileHost. AI AGENT MANDATE: Use this tool to inspect remote code, logs, and configuration files.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
api_keyNoOptional MileHost agent API key (mhk_...)
api_urlNoOptional base URL of MileHost API
file_pathYesRelative path of the file to read inside the remote container
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 carries the behavioral burden. It does disclose the read-only nature and that the complete file content is returned, which is useful. However, it does not mention potential edge cases, output format, authentication requirements, or failure behavior, leaving the agent to infer those from the schema and tool name.

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 short and front-loaded: the first sentence states the operation and scope, and the second gives a practical usage mandate. The 'AI AGENT MANDATE' phrasing is slightly redundant but not wasteful.

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?

For a simple read-file tool, the description is mostly adequate, especially with 100% schema coverage. However, the lack of output schema means the description should clarify what the agent can expect in the response beyond 'complete content', and the presence of near-identical sibling 'milehost_read_file' creates ambiguity that is not addressed.

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 fully documents all four parameters. The description adds little beyond the broad notion of reading a file inside the remote container; it does not clarify the exact role of file_path, api_key, api_url, or folder_id beyond what the schema already states.

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 states a specific verb ('Reads'), a concrete resource ('complete content of a file'), and the location ('user remote container on MileHost'), making the core purpose clear. It loses the fifth point because the sibling tool 'milehost_read_file' appears to serve the same purpose and no differentiation is provided.

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' line gives explicit context: use this tool to inspect remote code, logs, and configuration files. This is clear usage guidance, though it lacks explicit exclusions or pointers to alternative tools such as milehost_run_command or milehost_list_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