Skip to main content
Glama

Export (PDF, Excel, Word, PowerPoint…)

iwork_export
Destructive

Export Numbers, Pages, or Keynote files to PDF, xlsx, docx, pptx, or images for sharing and handover. Source verified unchanged.

Instructions

Export to another format. Numbers: pdf | xlsx | csv. Pages: pdf | docx | epub | txt | rtf. Keynote: pdf | pptx | images | movie. Optional password (+hint) for pdf/xlsx/docx/pptx, image_quality (good|better|best), image_format for slide images (jpeg|png|tiff). Default output sits next to the source. The export is checked against the source with a second tool and the source is verified unchanged. Needs macOS + the app. Use to hand the result over in another format (PDF, Excel, Word, PowerPoint, images). Never export to docx/pptx/xlsx to edit and convert back: edit the iWork file directly.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
outNoOutput path (a folder for images); omit to write next to the source.
pathYesPath to the .numbers, .key or .pages file (absolute, or starting with ~).
formatYesNumbers: pdf | xlsx | csv. Pages: pdf | docx | epub | txt | rtf. Keynote: pdf | pptx | images | movie.
passwordNoOptional password for pdf, xlsx, docx or pptx.
overwriteNotrue = replace an existing output (the old one is kept as a backup or returned). Default false.
image_formatNoSlide images only: jpeg | png | tiff.
image_qualityNogood | better | best.
password_hintNoOptional hint shown with the password prompt.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv2.4.1
    • addedInput schema / properties / format / description
      Added value: +"Numbers: pdf | xlsx | csv. Pages: pdf | docx | epub | txt | rtf. Keynote: pdf | pptx | images | movie."
    • addedInput schema / properties / image_format / description
      Added value: +"Slide images only: jpeg | png | tiff."
    • addedInput schema / properties / image_quality / description
      Added value: +"good | better | best."
    • addedInput schema / properties / out / description
      Added value: +"Output path (a folder for images); omit to write next to the source."
    • addedInput schema / properties / overwrite / description
      Added value: +"true = replace an existing output (the old one is kept as a backup or returned). Default false."
    • addedInput schema / properties / password / description
      Added value: +"Optional password for pdf, xlsx, docx or pptx."
    • addedInput schema / properties / password_hint / description
      Added value: +"Optional hint shown with the password prompt."
    • addedInput schema / properties / path / description
      Added value: +"Path to the .numbers, .key or .pages file (absolute, or starting with ~)."
  2. First observedv2.4.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and idempotentHint=false, so the safety profile is covered. The description adds genuinely new context: the export is verified against the source by a second tool, the source is confirmed unchanged, and output defaults next to the source. It does not discuss failure modes (e.g., what happens if the format is unsupported for that app) or the backup behavior on overwrite, which the schema covers instead.

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?

Front-loads the core purpose and format matrix, then moves to optional settings and caveats in a logical order. Slightly repetitive — the per-app format list duplicates the schema's format description and the title — but every remaining sentence (verification, macOS requirement, the edit-in-place warning) earns its place.

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?

An output schema exists, so return-value explanation is correctly omitted, and annotations plus the full param schema cover the mechanics. The description supplies the platform requirement and the post-export verification step, which are not in structured fields. It stops short of covering error/unsupported-format handling, leaving a small gap for a mutation tool with destructive semantics.

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 all eight parameters are already documented in the schema, including out, password, overwrite, image_format, and image_quality. The description restates the format options and mentions password/hint/image settings, but adds no syntax, constraints, or defaults beyond the structured data. Baseline 3 is appropriate.

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?

States a specific verb (export) and resource, and enumerates the exact format matrix per app (Numbers: pdf|xlsx|csv, Pages: pdf|docx|epub|txt|rtf, Keynote: pdf|pptx|images|movie). This lets an agent distinguish it from conversion-adjacent siblings like iwork_verify_format or iwork_create without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit when-to-use ('Use to hand the result over in another format') plus a clear when-not with an alternative: 'Never export to docx/pptx/xlsx to edit and convert back: edit the iWork file directly.' Also names the platform prerequisite (macOS + the app). Nothing is left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.