Skip to main content
Glama
HostMT5 MCP server

HostMT5 MCP server

attach_ea

Attaches an Expert Advisor to its own chart for 24/7 trading, with optional custom inputs, so you can deploy automated strategies on a specified account and symbol.

Instructions

Attach an EA (name as list_eas shows it, e.g. 'Uploaded\MyEA') to its own chart; it trades 24/7 and starts in ~1-2 s. inputs: values that differ from the defaults, e.g. {"Lots": "0.05"} (names from ea_inputs).

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>",
      "name": "<name>",
      "symbol": "<symbol>"
    },
    "name": "attach_ea"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
inputsNo
symbolYes
timeframeNoH1
account_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden, and it does disclose two valuable traits: the EA runs continuously 24/7 and becomes active within roughly 1-2 seconds. It says nothing about whether attaching replaces an existing EA, what errors occur on a bad name or input key, or what account state is required, so key mutation risks remain undisclosed.

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 core action and its runtime behavior are front-loaded in the first sentence, and the second sentence handles parameter sourcing without padding. The telegraphic 'inputs:' fragment is efficient but slightly compressed, and the examples are worth their length.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is an unannotated, no-output-schema mutation tool with three required parameters, yet the description explains only the two optional-ish inputs and omits account_id, symbol, and timeframe semantics. For a tool that starts live trading, that leaves too much unstated for correct invocation.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must explain all five parameters and only covers two: name (with a format example) and inputs (with a JSON example and pointer to ea_inputs). account_id, symbol, and timeframe go entirely unexplained beyond their schema titles, leaving the caller to guess which symbol is bound and how timeframe interacts with the EA.

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 gives a specific verb and resource: attach an EA to its own chart, and clarifies the name format ('Uploaded\MyEA' as list_eas shows it). It cleanly separates itself from list_eas and ea_inputs by assigning those tools the role of sourcing the name and input keys, but it doesn't contrast with upload_ea or remove_ea, which would make it a 5.

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?

It tells the agent the prerequisite sources (name from list_eas, input keys from ea_inputs) and the rule to pass only values that differ from defaults, which is actionable usage context. It lacks any when-not-to-use guidance, such as what to do if an EA is already attached or whether removal must precede re-attaching.

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