Skip to main content
Glama
dchumari
by dchumari

Delete an MQL5 source file

delete_file

Deletes a single file from the sandboxed MQL5 data folder. Targets files only, not directories.

Instructions

Deletes a single file (not a directory) under the sandboxed MQL5 data folder.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/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. It does disclose the destructive nature of the operation and the sandboxed scope, which are useful constraints, but it omits irreversibility, behavior when the path does not exist, and any permission or error semantics.

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?

A single front-loaded sentence with no padding or redundancy. It is efficient, though its brevity is partly under-specification rather than genuine discipline.

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?

For a destructive, unannotated tool with no output schema and an undocumented path parameter, the description is too thin: it should cover path format, failure behavior for missing files, and confirm the deletion is irreversible. Only the scope constraint is provided.

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% for the single 'path' parameter, so the description must compensate and does not. It never states whether 'path' is relative to the sandbox root or absolute, nor what path syntax is accepted.

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 ('deletes a single file') and immediately scopes it with two constraints: the target must be a file, not a directory, and it lives under the sandboxed MQL5 data folder. Among siblings named list_files, read_file, write_file, compile, etc., a delete operation is unambiguously distinct.

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

Usage Guidelines3/5

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

Usage is only implied by the name and the 'single file (not a directory)' qualifier; there is no explicit statement of when to use this versus write_file or how to recover from a wrong deletion. No alternatives or prerequisites are named, so an agent must infer the context.

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