Skip to main content
Glama
dax-query-server

dax-query-server

by wes-stone

get_context_bundle

Read-only

Retrieve a progressive context bundle for a Power BI connection to inspect overview counts, schema details, or full markdown context, and scope table-heavy schema output with a table allowlist.

Instructions

Return a progressive, structured context bundle for a connection.

detail="overview" returns compact counts and key names; "schema" returns structured tables, measures, filters, and relationships; "full" also includes available markdown context. Use table_names as a comma-separated allowlist to scope table-heavy schema output.

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

Input Schema

NameRequiredDescriptionDefault
detailNooverview
table_namesNo
connection_nameYes
connections_dirNoConnections

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.8

TDQS

A3.7/5.0
Behavior4/5

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

The readOnlyHint annotation already establishes the safety profile, and the description adds real behavioral context by disclosing what each detail tier produces and that 'full' is strictly a superset of 'schema' plus markdown. It stops short of noting cost/size implications of 'full' or how connections_dir affects resolution.

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?

Front-loaded with the core purpose, then tiered detail semantics in a short second paragraph; every clause is functional. Slightly dense, but no filler and no 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?

With an output schema present, the description does not need to describe return values, and the readOnly annotation covers safety; the remaining pieces an agent needs — which tier to request and how to scope output — are supplied. The only meaningful hole is the unexplained connections_dir parameter.

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%, so the description carries the burden: it documents the three meaningful values of 'detail' (which the schema does not enumerate) and explains that table_names is a comma-separated allowlist. It says nothing about connection_name resolution or the non-obvious connections_dir parameter (default 'Connections'), leaving two of four parameters 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 — returns a progressive, structured context bundle for a connection — and the detail tiers make the progressive nature concrete. It is distinguishable from data-returning siblings, but it never names the closely related get_connection_context or get_schema, so the agent must infer which one to pick.

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 detail tiers effectively encode usage guidance (overview for counts/key names, schema for structures, full when markdown context is needed), and the table_names allowlist is framed as a scoping mechanism for table-heavy output. However, there are no explicit when-not conditions or named alternatives against the many context/schema siblings, so selection remains partly inferred.

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