Skip to main content
Glama

create_office_document

Create new Word, Excel, or PowerPoint files from structured content blocks (headings, paragraphs, tables, images, math formulas) with LaTeX markup. Saves to disk at a specified path.

Instructions

Create a NEW Word (.docx), Excel (.xlsx), or PowerPoint (.pptx) file from a structured content list of typed blocks (heading, paragraph, formula, table, image), with LaTeX-style markup (\bfseries{bold}) and math formulas (\frac{a}{b}). Writes the file to output_path (default: a temp file in the system temp directory) and it persists on disk. To edit an existing file, use edit_office_document instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
styleNoGlobal document style.
formatYesDocument format: - "docx": Word document — reports, letters, contracts, proposals - "xlsx": Excel workbook — spreadsheets, data tables, charts - "pptx": PowerPoint — slides, presentations, pitch decks
contentYesOrdered list of content blocks.
optionsNoTool options.
metadataNoDocument metadata (title, author, etc.).
output_pathNoOutput file path.
template_dataNoKey-value pairs to fill {{placeholder}} in content.
Behavior4/5

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

The description adds behavioral context beyond the annotations by explaining the default output path (system temp directory) and that files persist on disk. It does not disclose potential overwrite behavior, but the annotations already cover safety, and the creation context implies non-destructive behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences, front-loaded with the core purpose, and efficiently includes the key alternative tool. Every sentence earns its place without unnecessary verbosity.

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 (multiple formats, content blocks, markup), the description is complete enough: it covers supported formats, content types, LaTeX markup, output path behavior, and the editing alternative. The schema fills in the remaining details, so the description does not need to repeat them.

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?

The schema has 100% parameter description coverage, so the baseline is 3. The description adds value by clarifying the default output_path behavior (temp file), which is not fully explicit in the schema. It also reinforces the content block concept, but that is already well-defined in the schema.

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 tool's purpose: creating a NEW Word, Excel, or PowerPoint file from structured content. It uses specific verbs and resource types, and explicitly distinguishes itself from edit_office_document, making it easy to differentiate among siblings.

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?

The description gives explicit when-to-use guidance for creating new documents and provides a direct when-not-to-use alternative: 'To edit an existing file, use edit_office_document instead.' This clearly directs the agent to the appropriate sibling for editing tasks.

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/Tianshang301/TianshangScribe'

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