Skip to main content
Glama
ducnguyen221

powerbi-agent

by ducnguyen221

execute_dax_service

Query published Power BI Service datasets via DAX through REST API, returning up to a specified row limit for AI-driven analytics and reporting.

Instructions

Truy vấn dữ liệu từ Dataset đã xuất bản trên Cloud Power BI Service thông qua REST API.

  • dataset_id: Mã GUID của dataset cần truy vấn.

  • dax_query: Câu lệnh DAX (ví dụ: 'EVALUATE SUMMARIZECOLUMNS(...)')

  • max_rows: Số dòng tối đa trả về (mặc định 1000; siết 200 khi kết quả có cột dimension). LƯU Ý POLICY: như execute_dax_local.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
max_rowsNo
dax_queryYes
dataset_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.1

TDQS

A4/5.0
Behavior3/5

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

No annotations are provided, so the description must carry behavioral disclosure. It states the read-only query nature, documents max_rows default 1000 with a conditional tightening to 200 for dimension columns, and cross-references execute_dax_local for policy, but it omits authentication, permissions, rate limits, and error behavior for a REST API call.

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?

The description is front-loaded and structured as a short intro plus three bullet points for parameters, with no wasted sentences. The policy note is brief and clearly separated.

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?

With an output schema present, return values do not need explanation, and all parameters are described. However, for a cloud REST API tool with no annotations, the description should ideally cover authentication or permission requirements, and its policy section relies entirely on a cross-reference to execute_dax_local rather than being self-contained.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description is the only source of parameter meaning. It documents all three parameters: dataset_id as a GUID, dax_query with a DAX example, and max_rows including its default and conditional limit, fully compensating for the schema's missing descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Truy vấn dữ liệu'), resource ('Dataset đã xuất bản trên Cloud Power BI Service'), and channel ('thông qua REST API'). It also differentiates from the sibling execute_dax_local by specifying the cloud service context and referencing that tool's policy.

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 description implies usage for published cloud datasets queried via REST API, but it does not explicitly state when to choose this over execute_dax_local or any other alternative. The policy note 'như execute_dax_local' hints at shared behavior but provides no independent usage guidance.

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