dial-pptx-mcp
This server is a remote, multi-tenant PowerPoint generation MCP server that creates and edits branded .pptx decks from corporate templates, integrates with DIAL file storage, and validates/repairs decks visually and structurally.
Create presentations from scratch, from local template paths, or from uploaded template content (including .ppt conversion), preserving theme/layouts/masters.
Open, save, and export presentations as .pptx, .pdf, or both, with uploads to DIAL file storage and returned file URLs.
Edit slide content: add/format text, bullets, placeholders, tables, shapes, pictures, charts, connectors, hyperlinks, and apply professional designs/templates.
Add images from DIAL file URLs with aspect-ratio-aware placement (contain/cover/stretch), and render/place agent-drawn SVG icons after vision-model review.
Restructure decks: duplicate, delete, move, and copy slides between presentations, manage shapes (delete, clear, geometry, restack, move to another slide), and manage speaker notes.
Create editable native PowerPoint charts, including combo charts with mixed series types/secondary axes, and format chart series (colors, labels, trendlines, number formats).
Run structural validation (package, relationships, geometry, charts, tables, placeholder text) with severity levels.
Run visual QA: inspect slides with a vision model, auto-repair layout/text issues, review deck coherence, and optionally gate exports on a passing review.
Access design guidance, per-template build instructions, slide previews, deck summary cards, and icon/design style guides.
Retrieve presentation info, slide info, extracted text, template/file info, server info, and DIAL storage identity/bucket details.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@dial-pptx-mcp Generate a project status deck using the corporate template"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
dial-pptx-mcp
A remote, multi-tenant PowerPoint-generation MCP server for EPAM AI DIAL.
Generates .pptx presentations from corporate templates while preserving the template's theme, layouts, masters, and branding. Designed to be registered as an MCPToolSet in DIAL Quick Apps, with file input/output flowing through DIAL Core file storage.
This project extends GongRzhe/Office-PowerPoint-MCP-Server (MIT) — see Credits.
What this adds over upstream
Area | Upstream | This project |
Transport | stdio (single local client) | streamable-http / SSE, container-ready ( |
State | process globals, guessable sequential IDs | per-deck UUID handles (unguessable), thread-safe store with TTL + LRU bounds, per-deck locking |
File I/O | local disk paths | DIAL Files API: template in via Quick Apps |
Images | local path or base64 |
|
Asset library | none |
|
Icons | none |
|
Deck structure | append-only ( |
|
Speaker notes | none |
|
Validation | none |
|
Design | — |
|
Charts | one type, one axis per chart |
|
Output |
|
|
Deployment | — | Dockerfile (non-root, HTTP defaults) + generic Kubernetes example |
The ~30 upstream content/formatting tools (slides, text, charts, tables, connectors, hyperlinks, masters, transitions) are unchanged — see docs/UPSTREAM_README.md for the full tool reference.
Related MCP server: document-creation-mcp
Configuration
All environment-specific settings come from environment variables. Nothing is hardcoded.
Variable | Required | Default | Purpose |
| no |
|
|
| no |
| Bind address; set |
| no |
| Listen port for http/sse |
| no |
| Comma-separated Host-header allowlist for http/sse. Only listed hosts (plus localhost) are accepted; others get |
| for DIAL export | — | Base URL of DIAL Core, e.g. |
| no |
|
|
| no | — | Server's own DIAL API key — the fallback identity in |
| no |
| Folder inside the bucket for exported decks |
| no | — | Extra host(s) DIAL file links may carry besides |
| no |
| Largest image |
| no |
| Rendered icons held in memory for |
| no |
| Largest template instructions sidecar the server will accept beside a template. The document is a page or two of rules for using that template, not a style manual. An unparsable value falls back to the default |
| no |
| Largest SVG source |
| no |
| Idle time before an in-memory presentation expires |
| no |
| Max concurrently held presentations (LRU eviction) |
| no |
| Max tool calls running at once, process-wide (see Multi-tenancy and scaling notes). Bounds a burst of parallel tool calls (many tenants, or several |
| no |
| Max LibreOffice conversions running at once, process-wide. These are the memory-heavy calls (~0.5 GB per |
| no | — | Extra local directories searched by the local-path template tools ( |
| no | — | Folder holding the server-side asset library (PNG/JPEG/GIF) served by |
| for visual QA | — | Vision model: the model name (direct endpoint) or the DIAL deployment name (DIAL provider); must accept image input |
| direct provider | — | OpenAI Responses-API endpoint, e.g. |
| direct provider | — | Key for the direct endpoint (sent as |
| no | auto | Force the backend: |
| no |
|
|
| no |
| Most slides one whole-deck review covers. Slides beyond it come back in |
| no |
| Slides per vision request. A deck is reviewed in batches of this size, run in parallel; one request carrying 15+ slides is where the reviewer started missing blank slides |
| no |
| Vision requests in flight at once for one review (the coherence call counts as one) |
| no |
| Whole-deck calls also run the deck-level story review (agenda vs. sections, content on the wrong slide, blank slides, contradictions) — one text-only call. |
| no |
|
|
| no |
| Inspect/repair rounds per |
| no |
|
|
| no |
| Export gate only: |
| no |
| Export gate only: |
| no |
| LibreOffice binary used to render slides (the Docker image includes LibreOffice) |
| no |
|
|
Copy .env.example to .env for local runs — the server loads it at startup, and .env is gitignored.
Running
Local (stdio, for MCP-client desktop use):
pip install -r requirements.txt
python ppt_mcp_server.pyRemote (streamable-http):
docker build -t dial-pptx-mcp .
docker run -p 8000:8000 -e DIAL_CORE_URL=https://dial.example.com -e DIAL_API_KEY=... dial-pptx-mcp
# MCP endpoint: http://<host>:8000/mcpKubernetes: see deploy/kubernetes.yaml (generic example — replace placeholders).
DIAL Quick Apps integration
Register the deployed server as an MCP tool set in your Quick App manifest:
{
"name": "powerpoint",
"description": "Generate PowerPoint presentations from corporate templates",
"type": "mcp",
"mcp_server_info": {
"url": "https://YOUR-DEPLOYED-HOST/mcp",
"protocol": "streamable_http",
"authorization": null
},
"attachment": {
"supported_types": ["*/*"],
"propagate_types_to_choice": [
"application/vnd.openxmlformats-officedocument.presentationml.presentation"
]
}
}propagate_types_to_choicemakes the exported.pptxattachment visible to the end user in DIAL Chat (tool-call results are hidden by default).Deploy the server under the DIAL host (behind DIAL Core routing) for per-user storage. Quick Apps attaches the end user's
Authorization: Beareronly to MCP servers whose URL starts with the DIAL host — with it, the defaultautomode uploads every export to that user's own bucket. For a server at an external URL, Quick Apps sends no user credentials (it deliberately refuses to forwardapi-key/authorizationas custom headers), soautofalls back to the server'sDIAL_API_KEYand exports land in the server's single bucket; setDIAL_AUTH_MODE=callerif you'd rather exports fail loudly than fall back.Template input: the orchestrating agent passes the template to
create_presentation_from_template_contentasfile:data::files/{bucket}/{path}— Quick Apps' file preprocessing resolves that reference to a data: URI before this server receives it (base64 viafile:base64::also accepted). Note Quick Apps' default 10 MiB file-loading limit (features.file_loading.size_limit) if your templates are large.Template instructions: a template may ship with a markdown sidecar holding its own build rules — which slide is the section divider, the accent colour, the footer text. Pass it in the same call, as
instructions_content=file:data::files/{bucket}/{path}; the server parses it, attaches it to the deck and returns its section list, andget_template_instructions(presentation_id, section?)serves it back on demand. Omit the argument when the template has no sidecar. See Template instructions.Deck output:
export_presentationuploads to DIAL file storage and returns thefiles/{bucket}/{path}URL; the tool description instructs the agent to include it in its final answer.
Images (orchestrator-generated)
The server does not generate images — it embeds them. The split is: the orchestrator generates, the MCP inserts, and only a short URL travels between the two.
Tool | Use it for |
| Anything the orchestrator produced with an image model. It calls the image deployment (a DIAL Core deployment sits next to the vision one), saves the result to DIAL file storage, and passes the |
| Small assets only, and deployments not running under the DIAL host |
Prefer the URL tool. A 1024×1024 PNG is ~1–2 MB, so passing it as base64 pushes ~2 MB of payload through the agent's context on every insertion — enough to wreck the iteration budget on a multi-image deck.
Placement is aspect-ratio aware. slide_index is 0-based (like the other content tools; visual QA slide numbers are 1-based). Give width and height to define the box the picture should occupy, and fit decides how it relates to that box:
contain(default) — largest undistorted size that fits, centred in the box. Safe for photos and illustrations.cover— fills the box exactly, cropping the overflowing edges symmetrically (python-pptx crop, no re-encoding).stretch— forces the exact box, distorting the image. Visual QA can move, resize and delete a picture, but it cannot un-distort one, so avoidstretchunless you mean it.
Pass only one of width/height to scale proportionally, or neither to keep the image's natural size — clamped to the slide, so a large generated PNG never hangs off the edge. The response reports the geometry actually applied ("placed"), which under contain may be smaller than the box you asked for; use it to lay out the text beside the image. A half-and-half slide on a 13.33in deck is text at left=0.8, width=5.6 and the picture at left=6.9, top=1.2, width=5.6, height=4.5.
Telling the agent to use it. Image generation is the orchestrator's job, so it belongs in the Quick App's system prompt:
When a slide would be stronger with a visual — a supporting image beside the
text, a cover image, an icon — generate it with the image model, upload it to
DIAL file storage, and pass the file URL the upload returned to
add_image_from_dial_url. Never paste image data into the conversation, and
never pass a public web URL — that tool only reads DIAL file storage. Give
width and height for the box you want it to fill and leave fit at "contain"
so the image is not distorted; for a text-left/image-right slide use roughly
half the slide width for each.How the server is allowed to read the file. DIAL isolates deployments from each other: when the agent calls this toolset, DIAL Core mints a per-request key scoped to it, and that key can read exactly two places — its own bucket and Users/{user}/appdata/{this-deployment}/. A generated image lives in the image deployment's appdata (Users/{user}/appdata/{image-deployment}/…), which is neither. Conversation attachments are not auto-shared onto a toolset key either.
The bridge is a schema flag. Before each MCP call, Quick Apps scans the tool's input schema and, for every parameter marked "dial_url": true, asks Core to grant that specific file to the toolset's per-request key. add_image_from_dial_url declares it on image_url:
"image_url": { "dial_url": true, "title": "Image Url", "type": "string" }Two consequences worth knowing. Pass the URL exactly as received, in that parameter — the grant covers the value Quick Apps saw, so a URL reassembled by hand, or carried in some other argument, is not granted and still 403s. And this is why the flag matters more than DIAL_AUTH_MODE: without it no credential setting helps, because no identity available to this server owns that file. get_dial_storage_info reports the identity and bucket this server actually has, for when a read is still refused.
What counts as an image URL. A DIAL file reference: the files/{bucket}/{path} URL an upload returns, or the full https URL of that file on this DIAL installation — the .../api/files/{bucket}/{path} link an image deployment hands back is accepted as-is, as is the Core API's /v1/files/... form. Arbitrary web URLs are refused: this server is not a web fetcher, and an agent that finds a picture online must store it in DIAL file storage before inserting it. If your file links carry a different hostname than DIAL_CORE_URL (public chat host vs. in-cluster service), list it in DIAL_PUBLIC_URL.
Generated images are in scope for visual_repair_slides like any other shape. DIAL_IMAGE_MAX_MB (default 20) bounds what the server will download; non-raster input is refused with a message telling the agent to ask its image model for PNG or JPEG rather than SVG.
Asset library (server-side images)
Some pictures belong to the deployment rather than to a user: a brand's icon set, a logo variant. Attaching them to every Quick App means every file has to be shared with every user who runs it. Instead, mount them into the pod and point PPT_ASSET_PATH at the folder.
Tool | What it does |
| Sorted image names in the library ( |
| Places one entry, with the same geometry and |
The agent passes a name, never a path: a name must be a bare file name that list_assets returns, so ../, absolute paths and sub-folders are refused and the tool cannot read anything else on the pod. DIAL_IMAGE_MAX_MB bounds the file size here too. The folder is read on every call, so replacing its contents takes effect without a restart.
Name the files so a query by concept finds them — e.g. brand_icon_<concept>_<variant>.png — and tell the agent the naming scheme and when to use each variant in its system prompt.
A template on disk works the same way: put deck.pptx and its instructions sidecar deck.md in a PPT_TEMPLATE_PATH folder and the agent loads both with create_presentation_from_template("deck.pptx"). On Linux the sidecar name is case-sensitive.
Icons (agent-drawn SVG)
Icons are the one visual an image model is bad at and a stock library only half-solves. The library problem is background: a stock icon file carries an opaque white background, so the moment a card is tinted or a panel is brand blue it shows as a pale rectangle — and no library has "regulatory submission" anyway.
So icons follow the same split as images, with one extra step. The orchestrator draws, the server renders and checks, the orchestrator places.
Tool | What it does |
| Serves docs/ICON_GUIDANCE.md: when a drawn icon is the right answer, the two variants (line art for a light surface, white-on-filled disc for a coloured one), the rules that keep a set coherent, and eleven worked path examples to adapt |
| Validates and rasterizes the SVG to a transparent PNG (PyMuPDF), has the vision model review the render, and returns an |
| Places a rendered icon on a slide, square and centred in a |
Why the render is reviewed before it is placed. A hand-written path is valid XML long before it is a recognisable pictogram: an unclosed subpath fills into a blob, a stray coordinate leaves a hairline across the canvas, a mistyped viewBox puts the drawing off the edge. The agent cannot see any of that, and by the time visual QA meets the icon on a slide the repair whitelist offers only move, resize and delete — the deck loses the icon rather than getting a correct one. So the icon is reviewed alone, at full size and downscaled to the ~1in it will actually occupy, composited onto slide_background so contrast is judged against the real surface. A failed review keeps nothing: there is no icon_id to place, and the agent is told to fix the SVG and call again. Two cheap failures beat one broken slide.
Two checks run before the model is asked anything, because they name the defect more precisely than a verdict can: a render with no ink at all is refused outright ("the shapes are probably outside the viewBox"), and one that is nearly blank or nearly solid comes back with a render_note saying which.
Input is untrusted. The SVG is written by a model and parsed in this process, so render_svg_icon refuses DOCTYPE/ENTITY declarations (the XXE shape), <script>, <foreignObject>, embedded <image>, event-handler attributes, and any href/url() that leaves the document — an SVG that fetches is an SSRF primitive just like a URL parameter. Text elements are refused too, for a second reason: glyphs would come from whatever font the rasterizer substitutes, which is exactly the artifact class this feature exists to catch. Line art only — <path>, <circle>, <rect>, <line>, <polyline>, <polygon>.
The icon does not go through DIAL file storage, and that is not an optimisation. A file this server writes lands in {user}/appdata/dial-pptx-mcp/, which only the end user and this deployment may read. Placing it again would mean the orchestrator asking DIAL Core to grant that file to the toolset key before the call — and the orchestrator is neither of those two identities, so Core refuses with 403 Access to resource is forbidden before the tool is even entered. (Exports do not hit this: their URL goes to the end user, who owns the bucket. An image-model PNG does not either: it arrives as a conversation attachment the orchestrator can see and therefore share.) The bytes were rendered in this process, so they simply stay here, under an unguessable icon_id handle with the same TTL and LRU bounds as a presentation handle — PPT_MCP_MAX_ICONS caps how many.
Rendering is PyMuPDF, already a dependency for the QA rasterizer, so icons work wherever the server runs — no LibreOffice, no new native library. Only the review needs a vision model; without one the icon still ships, with a note saying it was not checked. That check follows the model, not VISUAL_QA_ENFORCE: switching off slide inspection and repair is a different decision from whether one icon can be looked at.
Telling the agent to use it. Drawing is the orchestrator's job, so it belongs in the Quick App's system prompt:
When a slide needs an icon — a row of cards, the steps of a process, a section
marker — do not ask the image model for one. Call get_icon_guidance once, write
the icon yourself as SVG following it, and pass it to render_svg_icon with
concept set to what it depicts and slide_background set to the colour it will
sit on. If the response says the review did not pass, fix the SVG as the issues
say and call it again; do not place an icon that has no icon_id. Then place
the icon_id with add_icon_to_slide (not add_image_from_dial_url — the icon is
not in DIAL storage), about size=0.7 in a card and 1.0-1.2 beside a section
title. Draw all of a deck's icons in one style, and reuse an icon_id wherever
that icon repeats. If the user's template already has icons for what you need,
use those instead.Building a deck
These tools cover the parts of deck construction upstream had no route to.
Slide structure
python-pptx's only entry point is slides.add_slide(layout), which appends a bare slide built from a layout. A corporate template's designed slides — its artwork, panels, logo placement, the three-card row someone laid out — live on the slides themselves and cannot be reached that way.
Tool | What it does |
| Copies a slide with all of its content and formatting. Pictures are shared (same bytes); charts, SmartArt and embedded objects are cloned, so editing the copy's chart does not rewrite the original's. Speaker notes travel with it |
| Removes a slide and its package relationship |
| Reorders |
| One element on a slide: |
| Merges decks. Everything the slide references is cloned into the target package; inherited theme colours and fonts re-resolve against the target master, so the copy is worth inspecting |
|
|
The recommended flow for template work is duplicate, then fill: find the template slide whose structure fits the content, duplicate it, and replace the text.
Structural validation
validate_presentation(presentation_id, min_severity?) is the axis visual QA cannot see. A deck with a dangling relationship or a chart with no series renders in LibreOffice and opens in python-pptx — the two things the visual pass relies on — and still arrives broken.
It checks the package (round-trip, content types, relationship resolution, slide ids, notes parts shared between slides, orphan parts) and the slides (shapes off the canvas or zero-sized, charts with no data or mismatched series lengths, empty tables, pictures stretched off their aspect ratio, leftover placeholder text such as Lorem ipsum / Click to add title / TODO / [insert ...]). Each problem names the slide, the shape, what is wrong and the tool that fixes it.
Severities: error (PowerPoint may refuse the file), warning (a defect the user would notice), info (advisories — notably the font caveat below). It runs on every export too, as a non-blocking "structure" summary, and it is fast: no rendering, no model call.
Empty placeholders are deliberately not reported: PowerPoint draws their prompt text only in edit view, so they are invisible in a slideshow and in the PDF, and a template has dozens.
Design guidance
get_design_guidance(section?) serves docs/DESIGN_GUIDANCE.md — deck structure, layout and spacing, type scale, colour, charts and tables, images, the visual habits that make a deck read as machine-generated, and the build loop. Call it with no argument for the whole document plus the section list, or name a section (type, colour, layout, …) mid-build.
Its first section is the one that matters most here: this server's default case is a corporate template, so the right move is to inherit the user's design and duplicate their slides, not to invent a palette over the top of their brand.
Template instructions
get_design_guidance is the same document for every deck. What it cannot carry is the part that differs per template: which of this template's slides is the section divider, which colour is the accent, what the footer must say, which slides must never be touched. Putting that in the orchestrator's system prompt works for one template and stops scaling at ten — every template's rules are then resident in every conversation, whichever template is actually in use.
So the rules travel with the template. Store a markdown file beside the .pptx and pass it to the tool that loads the template:
Loader | How the sidecar is found |
| Passed explicitly, the same way as the template ( |
| Looked up automatically beside the template on disk: |
The load returns a template_instructions object — the section list and character count, not the document itself — and get_template_instructions(presentation_id, section?) serves it whole or one ## Title section at a time, from the deck's own entry in the store.
A missing sidecar is the ordinary case, not an error. No instructions_content, an unresolved file:data:: reference, an empty file or a broken one: the template loads exactly as before and the response says why nothing was attached. The deck is the deliverable; the instructions are an enhancement.
Two things to know about the document itself:
Give it
## Titleheadings. Section retrieval is what makes re-reading cheap, and re-reading is the point: on a long build the first read scrolls out of the model's context long before the last slide is done, so the system prompt should tell the agent to re-read the relevant section before each slide rather than trust its memory of it. Numbered headings (## 1. Slides) work too. A document with no headings is served whole.It is capped at
TEMPLATE_INSTRUCTIONS_MAX_KB(default 128 KB) and must be UTF-8 text. It comes out of a user bucket rather than shipping with the server, so it is served under a note telling the agent it is deck styling guidance and not a change to how it uses its tools.
Slide previews
render_slide_previews(presentation_id, slides?, describe?, columns?) renders the deck into labelled contact sheets, uploads them to DIAL storage (so a person can look at them), and — since the agent cannot see an image — has the vision model describe what each slide is structurally suited to. Use it right after opening a template: layout names and indices cannot tell you which of eight near-identical layouts holds the three-card row. Registered only where LibreOffice is present.
The finished-deck summary card
render_deck_summary_card(presentation_id, title?, columns?, filename?) tiles every slide into a single labelled JPEG, uploads it to DIAL storage and returns the image_url. It is meant for the end of the job, attached beside the exported .pptx: the user sees the whole deck in the chat without downloading a file and opening PowerPoint.
It is deliberately the mirror image of render_slide_previews. That tool is for the agent — several sheets, capped at 24 slides, and the part that matters is the vision model's description of each slide, because the agent cannot see a picture. This one is for the person: always exactly one image, no cap and no vision call. The grid's column count is fitted to the deck's length so a 60-slide deck comes back roughly landscape rather than as a tall stripe, and cells shrink to keep the card inside 2000×2600px — but never below 150px wide, since a card that scrolls beats one whose thumbnails are unreadable. Registered only where LibreOffice is present.
Charts
add_chart builds one chart group: every series the same type, on one value axis. add_combo_chart covers what that cannot — bars with a target line across them, or two measures whose units differ so much that one flattens to nothing on a shared axis:
{"categories": ["Q1", "Q2", "Q3"],
"series": [
{"name": "Revenue", "values": [10, 12, 15], "type": "column", "color": [31, 73, 125]},
{"name": "Margin", "values": [0.21, 0.23, 0.22], "type": "line_markers",
"secondary_axis": true, "number_format": "0.0%", "data_labels": true}]}The result is a real editable PowerPoint chart, not a picture — the embedded workbook and category caches are preserved. format_chart_series restyles one series of any existing chart: brand colour, data labels and their position, number format, trendline (linear, movingAvg, exp, log, poly, power).
Output formats
export_presentation(presentation_id, filename?, format?) takes format="pptx" (default), "pdf", or "both" — the pair is usually what a user asking to "share" a deck wants. The .pptx stays first in files and in the flat file_url. A PDF that cannot be rendered is reported as a note beside the delivered deck rather than a failed export.
create_presentation_from_template_content accepts a PowerPoint 97-2003 .ppt and converts it on the way in. Both conversions need LibreOffice.
Visual QA (agent-driven inspect and repair)
When a vision LLM is configured (VISION_LLM_*), the server registers two tools the orchestrating agent calls whenever it wants — typically right after building each slide, not only at the end:
Tool | What it does |
| Renders the selected slides (LibreOffice → PDF → PNG) and runs the full review (see below). Read-only: returns |
| Reviews, then repairs the deck itself and re-reviews, looping until the slides pass or the budget runs out. The LLM is shown the issues, the affected (and related) slides' structure and their images, and returns a plan of whitelisted operations — move/resize, set/fit font size, autofit, set/clear text, font colour, word wrap, delete, bring to front/send to back, move a shape to another slide, reorder slides, table column width/row height/cell text, chart legend, data labels and axis titles — validated and applied with python-pptx. What no operation can fix (content that was never built) comes back as |
slides is a list of 1-based slide numbers; omit it to work on the whole deck. Issue slide numbers are always absolute deck positions, even when only a subset was rendered, and a scoped repair call never touches a slide outside slides. Because LibreOffice converts the whole deck either way, a narrow selection saves the vision call and the repair round, not the render.
A round never leaves a slide worse than it found it. Each re-review judges every slide the last round touched against that slide's verdict before the round (critical issues weigh more than major ones). A slide that got worse is rolled back — the pre-round deck is restored and the round's other operations are replayed, so the slides that improved keep their fixes — and the round reports reverted_slides and operations_reverted. A slide reorder that makes the deck worse is undone whole. The operations themselves refuse the usual ways a fix goes wrong: a resize may not shrink a chart, table or picture below half its width or height, and a move or resize may not push a shape that sits on the slide off it. More rounds are therefore not the cure for a repair that made things worse; the default of 3 is deliberate.
max_iterations counts inspections, the first included; it defaults to VISUAL_QA_MAX_ITERATIONS (3) and can be lowered per call to 2 (one repair and a re-check) for a quick single-slide pass. Lower values are raised to 2, since a budget of 1 would inspect and never repair. A "passed": false result is a report, not a retry request: the agent should do what action_required says with the editing tools and repair those slides again, or tell the user what remains.
What the checklist covers is the server's decision, not the agent's. focus is optional and only ever added to the full checklist; an orchestrator does not need to — and should not try to — enumerate what to look for.
"passed" is the server's verdict. It is true only when no critical or major issue remains anywhere in scope, whatever the model's own passed flag says (models set it beside a critical finding often enough to matter). A repair result always carries issues (blocking, still open), minor_issues (reported, never repaired), each round's changes, slides_reviewed and checks (visual, plus coherence on whole-deck calls), so a pass can be audited rather than trusted.
Export
export_presentation does not run QA. It reports what it knows — "visual_qa": "passed" | "unverified" | "unavailable" — and adds a note when the deck was never inspected or was edited since its last passing inspection. Only a clean whole-deck inspection marks a deck passed; a scoped call clears nothing.
Operators who want the old guarantee that no unverified deck ever leaves the server set VISUAL_QA_EXPORT_GATE=true: export/save then run the whole-deck inspect-repair loop for dirty decks and refuse the export if it cannot reach a pass. With the gate on, VISUAL_QA_ON_UNRESOLVED chooses report (default — fail the export with the unresolved issue list) or export_as_is, and VISUAL_QA_ON_ERROR=allow lets exports through when inspection itself cannot run (renderer/LLM outage — default blocks). Both variables are inert while the gate is off.
What the reviewer checks
Two reviews run on a whole-deck call, in parallel:
Visual, per slide, in batches of
VISION_LLM_BATCH_SLIDESimages sent at high detail. Beside each image the reviewer gets that slide's inventory from the file — title, each element's index, kind and text, and which text is drawn over by a later opaque shape — so it can tell text that exists but cannot be seen (a divider title under cards) from text that was never there, and content that does not match its title.Coherence (
deck_review.py), one text-only call over an outline of every slide: agenda/index items against the actual section dividers (missing, extra, out of order, misnumbered), content that belongs to another slide's title (the off-by-oneslide_indexsignature: one slide blank, its neighbour carrying its cards), blank content slides, hidden text, duplicated slides, the same figure quoted two ways, narrative order, title consistency, and text quality (typos, typed bullets, literal markup, mojibake).
The visual checklist covers blank or near-blank content slides, content that does not match the slide title, placeholder/sample text, hidden or stray elements, broken characters and doubled bullets, squashed or default-labelled charts, distorted or badly cropped pictures, inconsistent icons, elements crossing the template's header rule or footer, and misaligned comparable elements — as well as brand fidelity (colors, fonts, logo placement, layout usage) and text placement and overlap wherever text is rendered:
Text boxes and placeholders — overflowing, clipped, or spilling past the slide edge; text overlapping other text or sitting unreadably on top of shapes and images; unfilled placeholders; text too small or too low-contrast to read.
Charts and graphs — axis tick labels colliding with each other or truncated, data labels overlapping their bars/slices or each other, a legend covering the plot area, an axis title rotated into illegibility.
Tables — cell text wrapping into an unreadable stack or clipped by the row height, columns too narrow for their content, headers misaligned with their columns, a table running past the slide.
Diagrams, SmartArt and grouped shapes — labels wider than the node that holds them, text escaping a connector, node labels overlapping their neighbours.
It also flags text sized badly for the space it occupies — a heading set so small its box is mostly empty, or comparable elements at visibly different sizes — while being told not to ask for bigger text where growing it would eat the slide's white space.
Overlapping or unreadable text is graded at least major, so it fails the verdict rather than being noted in passing.
Fitting text to its box. The fit_text operation sizes text to the space it actually has, in both directions: it shrinks text that overflows and grows text that leaves its box mostly empty. The size is computed server-side from the box geometry (minus the frame's own margins, with a slack factor so text never touches its border) rather than guessed by the model, and the plan can bound it with min_pt/max_pt. Growth is anchored to the deck's own typography — at most 1.5× the shape's current size, or 44pt when the text inherits its size from the layout — so a two-word box cannot balloon to 96pt and shout over the slide. set_autofit sets PowerPoint's own autofit behaviour (shrink_text, grow_shape, none) when that suits the shape better. The size estimate is geometric, not a real text layout; the loop's re-render and re-review is what confirms it.
Structure and content repairs. move_shape_to_slide moves an element — with its picture or chart part, and with fresh shape ids — to the slide whose title it matches; a placeholder's text moves into the target's matching placeholder instead. reorder_slides takes the whole new order and is applied after every shape operation in the plan. An out-of-sync agenda is rewritten with set_text from the section dividers' own titles. The planner is told never to invent facts or figures: a slide that is empty because its content was never built becomes an action_required entry saying what is missing. Shape indexes in a plan always refer to the slide as described, so a delete earlier in the plan cannot shift a later operation onto the wrong shape.
Reading a round that changed nothing. operations_applied: 0 with operations_skipped: N does not mean repair is disabled — it means the plan was rejected by validation. Each round now reports skipped_reasons (e.g. {"bad shape_index": 2}) and the result carries a repair_note explaining that repeating the call will not help. The common reason is bad shape_index: the fix targets something that is not a shape on the slide — typically a slide-number, footer or date placeholder inherited from the layout or master, which the repair engine cannot reach. Such reports are also often renderer artifacts (LibreOffice wraps a narrow slide-number field that PowerPoint lays out on one line), so check the deck in PowerPoint before chasing them.
Chart axis titles. set_axis_title names axes by role — category and value — not by screen position, and the planner is told which way round they sit for the chart type in hand. This matters because add_chart's x_axis_title/y_axis_title map to the category and value axes regardless of orientation: on a bar chart the category axis is vertical, so titles chosen by where they appear on screen come out swapped. The tool's docstring now says so, and the repair op can correct it after the fact.
The repair engine can act on all of it: describe_slides hands the planner each table's column widths, row heights and cell text, and each chart's type, categories, series count and label/legend state — so a plan can widen a column, raise a row, retitle a cell, shrink a whole table's or chart's font, hide crowded data labels, or move the legend, instead of only nudging the container. Members of a group are not individually addressable; the group is moved, resized or shrunk as a whole.
Fonts, and what a QA verdict can prove
The renderer is LibreOffice, which does not have Microsoft's fonts and substitutes its own. Some substitutions are metric-compatible — identical character widths, so a line that wraps in the render wraps identically in PowerPoint:
Font in the deck | Rendered as | Text-fit verdict |
Arial, Helvetica | Liberation Sans | exact |
Times New Roman | Liberation Serif | exact |
Courier New | Liberation Mono | exact |
Calibri | Carlito | exact |
Cambria | Caladea | exact |
Everything else (Georgia, Verdana, Trebuchet MS, Segoe UI, Garamond, Consolas, …) is substituted by similarity, and the widths differ — so a QA screenshot can show text overflowing a box that fits in PowerPoint, or fitting one that will not.
The server handles this rather than ignoring it: validate_presentation reports a deck's non-metric fonts as an info problem, and the review prompt carries a caveat telling the reviewer to report only clear, substantial overflow for text in those fonts and to judge everything else normally. In template mode this is a note on how to read the results, not a defect — the brand's fonts win.
Telling the agent to use it
Nothing forces the orchestrator to inspect: with the export gate off, export_presentation reports "visual_qa": "unverified" but still succeeds. Put the workflow in the Quick App's system prompt so QA actually happens:
Before planning the deck, call get_design_guidance. If the user supplied a
template, pass its .md sidecar as instructions_content when you load it and
read the result with get_template_instructions; re-read the relevant section
before you build each slide, since those rules win over the general guidance.
Call render_slide_previews to see its slides, and build by
duplicating the template slides that fit your content (duplicate_slide)
rather than adding bare ones.
Build every slide first. Then call validate_presentation and fix any errors
it reports, then call visual_repair_slides once with no slides argument and no
focus — the server's checklist is complete. It reviews every slide and the
deck's story (agenda, misplaced or missing content), repairs what it can and
re-checks — do not call visual_inspect_slides before it. If it returns
"passed": false, do what each action_required entry says with the editing
tools and call visual_repair_slides again with just those slides. If the export response says
"visual_qa": "unverified", say so in your answer rather than presenting the
deck as checked.
After exporting, call render_deck_summary_card and attach the image it returns
alongside the .pptx, so the user can see the finished deck in the chat.One whole-deck visual_repair_slides at the end is the cheap path — one render, one parallel set of vision batches and one coherence call, then follow-up rounds on the changed slides only. It is also the only thing that marks the deck passed, and the only scope that runs the coherence review, so it is the only call that catches an agenda out of sync or content built onto the wrong slide. Per-slide calls cost an orchestrator turn plus a render and a vision round trip each; keep them for the first slide you build from a new layout, where catching a mistake before you copy it pays off.
Sizing the QA work (orchestrator budget, timeouts, pod resources)
Concern | Guidance |
Orchestrator iterations (Quick Apps | Now includes the QA calls the agent makes. Roughly 2 calls per slide plus create/export, plus one inspect or repair per slide: a 20-slide deck needs ~65, so set |
Tool timeout (Quick Apps | Rendering is ~1–2s for a few slides and ~4s for a 10-slide deck (only the layouts in use are rendered, however many the template carries); the rest is vision-model latency. A whole-deck |
Slides actually reviewed |
|
Pod resources | LibreOffice renders in-pod: budget 1 CPU / 2Gi with a writable |
VISUAL_QA_ENFORCE=false registers neither tool and turns slide QA off (the icon review in render_svg_icon is unaffected — it follows the model's presence). The reviewer model can be reached two ways: a direct OpenAI Responses-API endpoint with image input (Azure OpenAI included), or as a DIAL Core deployment via {DIAL_CORE_URL}/openai/deployments/{model}/chat/completions — see the VISION_LLM_* variables. Cost note: each inspect is one render plus one LLM call; each repair round adds a second LLM call.
Logging
Every record is a single line on stderr, so kubectl logs shows one event per line and nothing wraps across lines:
2026-08-20T09:14:02.517Z INFO dial_pptx.tools.presentation export_ok presentation_id=9f3c1a2b… filename=deck.pptx slides=12 bytes=1841203timestamp (UTC) · level · logger · message, with details as key=value pairs. Multi-line content is folded onto the same line with | separators — that includes tracebacks, so a stack trace stays greppable instead of scrolling the pod terminal. FastMCP's default Rich handler (boxed, multi-line, colored) and uvicorn's separate log format are both replaced, so third-party output matches.
LOG_LEVEL sets the verbosity of this server and the libraries under it:
Level | What you get |
| Failures only: blocked exports, render/vision-LLM outages, upload failures |
| The above, plus degradations that don't fail the call: QA rounds that found issues, LRU eviction, auth falling back to the server key, skipped repair operations |
| One line per tool call ( |
| The above, plus per-call argument summaries, render and vision-LLM timings, individual QA issues and repair operations, template content-type coercion, and the underlying HTTP client's own logs |
Handles are truncated (9f3c1a2b…) and argument values are summarized by type and size (template_content=<str:412880>) rather than logged verbatim, so logs never carry a usable presentation handle, a base64 template, or slide text. Credentials are never logged.
Per-subsystem tuning is available in code: loggers are nested under dial_pptx (dial_pptx.visual_qa, dial_pptx.tool.export_presentation, dial_pptx.utils.template, …), so a single subsystem can be raised or lowered independently of LOG_LEVEL.
Multi-tenancy and scaling notes
Presentation handles are server-generated UUIDs and act as unguessable capabilities; clients cannot enumerate or guess other conversations' decks.
Presentation state lives in process memory (bounded by TTL + LRU). Run a single replica, or use session affinity if you scale out — a deck created on one replica is not visible on another.
Calls targeting the same presentation are serialized (python-pptx is not thread-safe); different presentations are handled concurrently.
Every tool call runs on a worker thread rather than the server's single event loop, so an orchestrator's parallel tool calls (e.g. several
render_svg_iconcalls in one agent turn) genuinely overlap instead of queuing behind each other's blocking I/O.PPT_MCP_MAX_CONCURRENT_TOOL_CALLSbounds how many run at once, process-wide, so a burst of concurrent calls cannot flood the pod's CPU. Note that its default is derived fromos.cpu_count(), which reports the node's CPU count rather than the pod's cgroup limit — set it explicitly when the pod's CPU limit is lower than the node's.LibreOffice conversions are bounded separately by
PPT_MCP_MAX_CONCURRENT_CONVERSIONS(default 2) because they are memory-heavy rather than CPU-heavy: eachsofficeprocess peaks around 0.5 GB, so enough concurrent renders to satisfy a CPU-based cap can still exceed the pod's memory limit and make conversions fail intermittently ("source file could not be loaded"). Budget roughly 0.5-1 GB per slot on top of the deck store.
Development
uv venv --python 3.12 .venv && uv pip install -r requirements.txt
.venv/bin/python -m unittest discover -s tests # unit tests
.venv/bin/python spike/fidelity_spike.py <template> # template-fidelity check
.venv/bin/python spike/http_client_check.py # transport smoke testspike/fidelity_spike.py creates a deck from a template through the same code paths the MCP tools use and byte-compares the theme, slide-master, layout, and media parts of template vs output. Local test templates belong in templates-local/ (gitignored).
Credits
This project is built on Office-PowerPoint-MCP-Server by GongRzhe, used under the MIT license, with full git history preserved. The core PowerPoint manipulation tools and utilities are upstream work; this fork adds the remote-transport, multi-tenant state, and DIAL integration layers. The original LICENSE and copyright notice are retained; the upstream README is preserved at docs/UPSTREAM_README.md.
License
MIT — see LICENSE.
Available Tools
53 toolsadd_bullet_pointsC
Add bullet points to a placeholder.
Inputs: slide_index (required), bullet_points (required), placeholder_idx (required), presentation_id. Returns: result
add_chartA
Add a chart to a slide with comprehensive formatting options.
x_axis_title labels the CATEGORY axis and y_axis_title labels the VALUE axis, whatever the chart's orientation — the names are not screen directions. On column, line and area charts the category axis is the horizontal one, so x/y read as expected. On a BAR chart the bars run sideways: the category axis is VERTICAL and the value axis HORIZONTAL, so x_axis_title appears on the vertical axis. Naming a bar chart's axes by where they look on screen is the usual way these two end up swapped.
A 'scatter' chart is the exception to both: it has no category axis, so pass its x values (as numbers) in categories and the matching y values in series_values. Use 'line_markers' when the horizontal axis is really a list of labels.
Inputs: top (required), left (required), width (required), height (required), +13 more. Returns: result
add_combo_chartA
Add a chart whose series are not all the same type, and may use a second value axis.
This is what add_chart cannot do. Reach for it when:
a measure needs a reference line across it — actuals as columns with a target as a line;
two measures share categories but not units — revenue in millions against a margin percentage. On one axis the percentage flattens to nothing along the bottom; on a secondary axis both are readable.
series: one entry per series, plotted in the order given: {"name": "Revenue", "values": [10, 12, 15], "type": "column", "secondary_axis": false, "color": [31, 73, 125], "data_labels": true, "label_position": "outside_end", "trendline": "linear"} "type" is required — column, stacked_column, bar, stacked_bar, line, line_markers, area, stacked_area. Pie and scatter cannot share a plot area with other types; use add_chart for those. "color" is [r, g, b]; omit to take the template's own chart palette, which is usually the right choice. "label_position" on a stacked series must be "center", "inside_end" or "inside_base" — a stacked segment has no outside. "trendline" is linear, movingAvg, exp, log, poly or power.
secondary_axis_title labels the right-hand axis; y_axis_title labels the left one. x_axis_title labels the category axis (see add_chart on why that is not the same as "the horizontal one").
The result is a real, editable PowerPoint chart, not a picture.
Inputs: top (required), left (required), width (required), height (required), +10 more. Returns: result
add_connectorA
Add connector lines/arrows between points on a slide.
Args:
slide_index: Index of the slide (0-based)
connector_type: Type of connector ("straight", "elbow", "curved")
start_x: Starting X coordinate in inches
start_y: Starting Y coordinate in inches
end_x: Ending X coordinate in inches
end_y: Ending Y coordinate in inches
line_width: Width of the connector line in points
color: RGB color as [r, g, b] list
presentation_id: Optional presentation ID (uses current if not provided)
Returns: Dictionary with operation results
Inputs: end_x (required), end_y (required), start_x (required), start_y (required), +5 more. Returns: result
add_icon_to_slideA
Place an icon you rendered with render_svg_icon onto a slide.
The icon lives on this server, so this takes the icon_id that render_svg_icon returned — not a DIAL file URL. Place the same icon_id as many times as the icon repeats; the deck stores the image once however often it appears.
presentation_id: the deck handle. slide_index: 0-based, like the other content tools (visual QA slide numbers are 1-based; slide_index 0 is slide 1). left, top: inches, the top-left corner of the icon's box. size: the box's side in inches — icons are square. About 0.7 for an icon inside a card, 1.0-1.2 for one leading a section. A non-square drawing is centred in that box rather than stretched to fill it.
Returns the shape index and the geometry actually applied.
Inputs: icon_id (required), slide_index (required), presentation_id (required), top, +2 more. Returns: result
add_image_from_dial_urlA
Place an image that already lives in DIAL file storage onto a slide.
Use this for generated imagery: call your image model, save the result to DIAL files, then pass the file URL here. The server downloads the bytes itself, so nothing large passes through your context — prefer this over manage_image(source_type="base64") for anything bigger than a small icon.
image_url: a DIAL file reference — the "files/{bucket}/{path}" URL an upload returns, or the full https URL of that file on this DIAL installation (the ".../api/files/{bucket}/{path}" link an image deployment hands back works as-is). Arbitrary web URLs are NOT downloaded: to use a picture from the web, fetch it yourself and store it in DIAL file storage first.
slide_index: 0-based, like the other content tools (visual QA slide numbers are 1-based; slide_index 0 is slide 1). left, top, width, height: inches. Give width and height to define the box the picture should occupy — for a half-and-half slide on a 13.33in deck, text on the left and left=6.9, top=1.2, width=5.6, height=4.5 for the image. Omit both to keep the image's natural size (clamped to the slide). fit: how the picture relates to that box. "contain" (default) largest undistorted size that fits, centred in the box — safe for photos and illustrations; "cover" fills the box exactly, cropping the overflowing edges; "stretch" forces the exact box and will distort the image.
Returns the shape index and the geometry actually applied ("placed": left/top/width/height in inches), which may be smaller than the box you asked for under "contain".
Inputs: image_url (required), slide_index (required), presentation_id (required), fit, +4 more. Returns: result
add_shapeC
Add an auto shape to a slide with enhanced options.
Inputs: top (required), left (required), width (required), height (required), +9 more. Returns: result
add_slideC
Add a new slide to the presentation with optional background styling.
Inputs: title, color_scheme, layout_index, background_type, +3 more. Returns: result
add_tableC
Add a table to a slide with enhanced formatting options.
Inputs: top (required), cols (required), left (required), rows (required), +11 more. Returns: result
apply_picture_effectsC
Apply multiple picture effects in combination.
Inputs: effects (required), shape_index (required), slide_index (required), presentation_id. Returns: result
apply_professional_designC
Unified professional design tool for themes, slides, and visual enhancements. This applies professional styling and themes rather than structural layout changes.
Inputs: operation (required), title, content, slide_type, +8 more. Returns: result
apply_slide_templateA
Apply a structured layout template to an existing slide. This modifies slide layout and content structure using predefined templates.
Args: slide_index: Index of the slide to apply template to template_id: ID of the template to apply (e.g., 'title_slide', 'text_with_image') color_scheme: Color scheme to use ('modern_blue', 'corporate_gray', 'elegant_green', 'warm_red') content_mapping: Dictionary mapping element roles to custom content image_paths: Dictionary mapping image element roles to file paths presentation_id: Presentation ID (uses current if None)
Inputs: slide_index (required), template_id (required), image_paths, color_scheme, +2 more. Returns: result
auto_generate_presentationB
Automatically generate a presentation based on topic and preferences.
Args: topic: Main topic/theme for the presentation slide_count: Number of slides to generate (3-20) presentation_type: Type of presentation ('business', 'academic', 'creative') color_scheme: Color scheme to use include_charts: Whether to include chart slides include_images: Whether to include image placeholders presentation_id: Presentation ID (uses current if None)
Inputs: topic (required), slide_count, color_scheme, include_charts, +3 more. Returns: result
copy_slide_between_presentationsA
Copy one slide from one open presentation into another.
Use this to merge decks, or to lift a single slide out of a reference deck into the one you are building. Both presentations must be open on this server (you hold both handles).
The slide keeps its own shapes, text and direct formatting, and its images and charts are copied into the target deck. Anything it inherited from its old theme — placeholder fonts, scheme colours — is re-resolved against the TARGET deck's master, so the copy can look different from the original. Inspect the result with visual_inspect_slides.
layout_index: force a particular layout in the target deck. By default the layout is matched by name, then by placeholder structure; the response reports whether a real match was found in "layout_matched".
Inputs: slide_index (required), source_presentation_id (required), target_presentation_id (required), insert_after, +1 more. Returns: result
create_presentationA
Create a new PowerPoint presentation. Returns a presentation_id that must be passed to all subsequent tool calls for this deck.
Inputs: no named parameters. Returns: result
create_presentation_from_templateA
Create a new PowerPoint presentation from a template file. Returns a presentation_id that must be passed to all subsequent tool calls.
Inputs: template_path (required). Returns: result
create_presentation_from_template_contentA
Create a new presentation from an uploaded .pptx template file.
A PowerPoint 97-2003 (.ppt) file is accepted too and converted to .pptx on the way in, where the server has LibreOffice.
template_content: the .pptx/.potx/.ppt template file content, as a data: URI or a base64-encoded string (in DIAL Quick Apps, pass the template file as file:data::files/{bucket}/{path} and it is resolved automatically).
instructions_content: optional — the template's own build instructions, a markdown (.md) file stored beside the template and passed the same way (file:data::files/{bucket}/{path}). Pass it whenever the template has one: it carries the rules for this specific template (which slide to use for what, the accent colour, what the footer must say) that no generic guidance can know. If the file does not exist, omit this argument — the template loads exactly as before.
The template's theme, layouts, masters and branding are preserved. Returns a presentation_id that must be passed to all subsequent tool calls for this deck, and, when instructions were supplied, their section list — read them with get_template_instructions before planning the deck.
Inputs: template_content (required), instructions_content. Returns: result
create_presentation_from_templatesA
Create a complete presentation from a sequence of templates.
Args: template_sequence: List of template configurations, each containing: - template_id: Template to use - content: Content mapping for the template - images: Image path mapping for the template color_scheme: Color scheme to apply to all slides presentation_title: Optional title for the presentation presentation_id: Presentation ID (uses current if None)
Example template_sequence: [ { "template_id": "title_slide", "content": { "title": "My Presentation", "subtitle": "Annual Report 2024", "author": "John Doe" } }, { "template_id": "text_with_image", "content": { "title": "Key Results", "content": "• Achievement 1\n• Achievement 2" }, "images": { "supporting": "/path/to/image.jpg" } } ]
Inputs: template_sequence (required), color_scheme, presentation_id, presentation_title. Returns: result
create_slide_from_templateB
Create a new slide using a layout template.
Args: template_id: ID of the template to use (e.g., 'title_slide', 'text_with_image') color_scheme: Color scheme to use ('modern_blue', 'corporate_gray', 'elegant_green', 'warm_red') content_mapping: Dictionary mapping element roles to custom content image_paths: Dictionary mapping image element roles to file paths layout_index: PowerPoint layout index to use as base (default: 1) presentation_id: Presentation ID (uses current if None)
Inputs: template_id (required), image_paths, color_scheme, layout_index, +2 more. Returns: result
delete_slideA
Remove a slide from the presentation.
Use this to drop template slides whose content you don't need — a template's unused sections, or the fourth column of a three-item layout. Deleting is preferable to blanking a slide out: an emptied slide still shows the template's decoration and reads as a mistake.
slide_index: 0-based. Every later slide shifts down by one, so when removing several, delete from the highest index downwards or re-read get_presentation_info between calls.
Inputs: slide_index (required), presentation_id (required). Returns: result
duplicate_slideA
Copy an existing slide, keeping all of its content and formatting.
This is the way to reuse a corporate template's designed slides: duplicate the slide whose layout suits your next section, then edit the copy's text with manage_text / populate_placeholder. add_slide builds a bare slide from a layout and gets you none of the template's artwork, so prefer duplicating when the template already contains a slide that looks right.
slide_index: 0-based index of the slide to copy. insert_after: 0-based index the copy is placed after; omit to append the copy (or copies) to the end of the deck. count: how many copies to make, for a section that repeats — the copies land consecutively.
Pictures are shared with the original (same bytes, no size cost); charts, SmartArt and embedded objects are cloned, so editing the copy's chart does not change the original's. Speaker notes are copied. Returns "new_slide_indexes" — read them before editing, since inserting in the middle shifts every later slide.
Inputs: slide_index (required), presentation_id (required), count, insert_after. Returns: result
export_presentationA
Export the presentation to DIAL file storage and return its file URL.
Use this (not save_presentation) to deliver the finished deck to the user.
format: "pptx" (default) for the editable deck; "pdf" for a read-only copy; "both" to deliver the pair, which is what a user who asked to "share" or "send" a deck usually wants. PDF is produced by rendering the deck through LibreOffice, so it needs the renderer and reflects that renderer's fonts — see get_design_guidance("type"). Export does NOT run visual QA for you: inspect the deck with visual_inspect_slides / visual_repair_slides while you build it, or at least once before exporting. The response carries "visual_qa": "passed" | "unverified" | "unavailable" so you can tell whether the deck was ever checked. ALWAYS include the returned file_url in your final answer as an attachment so the user can download the presentation.
Inputs: presentation_id (required), format, filename. Returns: result
extract_presentation_textARead-only
Extract all text content from all slides in the presentation.
Use this as the content-QA read on a finished deck: check for missing or duplicated sections, typos, wrong order, and — on a deck built from a template — placeholder text the template shipped with that was never replaced ("Lorem ipsum", "Click to add title", "XXX", "[insert ...]"). Speaker notes come back in each slide's "speaker_notes" but are kept out of "all_text_combined", which holds only what the audience sees.
Inputs: presentation_id, include_slide_info. Returns: result
extract_slide_textARead-only
Extract all text content from a specific slide, speaker notes included.
Inputs: slide_index (required), presentation_id. Returns: result
format_chart_seriesA
Restyle one series of an existing chart.
Use it to pin a series to a brand colour, to label just the series that carries the point rather than all of them, or to add a trendline.
series_index is 0-based across the whole chart, in the order the series were added. label_position: center, inside_end, inside_base, outside_end (bars and columns), or above / below / left / right (line charts). A stacked series rejects outside_end. number_format: an Excel format string, e.g. "0.0%" or "#,##0". trendline: linear, movingAvg, exp, log, poly or power; trendline_period is the window for movingAvg or the order for poly.
Inputs: shape_index (required), slide_index (required), series_index (required), color, +6 more. Returns: result
format_table_cellC
Format a specific table cell.
Inputs: col (required), row (required), shape_index (required), slide_index (required), +9 more. Returns: result
get_design_guidanceARead-only
How to make the deck look like someone designed it.
Read this BEFORE planning a deck, and re-read the relevant section when you hit a decision it covers. It carries what the individual tools cannot: deck structure, layout and spacing, type scale, colour, chart and table choices, the visual habits that make a deck look machine-generated, and the build loop that catches problems while they are still cheap.
It also covers two things specific to this server: how differently to behave when the user supplied a corporate template (the default — you inherit their design rather than inventing one), and which fonts this server's renderer reproduces at true width, which is what determines whether you can trust a visual_inspect_slides verdict on text fit.
section: omit for the whole document (a few pages), or name one — call once with no argument to see the available section names in "sections".
Inputs: section. Returns: result
get_dial_storage_infoARead-only
Report which DIAL file storage this server can actually read and write on this request: the identity in use, the bucket it owns, and its appdata path.
Use it when a file URL is refused: DIAL storage is per-user, so a file whose URL names a different bucket than the one reported here cannot be downloaded, however valid the URL looks.
Inputs: no named parameters. Returns: result
get_icon_guidanceARead-only
The style guide for drawing an icon as SVG, and how to use it.
Read this before writing SVG for render_svg_icon: it holds the two icon templates (line art for a light surface, white-on-filled for a coloured one), the rules that keep a hand-drawn icon looking like the rest of the set, worked path examples you can adapt, and the decision of when a custom icon is the right answer at all.
Returns the document as "guidance".
Inputs: no named parameters. Returns: result
get_presentation_infoCRead-only
Get information about a presentation.
Inputs: presentation_id. Returns: result
get_server_infoARead-only
Report this server's version, how many tools it is actually exposing, and whether the optional DIAL and visual QA integrations are configured.
Tool registration is dynamic — the visual QA tools appear only when a vision LLM is configured — so "tools" is counted at call time rather than hardcoded.
Inputs: no named parameters. Returns: result
get_slide_infoARead-only
Get a slide's layout, placeholders and every element on it — with its 0-based index (the shape_index manage_shape and manage_text take), position and size in inches, and a preview of its text.
Inputs: slide_index (required), presentation_id. Returns: result
get_template_file_infoBRead-only
Get information about a template file including layouts and properties.
Inputs: template_path (required). Returns: result
get_template_infoBRead-only
Get detailed information about a specific template.
Args: template_id: ID of the template to get information about
Inputs: template_id (required). Returns: result
get_template_instructionsARead-only
The build instructions that came with this deck's template.
Where get_design_guidance is the same for every deck, this is the template author's own rules for the template in front of you: which slide to duplicate for what, the accent colour, the footer text, the slides that must not be touched. It exists only when the template was loaded with an instructions document beside it — the loading tool says so in its "template_instructions" field.
Read it before planning the deck, and re-read the section you need before building a slide: a long build will push the first read out of your context, and these rules override the generic guidance wherever the two disagree.
section: omit for the whole document, or name one from the "sections" list that every response carries.
Inputs: presentation_id (required), section. Returns: result
list_slide_templatesARead-only
List all available slide layout templates.
Inputs: no named parameters. Returns: result
manage_fontsC
Unified font management tool for analysis, optimization, and recommendations.
Inputs: font_path (required), operation (required), output_path, text_content, +1 more. Returns: result
manage_hyperlinksA
Manage hyperlinks in text shapes and runs.
Args: operation: Operation type ("add", "remove", "list", "update") slide_index: Index of the slide (0-based) shape_index: Index of the shape on the slide (0-based) text: Text to make into hyperlink (for "add" operation) url: URL for the hyperlink run_index: Index of text run within the shape (0-based) presentation_id: Optional presentation ID (uses current if not provided)
Returns: Dictionary with operation results
Inputs: operation (required), slide_index (required), url, text, +3 more. Returns: result
manage_imageC
Unified image management tool for adding and enhancing images.
Inputs: operation (required), slide_index (required), image_source (required), top, +13 more. Returns: result
manage_shapeADestructive
Change or remove one existing element (text box, shape, picture, icon, chart, table, placeholder) on a slide.
Find shape_index with get_slide_info, which lists every element with its text and position. Indexes are 0-based and shift down by one after a delete or move_to_slide, so re-read get_slide_info before a second call on the same slide (or work from the highest index down).
operation:
"delete": remove the element. A placeholder's text is cleared instead, since the slide layout would otherwise show its prompt.
"clear_text": empty the element's text, keeping it and its format (for a table, every cell).
"set_geometry": move and/or resize — left, top, width, height in inches; pass only what changes.
"bring_to_front" / "send_to_back": restack it above or below every other element on the slide.
"move_to_slide": move it to target_slide_index (0-based) at the same position (or at left/top if given). Use this for content built on the wrong slide. A placeholder's text moves into the target's matching placeholder.
To replace an element's content, prefer editing it in place (populate_placeholder, manage_text) over deleting and re-adding it — the element keeps its template formatting that way.
Inputs: operation (required), shape_index (required), slide_index (required), presentation_id (required), +5 more. Returns: result
manage_slide_mastersB
Access and manage slide master properties and layouts.
Args: operation: Operation type ("list", "get_layouts", "get_info") master_index: Index of the slide master (0-based) layout_index: Index of specific layout within master (0-based) presentation_id: Optional presentation ID (uses current if not provided)
Returns: Dictionary with slide master information
Inputs: operation (required), layout_index, master_index, presentation_id. Returns: result
manage_slide_transitionsC
Manage slide transitions and timing.
Args: slide_index: Index of the slide (0-based) operation: Operation type ("set", "remove", "get") transition_type: Type of transition (basic support) duration: Duration of transition in seconds presentation_id: Optional presentation ID (uses current if not provided)
Returns: Dictionary with transition information
Inputs: operation (required), slide_index (required), duration, presentation_id, +1 more. Returns: result
manage_speaker_notesA
Read, write or clear a slide's speaker notes.
Notes belong in the notes pane, never in a text box on the slide itself — a "notes" textbox is visible to the audience during the presentation.
operation:
"get" return the notes for slide_index, or for every slide when
slide_index is omitted;
"set" replace the notes on slide_index with text;
"clear" remove the notes from slide_index.
Inputs: operation (required), presentation_id (required), text, slide_index. Returns: result
manage_textC
Unified text management tool for adding, formatting, validating text, and formatting multiple text runs.
Inputs: operation (required), slide_index (required), top, bold, +19 more. Returns: result
move_slideA
Move a slide to a different position in the deck.
slide_index and new_index are both 0-based, and new_index is the position the slide ends up at once it has been lifted out — moving slide 0 to index 3 in a five-slide deck leaves it fourth.
Inputs: new_index (required), slide_index (required), presentation_id (required). Returns: result
open_presentationARead-only
Open an existing PowerPoint presentation from a file. Returns a presentation_id that must be passed to all subsequent tool calls.
Inputs: file_path (required). Returns: result
optimize_slide_textA
Optimize text elements on a slide for better readability and fit.
Args: slide_index: Index of the slide to optimize auto_resize: Whether to automatically resize fonts to fit containers auto_wrap: Whether to apply intelligent text wrapping optimize_spacing: Whether to optimize line spacing min_font_size: Minimum allowed font size max_font_size: Maximum allowed font size presentation_id: Presentation ID (uses current if None)
Inputs: slide_index (required), auto_wrap, auto_resize, max_font_size, +3 more. Returns: result
populate_placeholderC
Populate a placeholder with text.
Inputs: text (required), slide_index (required), placeholder_idx (required), presentation_id. Returns: result
render_svg_iconARead-only
Render an SVG icon you have written to a PNG, and check it.
Use this when a slide needs an icon: call get_icon_guidance, write the SVG yourself following it, pass it here, and then place the returned icon_id with add_icon_to_slide. PowerPoint cannot embed SVG, which is why the rasterizing happens here rather than in your answer.
The icon is kept on the server, not in DIAL file storage, so the handle is all you need — and add_icon_to_slide is what places it, not add_image_from_dial_url (that tool reads DIAL storage, which is for images your image model generated).
The returned icon has been looked at. You cannot see what you drew, so the vision model is asked whether the render is free of artifacts and still readable at slide size. If "passed" is false, do not place the icon: fix the SVG as the issues say and call this again. An icon_id is returned only for an icon that is fit to use.
svg: the SVG source, self-contained line art — , , , , , . No text elements, no embedded images, no external references; a text label belongs in a textbox on the slide, not in the icon. concept: what the icon depicts ("supply chain", "regulatory approval"). Passed to the reviewer, which is the difference between "this is a clean pictogram" and "this reads as the thing you meant". size: longest side of the PNG in pixels (default 800). An icon is displayed at about an inch, so this is deliberate headroom; there is no reason to raise it. background: the icon's own background. Leave "transparent" — that is the whole advantage over a stock icon, and it is what lets the same icon sit on a white slide and on a brand-coloured panel. A hex colour bakes a solid rectangle in behind it. slide_background: hex colour of the surface the icon will sit on. The review judges legibility and contrast against it, so set it to the panel colour for an icon going on a coloured card. review: set false only to skip the vision check (faster, unverified).
Returns "icon_id" (pass it straight to add_icon_to_slide), the pixel size, and "review" with the verdict and any issues. The handle stays valid for the session, so reuse it wherever the icon repeats instead of rendering the same drawing again.
Inputs: svg (required), size, review, concept, +2 more. Returns: result
save_presentationCDestructive
Save a presentation to a file.
Inputs: file_path (required), presentation_id. Returns: result
set_core_propertiesC
Set core document properties.
Inputs: title, author, subject, comments, +2 more. Returns: result
update_chart_dataA
Replace existing chart data with new categories and series.
Args: slide_index: Index of the slide (0-based) shape_index: Index of the chart shape (0-based) categories: List of category names series_data: List of dictionaries with 'name' and 'values' keys presentation_id: Optional presentation ID (uses current if not provided)
Returns: Dictionary with operation results
Inputs: categories (required), series_data (required), shape_index (required), slide_index (required), +1 more. Returns: result
validate_presentationARead-only
Check the deck for structural faults, without rendering it.
Run this before export. It is fast — no rendering, no model call — and it catches the class of defect visual inspection cannot: relationships that do not resolve, charts with no data, shapes off the canvas, pictures stretched out of proportion, leftover template placeholder text, notes shared between two slides.
It does NOT judge appearance. Overflowing text, overlaps and spacing are visual_inspect_slides' job; the two are complementary and a finished deck deserves both.
min_severity: "error" reports only faults that can break the file in PowerPoint; "warning" (default) adds the defects a user would notice; "info" adds advisories, notably fonts this server's renderer substitutes with different metrics — which is what makes a text-fit finding from visual QA approximate.
Returns "ok" (no errors), per-severity "counts", and a "problems" list where each entry names the slide, the shape, what is wrong and the tool that fixes it.
Inputs: presentation_id (required), min_severity. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 53 tools
Several tool clusters overlap heavily: four create_presentation* variants, multiple template-related tools, and text editing spread across manage_text, populate_placeholder, add_bullet_points, and optimize_slide_text. An agent would need to read long descriptions to reliably pick the right tool.
Most tools follow a snake_case verb_noun pattern, but it is diluted by eight generic manage_* tools, three create_presentation_from* variants, and apply_* tools covering different concerns. The style is consistent, but the verb vocabulary is too broad to be truly predictable.
53 tools is well into the heavy range even for a feature-rich PowerPoint server. Several families could be consolidated, and the sheer count adds significant selection burden for agents.
The surface covers presentation lifecycle, slide CRUD, text, tables, charts, images, icons, notes, validation, and export with no obvious dead ends. Minor gaps like editing an existing slide's background or adding media exist, but they are edge cases.
Maintenance
Related MCP Connectors
AI presentation maker and slide generator for MCP clients: create, edit and export editable PowerPoint (.pptx) decks and Word (.docx) documents from a chat prompt. Add your own text or notes as sources, pick a format (pitch deck, report, lecture, one-pager) and let Slaide plan, write and design the slides. Search and reopen your documents, track build progress, cancel jobs and download the finished file. Free account, OAuth sign-in, no API key.
AI presentation maker and slide generator for MCP clients: create, edit and export editable PowerPoint (.pptx) decks and Word (.docx) documents from a chat prompt. Add your own text or notes as sources, pick a format (pitch deck, report, lecture, one-pager) and let Slaide plan, write and design the slides. Search and reopen your documents, track build progress, cancel jobs and download the finished file. Free account, OAuth sign-in, no API key.
Generate, edit, merge, translate and PDF-convert PowerPoint (.pptx) over MCP. 8 tools.
AI presentation and report generation: slides, diagrams, PPTX export, live preview MCP App.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceCross-platform MCP server for Microsoft PowerPoint automation, enabling slide management, template remapping, and real-time evaluation via natural language.MIT
- AlicenseAqualityDmaintenanceMCP server for AI-driven document creation, enabling generation of PowerPoint decks with consistent design themes and auto-generated images via ComfyUI.5GPL 3.0
- FlicenseNot gradedqualityDmaintenanceMCP server for generating PowerPoint presentations, supporting AI-generated or manual slide creation with 21 layouts, rendering via pptxgenjs, and uploading to OCI Object Storage.-
- FlicenseNot gradedqualityDmaintenanceTemplate-driven PowerPoint design MCP server for Windows, enabling slide creation and manipulation via COM automation.1-