Skip to main content
Glama

FiveSocket MT5 MCP Server

Get broker candles

get_candles
Read-onlyIdempotent

Read completed OHLC candles from the connected MT5 terminal for an exact symbol. Supply count or a from/to range. Rows are oldest first; paginate backward by keeping from and replacing to with nextTo. No indicators or external price feed are used.

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": {
      "accountId": "<accountId>",
      "query": "<query>"
    },
    "name": "get_candles"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes
accountIdYes

Output Schema

NameRequiredDescriptionDefault
dataYes
loginYes
nextToYes
serverYes
symbolYes
accountIdYes
latencyMsYes
timeframeYes
observedAtYes
serverClockOffsetSecondsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, open-world, so the safety bar is low; the description still adds genuinely new behavior: row ordering ('oldest first'), a pagination contract, and data provenance ('no indicators or external price feed'). It omits rate limits and whether partial/unclosed ranges error out, keeping it below top marks.

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?

Four short sentences, front-loaded with the core read operation, then ordering, then pagination mechanics, then a provenance caveat. No repetition of schema or annotation content and nothing wasted.

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

Completeness4/5

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

An output schema exists, so return shape need not be restated, and the description usefully ties into it by referencing nextTo. For a two-parameter nested query against a live terminal, the remaining gaps (limit vs count, accountId role) are minor but real.

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 0%, so the burden is on the description, and it compensates only partially: it clarifies the count-vs-from/to choice and the meaning of `to` in pagination via nextTo. It says nothing about `limit` versus `count`, the timeframe enum semantics, or what accountId identifies, leaving half the parameters unexplained.

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 ('Read completed OHLC candles') plus the data source ('connected MT5 terminal') and the scoping constraint ('exact symbol'). 'Completed' distinguishes closed candles from a live tick stream, which no sibling tool provides, so an agent can select it 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?

Explicitly describes the two invocation modes ('Supply count or a from/to range') and gives a concrete backward-pagination recipe, which is real when/how guidance. It stops short of naming when-not-to-use or routing to siblings (e.g. export_history_page for bulk extraction), so it is strong but not fully exclusionary.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.