Skip to main content
Glama

resolve_includes

Read-onlyIdempotent

Resolves #include dependencies in MQL4/5 source files to identify the full file set needed for compilation.

Instructions

DEPRECATED (removed in 0.6.0): use inspect_source(source, aspects=["includes"]).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceYesAbsolute Windows path to the .mq4/.mq5/.mqh source file.
mql_rootNoMQL root for <angle> includes.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.5.0
    • addedInput schema / properties / mql_root / description
      Added value: +"MQL root for <angle> includes."
    • addedInput schema / properties / source / description
      Added value: +"Absolute Windows path to the .mq4/.mq5/.mqh source file."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "title": "resolve_includesDictOutput",
      +  "type": "object"
      +}
  2. First observedv0.4.1

TDQS

C2.9/5.0
Behavior4/5

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

The annotations already provide readOnlyHint=true entertaining, idempotentHint=true, and destructiveHint=false, which are consistent with the description's deprecation status. The description adds that the tool is deprecated and removed in 0.6.0, which is critical behavioral context beyond the annotations. There is no contradiction, and the deprecation disclosure is transparent.

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 a single sentence with zero waste. It immediately front-loads the DEPRECATED flag and the replacement instruction, making it highly efficient for an agent scanning options. Perfect minimalism for a deprecation notice.

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 deprecated tool, the description is complete in guiding an agent away from it, and the output schema exists for return type context. However, it doesn't explain what the tool originally returned or its historical behavior, which could be relevant if an agent encounters old references. Given the strong deprecation guidance, a 3 is fair.

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?

With schema description coverage at 100%, the schema already documents both parameters (source and mql_root). The description adds no new meaning about these parameters, but the baseline for high coverage is 3. The description's deprecation notice implies the parameters are irrelevant, but that doesn't enhance semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description is a deprecation notice rather than a statement of what the tool does. It says it is deprecated and directs users to use inspect_source instead, but does not mention what resolve_includes actually does (e.g., resolving include dependencies in MQL source files). The verb is missing; the purpose is only implicit.

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?

The description explicitly tells users not to use this tool and to use inspect_source with aspects=['includes'] instead, which is a strong usage exclusion. However, it does not explain when this tool was used or under what conditions an agent might still encounter it, such as backward compatibility or migration contexts.

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