Skip to main content
Glama
dax-query-server

dax-query-server

by wes-stone

inspect_connection

Read-only

Discover a Power BI semantic model's live schema and metadata through non-admin MDSCHEMA rowsets, with optional preview rows for exploration.

Instructions

Inspect model metadata using non-admin MDSCHEMA rowsets.

Prefer get_connection_context first — it returns curated documentation without hitting the server. Use this only for live schema discovery.

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": "inspect_connection"
  }
}

Input Schema

NameRequiredDescriptionDefault
preview_rowsNo
connection_nameYes
connections_dirNoConnections
command_timeout_secondsNo

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?

Annotations already declare readOnlyHint=true, but the description adds two facts not in the annotations: it makes a live server call (unlike the curated offline alternative) and it uses non-admin rowsets, implying it works without elevated permissions. It does not discuss cost, latency, or failure modes on unsupported servers, which keeps it below a 5.

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 lines with zero filler: the action first, then the routing advice. The most decision-relevant sentence (try the cheaper tool first) is positioned to be read before invocation.

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 values need no prose, and the safety profile is covered by annotations. The gap is the undocumented parameter set, which for a live-call tool with a filesystem-style path argument is a meaningful omission.

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, and the description says nothing about any of them. Non-obvious inputs like connections_dir (defaulting to "Connections") and command_timeout_seconds remain completely unexplained, so an agent must guess at their meaning and units.

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?

"Inspect model metadata using non-admin MDSCHEMA rowsets" gives a concrete verb (inspect), resource (model metadata), and the underlying mechanism (MDSCHEMA rowsets), which is more specific than a generic 'get schema'. It is distinguishable from get_connection_context, though the description does not say what shape the metadata takes or how it differs from inspect_model_metadata.

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

Usage Guidelines5/5

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

It names the alternative explicitly ("Prefer get_connection_context first") and states the condition that selects this tool over it ("Use this only for live schema discovery"). The when-not and the when are both present, leaving nothing to inference.

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