Skip to main content
Glama

create_document_from_json

Turn JSON into a Word document and save it to disk. This tool creates styled .docx files directly from JSON, skipping OOXML and .NET requirements.

Instructions

Builds a new Word document from JSON matching the shape generate_json produces (see the main library repo's Json.schema.json) and saves it to disk - the inverse of generate_json. The JSON-side equivalent of create_document_from_xml, for a caller that already produces data as JSON and wants to reach Word without learning the OOXML schema, this library's own F#/C# API, or needing .NET installed at all - the .NET work happens inside this server, so any language can call it directly, and a human with no MCP client at all can get the same result via fsworddsl-mcp build from a plain shell. Covers the same section/paragraph-level feature set generate_json does; unlike create_document, this isn't limited to plain paragraph text - named styles, tables, images, and every other modeled feature can be expressed in the JSON.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
jsonYesThe document JSON content - an object matching Json.schema.json's root shape.
pathYesOutput file path, e.g. "C:\reports\memo.docx". The directory must already exist.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations provided, the description carries the behavioral burden. It clearly states this is a filesystem write operation, mentions that .NET execution happens server-side, and notes the CLI-equivalent path. It does not disclose overwrite semantics or error behavior, but the core side effect is unambiguous.

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

Conciseness3/5

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

The description is a single long, winding sentence with several embedded clauses and parenthetical asides, making it harder to parse quickly. The core action is front-loaded and the content is dense, but it would benefit from being split into a couple of crisp sentences.

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?

For a simple two-parameter tool with no output schema, the description covers the input contract, output destination, feature parity, and relationship to siblings. It does not explain overwrite behavior or return values, but those are secondary to correct invocation given the clear write-to-disk contract.

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 description coverage for the two parameters is 100%, so the baseline is 3. The description adds meaning by tying the json parameter to generate_json's output shape, enumerating supported features like named styles, tables, and images, and confirming path is the disk target.

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 opens with a specific action and resource: "Builds a new Word document from JSON... and saves it to disk." It also clearly separates this tool from siblings by calling it "the inverse of generate_json," "the JSON-side equivalent of create_document_from_xml," and by contrasting it with create_document's plain-text-only limitation.

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?

It explicitly says when to use this tool: for callers who already produce JSON and want Word output without learning OOXML, the F#/C# API, or needing .NET installed. It also names alternatives and distinguishes feature coverage, so an agent can route between this tool, create_document_from_xml, and create_document.

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

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/Kookerella-Ltd/Kookerella.FsWordDsl'

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