Skip to main content
Glama

insert_image

Adds an image to a PowerPoint slide from a file path, URL, or base64 data, with optional slide targeting and point-based position/size control.

Instructions

Inserts an image onto a slide using Office.js setSelectedDataAsync with CoercionType.Image. Accepts a file path, URL, or raw base64 data. Optionally navigate to a specific slide first and control position/size in points.

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": {
      "source": "<source>",
      "sourceType": "<sourceType>"
    },
    "name": "insert_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNoVertical position in points
leftNoHorizontal position in points (1 point = 1/72 inch)
colorNoHex color to tint SVG images (e.g. "#FF5733"). Only applies to SVG sources. Works best with mono/outline icons.
widthNoImage width in points
heightNoImage height in points
sourceYesFile path, URL, or base64 image data depending on sourceType
slideIndexNoZero-based slide index to navigate to before inserting. If omitted, inserts on the currently active slide.
sourceTypeYesHow to interpret source: "file" reads from disk, "url" fetches from network, "base64" uses data directly
presentationIdNoTarget presentation ID from list_presentations. Optional when only one presentation is connected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

A3.5/5.0
Behavior3/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 does disclose useful context that the insert happens via setSelectedDataAsync and that slide navigation precedes insertion when slideIndex is given. However, for a mutation tool it says nothing about failure modes, whether an existing image is replaced, default placement when top/left are omitted, or what the call returns.

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?

Three sentences, front-loaded with the core action and mechanism, then input forms, then optional behaviors. No filler or repetition.

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?

For a 9-parameter mutation tool with no annotations and no output schema, the description covers inputs adequately but leaves behavioral gaps: return value/confirmation, error handling for bad paths or unreachable URLs, and default size/position behavior are unstated. An agent could call it correctly, but not confidently predict outcomes.

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 the schema already documents points, hex color, slideIndex semantics, and sourceType. The description adds only a compact restatement ("file path, URL, or raw base64", "position/size in points") and the note that navigation happens first, which marginally clarifies ordering of effects but adds little beyond structured data.

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 ("Inserts an image onto a slide") and names the exact API mechanism (setSelectedDataAsync with CoercionType.Image), plus the three accepted source forms. It is distinguishable from formatting/reading siblings, though it never explicitly contrasts with icon-oriented tools like search_fluent_icons or shape formatting tools.

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?

Implies usage through the sourceType breakdown (file vs URL vs base64) and explains the optional slide navigation behavior. It gives no explicit when-to-use versus alternatives guidance and no prerequisites (e.g., does a presentation need to be active, when is presentationId required versus optional beyond the brief schema note).

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