Skip to main content
Glama
Ichigo3766

PowerPoint MCP Server

by Ichigo3766

add-slide-title-only

Add a title slide to a PowerPoint presentation by specifying the presentation name and slide title. Simplify slide creation for AI-driven presentation editing tasks.

Instructions

This tool adds a new title slide to the presentation you are working on. The tool doesn't return anything. It requires the presentation_name to work on.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
presentation_nameYesName of the presentation to add the slide to
titleYesTitle of the slide

Implementation Reference

  • Handler for the 'add-slide-title-only' tool in the main server call_tool function. Validates input, retrieves the presentation, calls the presentation_manager to add the slide, and returns a success message.
    elif name == "add-slide-title-only":
        presentation_name = arguments.get("presentation_name")
        title = arguments.get("title")
    
        if not all([presentation_name, title]):
            raise ValueError("Missing required arguments")
    
        if presentation_name not in presentation_manager.presentations:
            raise ValueError(f"Presentation not found: {presentation_name}")
    
        try:
            slide = presentation_manager.add_title_slide(presentation_name, title)
        except Exception as e:
             raise ValueError(f"Unable to add '{title} to presentation: {presentation_name}. Error: {e}")
    
        return [
            types.TextContent(
                type="text",
                text=f"Added slide '{title}' to presentation: {presentation_name}"
            )
        ]
  • Tool schema definition including input schema for 'add-slide-title-only' in the list_tools handler.
    types.Tool(
        name="add-slide-title-only",
        description="This tool adds a new title slide to the presentation you are working on. The tool doesn't "
                    "return anything. It requires the presentation_name to work on.",
        inputSchema={
            "type": "object",
            "properties": {
                "presentation_name": {
                    "type": "string",
                    "description": "Name of the presentation to add the slide to",
                },
                "title": {
                    "type": "string",
                    "description": "Title of the slide",
                }
            },
            "required": ["presentation_name", "title"],
        },
    ),
  • Core helper function that adds a title-only slide to the specified presentation using python-pptx library.
    def add_title_slide(self, presentation_name: str, title: str) -> Slide:
        try:
            prs = self.presentations[presentation_name]
        except KeyError as e:
            raise ValueError(f"Presentation '{presentation_name}' not found")
    
        # Add a slide with title and content
        slide_layout = prs.slide_layouts[self.SLIDE_LAYOUT_TITLE]
        slide = prs.slides.add_slide(slide_layout)
    
        # Set the title
        title_shape = slide.shapes.title
        title_shape.text = title
        return slide
Behavior2/5

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

With no annotations provided, the description carries full burden. It discloses that 'The tool doesn't return anything' (helpful behavioral trait) and mentions the presentation_name requirement, but doesn't address other important behaviors like whether this is a mutation operation, what happens if the presentation doesn't exist, or if there are permission requirements.

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?

Two sentences that are reasonably efficient. The first sentence states the purpose clearly, and the second provides important behavioral information. Could be slightly more concise by combining ideas, but overall well-structured with key information front-loaded.

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 mutation tool with no annotations and no output schema, the description provides basic purpose and one behavioral trait (no return value), but lacks important context about mutation effects, error conditions, or how this integrates with the presentation workflow. It's minimally adequate but has clear gaps.

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 both parameters completely. The description adds minimal value by mentioning 'presentation_name' requirement but doesn't provide additional semantic context beyond what's in the schema descriptions.

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 the specific action ('adds a new title slide'), the resource ('presentation you are working on'), and distinguishes it from siblings by specifying 'title slide' only, unlike other title-related tools that include additional content like charts or tables.

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 implies usage when needing a title-only slide, but doesn't explicitly state when to use this vs. alternatives like 'add-slide-title-content' or 'add-slide-title-with-chart'. It mentions the requirement of 'presentation_name' but doesn't provide broader context about when this tool is appropriate.

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

Related 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/Ichigo3766/powerpoint-mcp'

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