Skip to main content
Glama
rcarmo

office-document-mcp-server

by rcarmo

pptx_add_slide

Add a slide to a PowerPoint presentation. Specify layout, title, and insertion position to control slide content and order.

Instructions

Add a new slide to an existing presentation.

Common layout_index values (use pptx_list_masters to see all):

  • 0: Title Slide

  • 1: Title and Content (default - has title + bullet area)

  • 5: Title Only (good for tables or custom content)

  • 6: Blank

Args: file_path: Path to the .pptx file layout_index: Which layout to use (default: 1 = Title and Content) title: Optional title text for the new slide position: Where to insert - 'end' (default), 'start', or 1-based slide number (e.g. '2' to make it slide 2) output_path: Optional output path (defaults to overwriting input)

Returns: Status with new slide_number

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYesPath to the .pptx file
layout_indexNoWhich layout to use (default: 1 = Title and Content)
titleNoOptional title text for the new slide
positionNoWhere to insert - 'end' (default), 'start', or 1-based slide number (e.g. '2' to make it slide 2)
output_pathNoOptional output path (defaults to overwriting input)
Behavior4/5

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

Annotations indicate readOnlyHint=false and destructiveHint=false, but description adds value by disclosing that output_path defaults to overwriting input, which is a key behavioral detail. It does not mention other side effects like file locking or error conditions, but covers the main mutation behavior.

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 with sections and bullet points for layout values. However, the layout list is somewhat lengthy; could be more concise while retaining clarity. Still front-loaded with the primary purpose.

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?

Given 5 parameters (1 required), no output schema, and sibling tools, the description covers all parameters with defaults and examples. It also mentions using pptx_list_masters for more layouts. The return value 'Status with new slide_number' is sufficient for context.

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?

With 100% schema coverage, baseline is 3. The description adds meaning beyond schema: for layout_index it lists common values (0,1,5,6) with descriptions, for position it gives examples, and for output_path it states the default overwrite behavior. This enhances parameter understanding.

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 'Add a new slide to an existing presentation,' specifying the action and resource. It distinguishes from siblings like pptx_duplicate_slide or pptx_delete_slide by focusing on slide addition.

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?

The description provides common layout_index values and position options, aiding selection, but lacks explicit guidance on when to use this tool versus alternatives like pptx_duplicate_slide or pptx_import_slide. No 'when to use' or 'when not to use' statements.

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