Skip to main content
Glama
dax-query-server

dax-query-server

by wes-stone

search_connection_context

Read-only

Search a Power BI connection's context markdown for specific terms to find tables, columns, filters, or query patterns without loading the full file; returns matching lines with surrounding context.

Instructions

Search the full connection context markdown for specific terms.

Use this instead of loading the full context when you need to find specific information about tables, columns, filters, or query patterns. Returns matching lines with surrounding context.

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_connection_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
max_linesNo
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.9/5.0
Behavior4/5

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

The readOnlyHint annotation already establishes that this is a safe read, so the description adds return-shape context on top: matches come back as lines with surrounding context. It does not say whether matching is literal or pattern-based, whether it is case-sensitive, or how max_lines truncates output, leaving some behavioral gaps.

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 the purpose and followed by the routing rule and return format. The sentence about returned matching lines partly duplicates what the output schema already conveys, but nothing else is wasted.

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 and readOnlyHint mean the safety and return-shape burden is largely covered elsewhere, and the routing guidance is solid. However, for a four-parameter search tool with zero schema descriptions, the definition leaves the actual matching semantics and parameter behavior underspecified.

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% for four parameters, so the description must compensate, and it does not. It never explains search_term syntax, connection_name expectations, what max_lines bounds, or what the connections_dir path is relative to, even though those details materially affect a correct call.

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 states a specific verb (search) applied to a specific resource (the full connection context markdown) and clarifies the retrieval mode: matching lines with surrounding context. It is clearly distinguishable from get_connection_context, which loads the whole document.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an explicit routing rule: use this instead of loading the full context when you need specific information about tables, columns, filters, or query patterns. The alternative is described by behavior rather than by tool name, and there is no when-not-to-use guidance (e.g., when a full load is still preferable), which keeps it short of a 5.

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