Skip to main content
Glama

Pbix Measures

pbix_measures

Extract every DAX measure from a .pbix file, returning each measure's home table, name, and expression so you can audit or reuse model logic without opening Power BI.

Instructions

Every DAX measure in a .pbix: home table, name, expression.

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": {
      "path": "<path>"
    },
    "name": "pbix_measures"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It implies a pure read/extraction, but says nothing about whether the file is opened read-only, whether it fails on unsupported or protected files, whether large models are truncated, or how the path is resolved.

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?

The sentence is compact and front-loads the resource scope before the returned fields. It is slightly telegraphic — a fragment rather than a complete clause — but no word 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 exists, so the returned fields need no prose explanation, and the description's field list matches it. However, for a file-reading tool with an undocumented path parameter and no annotations, essential invocation details (path validity, failure behavior, relationship to pbix_schema) remain unstated.

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?

The single parameter has 0% schema description coverage, so the description must compensate. The phrase "in a .pbix" does imply that path points at a .pbix file rather than a directory or .pbip project, but it adds no detail on absolute vs relative paths, whether the file must already be open, or allowed extensions.

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?

"Every DAX measure in a .pbix: home table, name, expression" names a specific resource (DAX measures) and enumerates the exact fields returned, so an agent knows precisely what it gets. It stops short of distinguishing itself from look-alike siblings such as pbix_schema, which may also surface measure metadata.

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

Usage Guidelines2/5

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

There is no when-to-use guidance at all: nothing says to prefer this over pbix_schema, pbix_table_data, or pbix_overview, and no prerequisite (the file must exist locally and be a valid .pbix) is stated. The only implied usage is the tool's own name.

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