Skip to main content
Glama

generate_embed_token

Mint scoped, short-lived Power BI embed tokens for datasets, reports, or target workspaces, enabling secure browser embedding in your application.

Instructions

Mint a Power BI EMBED token (POST /GenerateToken) for the given datasets / reports / target workspaces - the scoped, short-lived token an embedding app hands to the browser. Needs an AAD access token with the Power BI scopes (accessToken param or DAXOPS_PBI_TOKEN); the AAD token itself is never echoed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
reportIdsNocomma-separated report ids
datasetIdsNocomma-separated dataset ids
accessTokenNoAAD access token with Power BI scopes; omit to use DAXOPS_PBI_TOKEN
workspaceIdsNocomma-separated target workspace ids
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses that the token is scoped and short-lived, clarifies the auth prerequisite, and importantly states that the AAD token is never echoed—a meaningful security behavior. It could go further by describing error conditions or exact expiry, but it provides solid behavioral context.

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 two sentences, front-loaded with the core action and API reference, followed by requirements. Every clause earns its place without redundancy.

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?

For a token-generation tool with four optional, well-documented parameters and no output schema, the description is sufficient. It explains purpose, required auth scope, and a key security property. Minor gaps like response format are not critical for this tool's use.

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 coverage is 100%, with each parameter already having a description. The description adds context by grouping datasets/reports/workspaces and clarifying the accessToken fallback to DAXOPS_PBI_TOKEN, but this largely reinforces schema content rather than adding new semantic detail.

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?

The description uses the specific verb 'Mint' with the resource 'Power BI EMBED token' and references the exact API endpoint (POST /GenerateToken). It clearly distinguishes this tool from siblings by stating the use case (embedding app handing a short-lived token to the browser) and the scoped inputs (datasets/reports/workspaces).

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

Usage Guidelines4/5

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

The description clearly communicates the primary scenario: generating an embed token for embedding apps. It also states the authentication requirement (AAD token or DAXOPS_PBI_TOKEN). It lacks explicit 'when not to use' or alternative tool mentions, but the tool's unique purpose among siblings makes usage unambiguous.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cyphonica/powerbi-pbix-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server