Skip to main content
Glama
dax-query-server

dax-query-server

by wes-stone

search_validated_queries

Read-only

Search saved known-good DAX examples by connection, tags, or text to retrieve validated queries and reuse them instead of writing new ones.

Instructions

Search saved known-good DAX examples for a connection.

Search matches id, display name, description, tags, grain, and DAX text. Results include DAX by default because this is an explicit retrieval tool.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "connection_name": "<connection_name>"
    },
    "name": "search_validated_queries"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNo
include_daxNo
max_resultsNo
search_termNo
connection_nameYes
connections_dirNoConnections

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.8

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true, and the description adds genuinely useful behavior beyond that: the fields searched and the fact that DAX is returned by default with a stated rationale ('explicit retrieval tool'), which tells an agent when to flip include_dax. It stops short of covering result limits, ordering, or behavior when no matches are found.

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?

Three short sentences, front-loaded with purpose then matching scope then the DAX default rationale; no filler or repetition. Slightly more could be trimmed only by dropping real information.

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?

An output schema exists, so return shape need not be documented, and the read-only annotation covers safety. However, for a six-parameter tool with zero schema descriptions, the definition leaves key inputs (max_results, connections_dir, connection_name) unexplained and gives no sense of how results are scoped or limited.

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%, so the description carries the full burden for six parameters, and it only partially does so: tags and DAX text are mentioned as searchable, and the include_dax default is explained. search_term, max_results, connection_name, and especially connections_dir receive no meaning at all, leaving an agent to guess at scope and path semantics.

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 gives a concrete verb and resource ('search saved known-good DAX examples for a connection') and even enumerates the fields the search covers (id, display name, description, tags, grain, DAX text). This is far more specific than a restatement of the name, but it never explicitly contrasts with the sibling list_validated_queries, leaving the search-vs-list distinction implicit.

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 implied rather than stated: the matching-field list tells an agent what queries will hit, and the include_dax sentence hints this is a deliberate retrieval call rather than a browse. There is no explicit when-to-use/when-not or pointer to alternatives such as list_validated_queries for enumeration or save_validated_query for persistence.

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