Skip to main content
Glama
rcarmo

office-document-mcp-server

by rcarmo

pptx_import_slide

Import a slide from a source presentation into a target presentation, preserving layout, master, and embedded assets. Reuses existing layouts to avoid duplication.

Instructions

Copy one slide from a source presentation into a target presentation.

USE THIS when you need to lift a fully-designed slide across from one deck to another, preserving pictures, charts, embedded assets, and the layout/master/theme chain required for it to render correctly.

The tool validates the source slide's layout/master chain before the copy. If an identical layout already exists in the target package, it reuses it and does not import a new master. Otherwise it imports only the single layout and single master required by the slide.

Args: source_file_path: Source .pptx file containing the slide to copy source_slide_number: 1-based slide number in the source deck target_file_path: Target .pptx file to receive the slide position: 'end' or 'after' after_slide_number: Required when position='after' output_path: Optional output path (defaults to overwriting target) include_notes: Whether to carry the notes slide across too

Returns: Status dictionary with output path, new slide number, and whether the layout/master were reused or copied.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
source_file_pathYesSource .pptx file containing the slide to copy
source_slide_numberYes1-based slide number in the source deck
target_file_pathYesTarget .pptx file to receive the slide
positionNo'end' or 'after'
after_slide_numberYesRequired when position='after'
output_pathNoOptional output path (defaults to overwriting target)
include_notesNoWhether to carry the notes slide across too
Behavior4/5

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

Annotations declare readOnlyHint=false and destructiveHint=false. The description adds significant behavioral details: it validates layout/master chain, reuses existing layout if identical, imports only necessary layouts/masters, and copies notes optionally. This provides valuable context beyond annotations.

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?

The description is well-structured: a one-line purpose, usage guideline, behavioral details, and then parameter list. It is concise at around 150 words with no fluff. The parameter list is slightly redundant given the schema, but it aids quick scanning.

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?

The tool has 7 parameters, no output schema, and returns a status dictionary as mentioned. The description covers the core behavior, layout/master handling, and return value. It does not discuss error conditions or permissions, but for a copy operation these are secondary. Adequate for the complexity.

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?

The input schema covers all 7 parameters with descriptions. The description lists the same parameters with similar context (e.g., 'Required when position=after'). It does not add new semantic meaning beyond the schema, so baseline 3 applies.

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 clearly states 'Copy one slide from a source presentation into a target presentation.' This provides a specific verb and resource, and distinguishes itself from siblings like pptx_add_slide (which creates a new slide) and pptx_duplicate_slide (which duplicates within same deck).

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?

It explicitly says 'USE THIS when you need to lift a fully-designed slide across from one deck to another...' and explains the layout/master chain handling. While it doesn't list alternative tools, it implies this is for preserving complex assets, which guides usage well.

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/rcarmo/python-office-mcp-server'

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