get_connection_context
Retrieves metadata and context for a named Power BI connection so you can discover tables, columns, measures, and filters before writing DAX queries.
Instructions
Return metadata and context for a named connection.
This is the PRIMARY way to discover tables, columns, measures, and filters. Always call this FIRST before writing any DAX query.
detail levels:
"overview" (default): Returns the compact overview with key tables, measures, and a few example queries. Fast and concise — use this first.
"full": Returns the complete context markdown. Only use if overview is insufficient and you need deep detail on filters, column values, etc.
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_connection_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | overview | |
| connection_name | Yes | ||
| connections_dir | No | Connections |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |