Skip to main content
Glama

add_embedded_image

Read a real image file from disk, base64-encode it, and store it as an embedded image for Power BI Report Builder reports. Validates MIME type against the file's magic bytes.

Instructions

Read a real image file off disk, base64-encode it, and store it under . Reference it later with image_source='Embedded' + value=. Supported MIME types: image/bmp, image/gif, image/jpeg, image/png, image/x-png. The file's magic bytes are sniffed and must match mime_type — claiming PNG bytes as image/jpeg is rejected here rather than letting Report Builder fail at preview time.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
pathYes
mime_typeYes
image_pathYesFilesystem path to the source image.
Behavior4/5

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

Discloses base64 encoding, storage location, magic byte sniffing, and rejection of mismatched types. No annotations provided, so description carries burden well, though security/permissions not mentioned.

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?

Single paragraph front-loads main action, fairly concise but slightly run-on. Could be broken into clearer sentences.

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?

Covers main workflow and validation, but leaves ambiguity about two path parameters. No output schema, yet function is adequately described for typical use.

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

Parameters2/5

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

Schema coverage is low (25%) and description only explains 'name' and 'mime_type' partially. It fails to clarify the difference between required parameters 'path' and 'image_path', leading to ambiguity.

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?

Description clearly states the tool reads an image file, base64-encodes it, stores it under EmbeddedImages, and lists supported MIME types. It distinguishes from siblings like 'add_body_image' by focusing on embedding rather than placing in body, though not explicitly.

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?

Description explains when to use (importing image files for embedding) and how to reference later, but does not explicitly mention when not to use or alternatives like 'add_body_image'.

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/mafaq229/pbirb-mcp'

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