Skip to main content
Glama
dchumari
by dchumari

Get MetaTrader 5 environment info

get_environment_info

Resolves the MetaTrader 5 install and MQL5 data folder. Call first to locate paths, and again with installDirHint if results are ambiguous or error.

Instructions

Resolves (or re-resolves) the MetaEditor/MetaTrader 5 installation and its MQL5 data folder. Call this first, and again if you get an 'ambiguous' or 'error' result, passing installDirHint.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
installDirHintNoAbsolute path to the MT5 install dir, e.g. C:\Program Files\MetaTrader 5

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses idempotent-like re-resolution behavior, required call ordering, and the failure states ('ambiguous', 'error') an agent will encounter. It stops short of stating that the operation has no side effects or what a successful resolution returns.

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 sentences, no filler, and the primary action ('call this first') is front-loaded ahead of the conditional retry case.

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?

No output schema exists, so the description should ideally hint at return states; it does by naming 'ambiguous' and 'error' outcomes, which is useful. It omits what a successful resolution returns (the resolved install/data paths), a minor remaining gap for a resolution tool.

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 100% and the schema already documents the installDirHint format, so the baseline is 3. The description adds genuine value beyond the schema by explaining why and when to pass it (to disambiguate a failed resolution), which the schema description does not convey.

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 ('resolves/re-resolves') and a precise resource ('MetaEditor/MetaTrader 5 installation and its MQL5 data folder'). This is unambiguous and clearly distinct from every sibling, which are all file/compile/execution operations.

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

Usage Guidelines5/5

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

Gives explicit ordering guidance ('Call this first') and an explicit re-invocation condition ('again if you get an ambiguous or error result'). The triggering states are named, so an agent knows exactly when to invoke and re-invoke with no inference required.

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