Skip to main content
Glama
dax-query-server

dax-query-server

by wes-stone

search_columns

Read-only

Find columns across all tables in a connection by fuzzy name or description match, with results ranked by exact, prefix, and substring relevance.

Instructions

Fuzzy-search columns across all tables for a connection.

Searches column names (case-insensitive substring match) and also column descriptions when a data dictionary exists. Returns a JSON array sorted by relevance: exact match > starts-with > contains.

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>",
      "search_term": "<search_term>"
    },
    "name": "search_columns"
  }
}

Input Schema

NameRequiredDescriptionDefault
max_resultsNo
search_termYes
connection_nameYes
connections_dirNoConnections

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.8

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, and the description adds genuinely useful behavior: case-insensitive substring matching, that column descriptions are searched only when a data dictionary exists, and the relevance ordering (exact > starts-with > contains). It stops short of mentioning performance, result caps, or what happens when several connections share a column name.

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?

Three short sentences, front-loaded with what the tool does, then matching rules, then result ordering. No filler or repetition of the tool name.

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?

An output schema exists and the description still usefully characterizes the return as a relevance-sorted JSON array, and the read-only nature is covered by annotations. The only real gap is the undocumented 'max_results' and 'connections_dir' parameters, which an agent must guess at from defaults.

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 description coverage is 0% across four parameters, so the description has to compensate. It explains the matching semantics of 'search_term' well, but says nothing about 'connection_name', 'max_results', or 'connections_dir' beyond what their names and defaults suggest, leaving half the surface undocumented.

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?

States a specific verb and resource ('Fuzzy-search columns') plus the scope ('across all tables for a connection'), which clearly separates it from column-detail or table-detail style tools. It never names a sibling alternative, so differentiation is inferred from the resource rather than stated.

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 matching behavior implies when the tool is useful (you know a partial column name), but there is no explicit when-to-use / when-not-to-use guidance and no routing to alternatives like get_schema or search_measures for other kinds of lookups.

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