Skip to main content
Glama
HostMT5 MCP server

HostMT5 MCP server

price_history

Fetch OHLC bars for a specified symbol and account using a chosen timeframe and count for charting, backtesting, and market analysis.

Instructions

OHLC bars. timeframe: M1 M5 M15 M30 H1 H4 D1 W1 MN1. Each bar has time (unix), open, high, low, close, tick_volume, spread.

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

Input Schema

NameRequiredDescriptionDefault
countNo
symbolYes
timeframeNoH1
account_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/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 burden, and it does disclose the return shape (time in unix seconds plus OHLC, tick_volume, spread), which is valuable since there is no output schema. It does not state whether the call is read-only, how many bars are returned, ordering (newest-first vs oldest-first), or what happens if the symbol is unknown.

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?

Three short, front-loaded sentences with no filler; the bar-field list is dense but each element is informative. The telegraphic style ('OHLC bars.') slightly undercuts readability at no compensating gain in brevity.

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 four-parameter read tool with no annotations and no output schema, the description covers the return payload and the timeframe domain, which are the two biggest unknowns. It leaves count semantics, result ordering, and error behavior unaddressed, so it is adequate but not complete.

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 coverage is 0%, so the description must explain all four parameters. It documents timeframe by listing the nine valid values — a real gain over the bare string field — but says nothing about count (default 200, maximum, direction), symbol, or account_id, all of which are undocumented in both places.

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 names the resource precisely: OHLC bars for a price history, with the bar fields enumerated. A verb is absent and no sibling is contrasted, but the resource ('OHLC bars' vs. trade_history, account_state, etc.) is unambiguous enough that an agent can select it correctly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no mention of when to prefer trade_history or watch_symbol, and no note on prerequisites such as needing a valid account_id or a symbol resolved via find_symbols. The timeframe list is parameter information, not usage guidance.

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