Skip to main content
Glama
Kookerella-Ltd

Excel MCP Server (FsOpenXmlDsl)

Official

create_workbook_from_xml

Builds an Excel workbook from XML that matches the server's schema, saving it to a specified path. Use it to convert XML reports or XSLT output into .xlsx files without needing .NET or OOXML expertise.

Instructions

Builds a new Excel workbook from XML matching Kookerella.FsOpenXmlDsl's own embedded schema (Xml.xsd) and saves it to disk - the inverse of generate_xml. The natural target for a caller that already produces data as XML (e.g. an XSLT pipeline generating a report) and wants to reach Excel without learning the OOXML schema, this library's own F#/C# API, or needing .NET installed at all - like generate_xml, 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_xml 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 XML.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xmlYesThe workbook XML content - a <workbook> root element matching Xml.xsd.
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.3/5.0
Behavior4/5

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

Annotations are absent, so the description carries the behavioral burden. It discloses the write side effect ('saves it to disk'), the schema-validation expectation ('matching ... Xml.xsd'), and the server-side execution model. It could mention overwrite behavior or error conditions, but the core behavioral traits are clearly surfaced.

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?

The purpose is front-loaded, and the additional clauses about XSLT pipelines, server-side .NET, CLI access, and feature coverage all add decision-relevant value. It is somewhat wordy, but no sentence is purely filler.

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?

Given two well-documented parameters, no annotations, and no output schema, the description covers purpose, usage context, alternatives, side effects, and schema constraints. Minor gaps such as overwrite semantics and failure behavior prevent a perfect score.

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 coverage is 100%: both `xml` and `path` already have detailed descriptions, including the required `<workbook>` root and the directory-must-exist constraint. The description reinforces these concepts but adds little new parameter-level detail beyond purpose-level context.

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 a specific action: 'Builds a new Excel workbook from XML matching ... and saves it to disk.' It explicitly positions itself as 'the inverse of generate_xml' and distinguishes itself from create_workbook by noting it is 'not limited to plain cell values'—strong sibling differentiation.

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 names the intended audience and scenario: callers that 'already produce data as XML (e.g. an XSLT pipeline generating a report)' and want to reach Excel without learning OOXML or the F#/C# API. It also contrasts with create_workbook and shares context with generate_xml, giving clear when-to-use and when-not-to-use guidance.

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