Skip to main content
Glama
rcarmo

office-document-mcp-server

by rcarmo

pptx_from_markdown

Convert Markdown to a PowerPoint presentation. Headings define slides, bullet points become body content, and tables are rendered as PowerPoint tables.

Instructions

Convert Markdown content to a PowerPoint presentation from inline content or markdown_file.

    This is the primary tool for creating PowerPoint decks from text content.

    Features:
    - Analyzes content to select appropriate layouts for each slide
    - Sets theme fonts (default: Segoe UI Semibold for titles, Segoe UI for body)
    - Uses millimeters internally for precise positioning
    - Fonts inherit from theme - no hardcoded font overrides

    Slide Mapping:
    - First # heading becomes title slide with large centered title
    - Subsequent # or ## headings start new content slides
    - --- (horizontal rule) also starts a new slide context
    - Bullet points (- or *) become slide body content
    - **Label:** patterns are rendered with bold labels (great for key points)
    - **Context (assumptions):** after title becomes subtitle on title slide
    - Tables (| col | col |) are rendered as PowerPoint tables
    - Non-heading, non-bullet paragraphs become plain text

    Example:
        pptx_from_markdown(
            output_path="04. Artifacts/proposal.pptx",
            markdown='''

Cloud Migration Proposal

Context: Enterprise transformation for ACME Corp


Executive Summary

  • Objective: Migrate 15 legacy applications to Azure

  • Timeline: 12 months with phased approach


Investment

Phase

Cost

Timeline

Phase 1

$400K

Q1

Phase 2

$800K

Q2-Q3


Next Steps

  • Approve project charter

  • Schedule kickoff workshop ''' )

      Args:
          output_path: Path for the output .pptx file
          markdown: Markdown content following the slide pattern (inline)
          title_font: Font for titles (default: Segoe UI Semibold)
          body_font: Font for body text (default: Segoe UI)
          markdown_file: Optional path to a Markdown file. Use this for
              very large inputs to avoid MCP argument-size limits.
    
      Returns:
          Status dictionary with file path and slide count
      

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
output_pathYesPath for the output .pptx file
markdownNoMarkdown content following the slide pattern (inline)
title_fontNoFont for titles (default: Segoe UI Semibold)
body_fontNoFont for body text (default: Segoe UI)
markdown_fileNoOptional path to a Markdown file. Use this for very large inputs to avoid MCP argument-size limits.
Behavior5/5

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

The description thoroughly details behavioral traits such as layout selection, theme fonts, internal unit usage, and font inheritance. It also includes a comprehensive slide mapping section. Annotations are non-contradictory (readOnlyHint=false, destructiveHint=false), and the description adds significant value beyond them.

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-organized with clear sections (Features, Slide Mapping, Example) and front-loads the core purpose. The extensive example and feature list are justified by the tool's complexity, though minor condensation could improve conciseness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (5 params, detailed slide mapping), the description provides comprehensive guidance covering input methods, behavior, slide rules, and return value. The absence of an output schema is compensated by clear description of the return structure ('Status dictionary with file path and slide count').

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% with descriptions for all 5 parameters. The description adds context beyond the schema by explaining the purpose of markdown_file for large inputs and listing default font values. The detailed slide mapping rules further enrich 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 explicitly states 'Convert Markdown content to a PowerPoint presentation' and identifies it as 'the primary tool for creating PowerPoint decks.' It contrasts with sibling tools like pptx_add_slide by focusing on full deck creation from text.

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 description clearly presents this as the go-to tool for creating decks from markdown. It also provides guidance on using markdown_file for large inputs to avoid size limits. While it does not explicitly list when not to use it among siblings, the context implies its primary role.

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