Skip to main content
Glama
Kookerella-Ltd

Excel MCP Server (FsOpenXmlDsl)

Official

create_workbook_from_json

Creates an Excel workbook from JSON data, supporting styling, tables, and charts, then saves it to the specified path.

Instructions

Builds a new Excel workbook 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_workbook_from_xml, for a caller that already produces data as JSON and wants to reach Excel 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 fsopenxmldsl-mcp build from a plain shell. Covers the same worksheet/workbook-level feature set generate_json does; unlike create_workbook, this isn't limited to plain cell values - styling, tables, charts, and every other modeled feature can be expressed in the JSON.

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.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 discloses the key side effect ('saves it to disk'), explains that .NET execution happens server-side, and says the tool covers styling, tables, charts, and other modeled features. However, it does not state whether an existing file at the output path is overwritten or what the tool returns after saving.

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 purpose is front-loaded, but the description is a single long run-on sentence with many subordinate clauses and added CLI/human-usability context. Each point has value, but the density and lack of structural breaks make it harder to scan quickly than it should be.

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 two-parameter tool with no output schema, the description is largely complete: it covers the input format, output path, feature scope, relationship to generate_json, and alternative invocation via CLI. The main omissions are overwrite behavior and return value, which prevents a 5.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the schema already documents both parameters, so the baseline is 3. The description adds meaningful context beyond that by tying the json parameter to the exact shape 'generate_json produces' and clarifying the output path's role ('saves it to disk'), which helps an agent understand parameter semantics without opening 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 opens with a specific verb and resource: 'Builds a new Excel workbook from JSON... and saves it to disk.' It immediately positions the tool as the inverse of generate_json and distinguishes it from create_workbook and create_workbook_from_xml, so an agent can identify what this tool does and what it is not.

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 clearly states when to use this tool: 'for a caller that already produces data as JSON and wants to reach Excel without learning the OOXML schema... or needing .NET installed at all.' It names alternatives explicitly ('The JSON-side equivalent of create_workbook_from_xml', 'unlike create_workbook') and why this one is the right choice.

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