Skip to main content
Glama

smart_query

Query MQL5 documentation locally to diagnose errors, look up functions, or get concise answers. Saves over 80% tokens with quick or detailed modes.

Instructions

🎯 Công cụ truy vấn thông minh (Khuyến nghị): Nhập thông tin lỗi, tên hàm hoặc câu hỏi để tự động tìm kiếm và trả về câu trả lời rút gọn. Hoàn toàn chạy cục bộ, không tốn chi phí API, tiết kiệm hơn 80% token. Thích hợp cho: Chẩn đoán lỗi, tra cứu hàm, học nhanh.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoChế độ trả về: quick=Trả lời rút gọn (~500 tokens, khuyến nghị), detailed=Giải thích chi tiết (~1500 tokens)quick
queryYesNội dung truy vấn: 1) Thông báo lỗi như 'error 256: undeclared identifier ResultCode' 2) Tên hàm như 'OrderSend' 3) Tên lớp như 'CTrade' 4) Câu hỏi như 'how to send order'
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses that the tool runs locally, has no API cost, saves over 80% tokens, and offers two response modes with token estimates. It does not cover state modification, permissions, or error handling, but for a read-only query tool, this is adequate.

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?

The description is fairly concise, using an emoji and bullet-like examples. It is front-loaded with purpose and benefits. A minor improvement could be clearer structuring, but overall it's effective.

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?

Given the tool's simplicity (2 parameters, no output schema), the description covers purpose, usage, mode options, and examples. It is complete enough for an AI agent to understand and invoke the tool correctly.

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 description coverage is 100%. The description adds value by providing concrete examples of query content (error messages, function names, class names, questions) and explaining the mode options with token estimates (quick: ~500 tokens, detailed: ~1500 tokens), going beyond the schema's own descriptions.

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

Purpose4/5

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

The description clearly states the tool as a smart query tool for error information, function names, or questions, returning concise answers. It somewhat distinguishes itself from siblings like search and browse by emphasizing local execution and token savings, but lacks explicit differentiation.

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?

The description provides recommended use cases (error diagnosis, function lookup, quick learning) and mentions benefits (local, no API cost, token savings). However, it does not specify when not to use or compare to sibling tools like search or diagnose_error.

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/ductri-dev/mql5-ea-mcp'

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