Skip to main content
Glama
A1-x-Tech

A1 Google Slides MCP

Replace an image

replace_image
DestructiveIdempotent

Replace an existing image in Google Slides with a new one from URL or local file, keeping its frame, position, and effects. Choose center_inside or center_crop to fit or fill the frame.

Instructions

Swaps the bitmap of an existing image element while keeping its frame, position and effects (batchUpdate replaceImage). The new picture comes from image_url or image_path with exactly the same validation/upload/cleanup rules as create_image. replace_method: center_inside (default — scales to fit inside the frame, keeping aspect) or center_crop (fills the frame, cropping the overflow).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
image_urlNoPublic https URL of the new PNG/JPEG/GIF (exactly one of image_url / image_path).
image_pathNoAbsolute local path of the new image (exactly one of image_url / image_path).
replace_methodNoHow the new image fills the old frame (default center_inside).
image_object_idYesThe existing image element's object id (type "image" in list_slides).
presentation_idYesThe presentation id — the long id from the URL (docs.google.com/presentation/d/<presentationId>/edit) or from create_presentation output.
Behavior4/5

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

Annotations already carry the readOnly/destructive/idempotent flags, so the bar is lower. The description adds genuine context beyond them: it specifies what is preserved (frame, position, effects), what effect each replace_method has on the bitmap (center_inside scales to fit keeping aspect; center_crop fills and crops overflow), and that upload/cleanup behavior matches create_image. This meaningfully clarifies what the destructiveHint implies.

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 with no filler: the first states the core action and preserved attributes, the second bounds the input sources with a cross-reference, and the third defines the enum semantics. The most decision-relevant information (what is swapped, what is kept) is front-loaded.

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 5-parameter mutation tool with no output schema, the description covers the core behavior, preserved properties, input-source constraints, and method semantics. The only gap is that it doesn't describe the response shape or error conditions, but since the operation is a straightforward bitmap swap and the schema documents required params, this is a minor omission rather than a blocking one.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description adds value beyond the schema by explaining the behavioral difference between the two replace_method enum values (scale-to-fit vs. crop-overflow) and by clarifying that image_url/image_path inherit exactly the same validation, upload and cleanup rules as create_image, which the schema's 'exactly one of' constraint alone does not convey.

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 opens with a specific verb ('Swaps') and resource ('bitmap of an existing image element') and names the underlying API (batchUpdate replaceImage). It also distinguishes itself from create_image by stating it preserves frame, position and effects, which is exactly what separates this sibling from create_image in the sibling list.

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 first sentence implies the use case: replace an existing image while keeping its frame/position/effects, and the cross-reference to create_image's validation/upload/cleanup rules gives the agent a known behavioral contract. However, it never explicitly states when not to use this tool or names an alternative approach (e.g., delete_object + create_image), so it lacks the explicit exclusions needed for a 5.

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/A1-x-Tech/mcp-google-slides'

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