Skip to main content
Glama

evaluate_queries

Add test cases with natural language questions and ground truth SQL, run evaluations to check generated SQL accuracy, and view results.

Instructions

Manage SQL accuracy evaluation. Add/list test cases, run evaluations, and view results.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
data_source_idYesData source ID
actionYesAction to perform
test_caseNoTest case to add (required when action=add_test)
test_case_idNoTest case ID to remove (required when action=remove_test)
generated_sqlsNoList of SQL to evaluate (required when action=run)
Behavior2/5

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

No annotations are provided, so the description must bear the full burden. It does not disclose whether the tool is destructive (e.g., remove_test), whether evaluations are long-running, or any side effects. The minimal description leaves significant behavioral ambiguity.

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 a single concise sentence that lists the main capabilities. No extraneous words. However, it could be slightly more structured by separating actions or adding detail.

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?

Given the complexity (5 parameters, nested objects, conditional requirements) and lack of output schema, the description is incomplete. It does not describe return values for actions like list_tests or results, nor explain how parameters interact.

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?

Schema coverage is 100% with descriptions for each parameter. The description adds little beyond the schema, only enumerating actions. It does not explain parameter dependencies or provide usage context beyond what the schema already specifies.

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 tool is for 'Manage SQL accuracy evaluation' and lists the key actions (add/list test cases, run evaluations, view results). This specific verb-resource combination distinguishes it from sibling tools like run_query or smart_query.

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 implies usage for evaluation tasks but does not explicitly state when to use this tool versus alternatives such as run_query or smart_query. No prerequisites or exclusion criteria are provided.

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/seob717/redash-mcp'

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