Skip to main content
Glama
dax-query-server

dax-query-server

by wes-stone

get_relationships

Read-only

Retrieve relationship topology for a Power BI semantic model, optionally filtered to one table, to map joins before writing DAX queries.

Instructions

Return relationship topology, optionally filtered to one table.

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

Input Schema

NameRequiredDescriptionDefault
table_nameNo
connection_nameYes
connections_dirNoConnections

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.8

TDQS

B3.2/5.0
Behavior3/5

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

readOnlyHint=true already tells the agent this is a safe read, and the description adds the scoping behavior (full topology by default, narrowed by table). It says nothing about connection semantics, cost/size of the topology response, or relationship direction, which would be the valuable additions beyond annotations.

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?

One front-loaded sentence with no filler; the default behavior precedes the optional modifier. It is arguably too terse rather than padded, which is a completeness issue, not a conciseness one.

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 explanation is not required, and the operation is a simple read. However, with zero schema descriptions the definition should at least clarify what connection_name refers to and what "topology" contains, which it omits.

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% across 3 parameters, so the description carries the burden and mostly fails: it only implies table_name's filter role. The required connection_name and the connections_dir default are not explained anywhere, leaving the agent to guess how a connection is identified.

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 ("Return relationship topology") plus an optional scope ("filtered to one table"), which is clearly distinct from schema or table-detail style siblings. It does not explicitly name a sibling it replaces or complements, so it stops short of full differentiation.

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?

"Optionally filtered to one table" implies the call pattern for both the broad and narrow case, but there is no when-to-use/when-not guidance and no named alternative for other metadata needs among the many get_* siblings. Usage is inferable rather than stated.

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