Skip to main content
Glama
HostMT5 MCP server

HostMT5 MCP server

upload_ea

Uploads an Expert Advisor from your computer—compiled .ex5 or .mq5 source—to an MT5 account, compiling source and returning errors so you can attach it next.

Instructions

Upload an EA from this computer: compiled .ex5, or .mq5 source (compiled on the server; errors come back). Then attach_ea.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "account_id": "<account_id>",
      "file_path": "<file_path>"
    },
    "name": "upload_ea"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_pathYes
account_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It usefully discloses that the file is read from the local machine, that .mq5 is compiled server-side, and that compile errors are returned — meaningful behavior. It omits permission requirements, size limits, overwrite behavior for an existing EA, and whether errors surface as a failed call or a result payload.

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?

Two tight clauses with zero filler; the core action and accepted formats are front-loaded, and the required follow-up call is stated last where it belongs.

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?

With no annotations and no output schema, the definition should say what the call yields — particularly whether an EA identifier is returned for the required attach_ea step, and how server-side compile failures are reported. The upload/attach workflow is clear, but the handoff artifact is not described.

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 0%, so the description must compensate. 'From this computer' resolves the key ambiguity in file_path (local path, not a server-side path) and constrains acceptable file types, which the schema does not. account_id is left unexplained, but its meaning is conventional for this API surface.

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 verb and resource ('Upload an EA'), enumerates the accepted inputs (.ex5 compiled, .mq5 source), and distinguishes itself from the sibling attach_ea by sequencing. An agent can tell exactly what this does without opening the schema.

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 trailing 'Then attach_ea' gives clear ordering guidance: upload first, attach afterwards. It stops short of exclusions or alternatives (e.g., checking list_eas first to avoid duplicates), so it is strong but not exhaustive.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.