Skip to main content
Glama
Power BI MCP Server

Power BI MCP Server

by mbmccormick

get_refresh_history

Retrieve the refresh history for a Power BI dataset (semantic model) to monitor past refresh runs, check status, and verify when data was last updated.

Instructions

Get the refresh history for a Power BI dataset (semantic model).

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": {
      "datasetId": "<datasetId>"
    },
    "name": "get_refresh_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNoNumber of refresh entries to return. Defaults to 10.
datasetIdYesThe dataset (semantic model) ID.
workspaceIdNoThe workspace (group) ID. Omit for 'My Workspace'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full behavioral burden and delivers little: the verb 'Get' implies a non-mutating read, but nothing is said about permissions needed, whether history is retained/truncated, ordering, or pagination behavior. An agent gets the safety profile only by inference from a single word.

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?

A single front-loaded sentence with no filler, and the parenthetical terminology clarification earns its place for agents unfamiliar with Power BI naming. It is efficient but leaves little room to cover the gaps noted in other dimensions.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a simple three-parameter read tool, but there is no output schema, and the description says nothing about what a refresh-history entry contains, how entries are ordered, or what happens when top is omitted beyond the schema's default. For a tool whose entire value is the returned history, that is a meaningful gap.

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 100%, so all three parameters (datasetId, workspaceId, top) are already documented, including the default of 10 for top. The description adds only the semantic-model synonym for the dataset concept and no further meaning for individual parameters.

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 ('Get the refresh history for a Power BI dataset') and clarifies the Power BI terminology by equating dataset with semantic model. It does not, however, distinguish itself from the sibling 'refresh_dataset', which performs the opposite kind of operation (triggering a refresh rather than reading its history), so an agent must infer that boundary.

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 read-only intent is implied by 'Get ... history', but the description never says when to use this versus refresh_dataset, nor does it state prerequisites such as needing the dataset to have refresh history enabled. Usage is inferable but not guided.

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