Skip to main content
Glama
ak40u

mt4ctl

by ak40u

mt4_logs

Get the tail of a MetaTrader 4 terminal's newest log file, with optional regex pattern filtering and configurable line count.

Instructions

Return the tail of a terminal's newest log file.

Args: terminal: terminal id. pattern: optional case-insensitive regex to grep (e.g. "login|error"). lines: number of trailing lines to return (1-1000).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
terminalYes
patternNo
linesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It does not mention the operation's read-only nature, potential side effects (none expected), error conditions (e.g., invalid terminal id), or authentication requirements. The default values for pattern and lines are implied but not explicitly stated as defaults in the description text.

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?

The description is extremely concise: one sentence for purpose followed by a clean parameter list. No wasted words, and the critical information is front-loaded.

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 an output schema present but not described, and no annotations, the description adequately covers the basic usage. However, it lacks context about the return format, error handling, or behavioral traits like rate limiting. For a simple file-reading tool, this is adequate but not complete.

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?

Despite 0% schema coverage (meaning the schema lacks descriptions), the description includes a clear list of parameters with useful details: 'terminal id', 'optional case-insensitive regex to grep (e.g. "login|error")', and 'number of trailing lines to return (1-1000)'. This adds significant meaning beyond the schema's type constraints.

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?

The description clearly states the action ('Return the tail') and the resource ('terminal's newest log file'), making the tool's purpose immediately obvious. It distinguishes itself from sibling tools like mt4_control or mt4_list, which deal with different aspects of MT4 terminals.

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?

While the description lists parameters, it provides no guidance on when to use this tool versus alternatives such as mt4_info or mt4_status. There is no mention of prerequisites (e.g., terminal must be running) or scenarios where pattern or lines parameters are particularly useful.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ak40u/mt4ctl'

If you have feedback or need assistance with the MCP directory API, please join our Discord server