Skip to main content
Glama

build_xlsx_workbook

Idempotent

pdfpeek: Build an Excel workbook from JSON. To read a workbook back use convert_excel_to_json; for slides use build_pptx_deck. Returns file (.xlsx) and sheet_summary. Explicit columns drop extra keys unless reject_extra_keys=true (uncharged 422). Quoted integers must be whole numbers. Bad integers or misplaced commas: uncharged 422 invalid_cell. No formulas. Max 32,767 chars/cell; sheet names: max 31, no [ ] : * ? / . Typically under 1 s. Price: USD 0.005. No free tier. Docs: https://tanod.dev/learn/xlsx-build-api.html

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "sheets": "<sheets>"
    },
    "name": "build_xlsx_workbook"
  }
}

Input Schema

NameRequiredDescriptionDefault
outputNobase64 (default): inline. url: stored for 24 hours; link, metadata.base64
sheetsYesOrdered, uniquely named sheets. Max 50,000 cells; object rows with extra keys count those keys.
filenameNoDefaults to workbook.xlsx; adds .xlsx. Keeps letters, digits, spaces, dots, dashes and underscores.
reject_extra_keysNoReject keys not in explicit columns.

Output Schema

NameRequiredDescriptionDefault
fileNo
rowsNo
cellsNo
errorNoOnly on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object.
sheetsNo
operationNo
output_bytesNo
sheet_summaryNo
formula_like_stringsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $defs / XlsxColumn / properties / type / description
      Previous value: -"Omit to use JSON types. Numeric strings: dot decimal, thousands commas (1,234.56). 16+ digit integers as text. Errors: 422."New value: +"Omit for JSON types. Dot decimal; thousands commas. Quoted integers must be whole numbers. 16+ digit integers as text."
  2. Changed13 schema fields changed
    • changedInput schema / $defs / XlsxColumn / properties / format / description
      Previous value: -"Custom Excel number format (for example \"€#,##0.00\") instead of the type's default."New value: +"Custom Excel number format overrides type default."
    • changedInput schema / $defs / XlsxColumn / properties / header / description
      Previous value: -"Header text (also the key that picks the value when rows are objects)."New value: +"Header and object row key."
    • changedInput schema / $defs / XlsxColumn / properties / type / description
      Previous value: -"Numeric strings: dot decimal, thousands commas (1,234.56). 16+ digit integers as text. Omit for JSON types. Errors: 422."New value: +"Omit to use JSON types. Numeric strings: dot decimal, thousands commas (1,234.56). 16+ digit integers as text. Errors: 422."
    • changedInput schema / $defs / XlsxColumn / properties / width / description
      Previous value: -"Column width in characters; default: fitted to the content."New value: +"Width in characters; defaults to autofit."
    • changedInput schema / $defs / XlsxSheet / properties / autofilter / description
      Previous value: -"Filter buttons on the header row."New value: +"Add header filters."
    • changedInput schema / $defs / XlsxSheet / properties / columns / description
      Previous value: -"Typed columns. Omit them and object rows give the headers from their keys (first-seen order); array rows then have no header row."New value: +"Typed columns. If omitted: object keys in first-seen order; no header for arrays."
    • changedInput schema / $defs / XlsxSheet / properties / freeze_header / description
      Previous value: -"Freeze the header row."New value: +"Freeze header."
    • changedInput schema / $defs / XlsxSheet / properties / repeat_header_on_print / description
      Previous value: -"Repeat the generated header on each page in apps that honor Print Titles."New value: +"Repeat header on printed pages in apps that honor Print Titles."
    • changedInput schema / $defs / XlsxSheet / properties / rows / description
      Previous value: -"Array rows (by position) or object rows (by header); cells: string, number, boolean or null (empty). Send identifiers as strings with type string."New value: +"Array by position or object by header. Null is empty. Send identifiers as strings with type string."
    • changedInput schema / $defs / XlsxSheet / properties / wrap_multiline / description
      Previous value: -"Wrap text cells with a line feed, including headers."New value: +"Wrap text with line feeds, including headers."
    • changedInput schema / properties / filename / description
      Previous value: -"Name of the returned file (default workbook.xlsx; .xlsx is added when missing; only letters, digits, space, dot, dash and underscore are kept)."New value: +"Defaults to workbook.xlsx; adds .xlsx. Keeps letters, digits, spaces, dots, dashes and underscores."
    • changedInput schema / properties / reject_extra_keys / description
      Previous value: -"Reject object keys without an exact match in explicit columns."New value: +"Reject keys not in explicit columns."
    • changedInput schema / properties / sheets / description
      Previous value: -"The sheets, in order: 1-20, each with a unique name, optional typed columns and rows (at most 50,000 cells in all; an object row with more keys than columns counts its keys)."New value: +"Ordered, uniquely named sheets. Max 50,000 cells; object rows with extra keys count those keys."
  3. Changed1 schema field changed
    • changedInput schema / $defs / XlsxColumn / properties / type / description
      Previous value: -"Sets type and format; mismatches are a 422. Numeric types parse numeric strings; integers of 16 or more digits are stored as text to keep every digit. Omit to follow JSON values."New value: +"Numeric strings: dot decimal, thousands commas (1,234.56). 16+ digit integers as text. Omit for JSON types. Errors: 422."
  4. Changed1 schema field changed
    • addedInput schema / $defs / XlsxSheet / properties / wrap_multiline
      Added value: +{
      +  "default": false,
      +  "description": "Wrap text cells with a line feed, including headers.",
      +  "type": "boolean"
      +}
  5. Changed1 schema field changed
    • addedInput schema / properties / reject_extra_keys
      Added value: +{
      +  "default": false,
      +  "description": "Reject object keys without an exact match in explicit columns.",
      +  "type": "boolean"
      +}
  6. Changed1 schema field changed
    • addedInput schema / $defs / XlsxSheet / properties / repeat_header_on_print
      Added value: +{
      +  "default": false,
      +  "description": "Repeat the generated header on each page in apps that honor Print Titles.",
      +  "type": "boolean"
      +}
  7. Changed22 schema fields changed
    • removedInput schema / $defs / XlsxColumn / properties / format / default
      Removed value: -null
    • removedInput schema / $defs / XlsxColumn / properties / format / title
      Removed value: -"Format"
    • removedInput schema / $defs / XlsxColumn / properties / header / title
      Removed value: -"Header"
    • removedInput schema / $defs / XlsxColumn / properties / type / default
      Removed value: -null
    • removedInput schema / $defs / XlsxColumn / properties / type / title
      Removed value: -"Type"
    • removedInput schema / $defs / XlsxColumn / properties / width / default
      Removed value: -null
    • removedInput schema / $defs / XlsxColumn / properties / width / title
      Removed value: -"Width"
    • removedInput schema / $defs / XlsxColumn / title
      Removed value: -"XlsxColumn"
    • removedInput schema / $defs / XlsxSheet / properties / autofilter / title
      Removed value: -"Autofilter"
    • removedInput schema / $defs / XlsxSheet / properties / columns / default
      Removed value: -null
    • removedInput schema / $defs / XlsxSheet / properties / columns / title
      Removed value: -"Columns"
    • removedInput schema / $defs / XlsxSheet / properties / freeze_header / title
      Removed value: -"Freeze Header"
    • removedInput schema / $defs / XlsxSheet / properties / name / title
      Removed value: -"Name"
    • removedInput schema / $defs / XlsxSheet / properties / rows / title
      Removed value: -"Rows"
    • removedInput schema / $defs / XlsxSheet / title
      Removed value: -"XlsxSheet"
    • removedInput schema / properties / filename / default
      Removed value: -null
    • removedInput schema / properties / filename / title
      Removed value: -"Filename"
    • removedInput schema / properties / output / title
      Removed value: -"Output"
    • removedInput schema / properties / sheets / title
      Removed value: -"Sheets"
    • removedInput schema / title
      Removed value: -"build_xlsx_workbookArguments"
    • removedOutput schema / properties / file / properties
      Removed value: -{
      -  "bytes": {
      -    "description": "Bytes.",
      -    "type": [
      -      "integer",
      -      "null"
      -    ]
      -  },
      -  "content_type": {
      -    "description": "MIME type.",
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "data_base64": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "dpi": {
      -    "type": [
      -      "integer",
      -      "null"
      -    ]
      -  },
      -  "expires_at": {
      -    "description": "UTC expiry.",
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "first_page": {
      -    "type": [
      -      "integer",
      -      "null"
      -    ]
      -  },
      -  "height": {
      -    "type": [
      -      "integer",
      -      "null"
      -    ]
      -  },
      -  "last_page": {
      -    "type": [
      -      "integer",
      -      "null"
      -    ]
      -  },
      -  "name": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "page": {
      -    "type": [
      -      "integer",
      -      "null"
      -    ]
      -  },
      -  "pages": {
      -    "type": [
      -      "integer",
      -      "null"
      -    ]
      -  },
      -  "sha256": {
      -    "description": "SHA-256.",
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "url": {
      -    "description": "Public link.",
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "width": {
      -    "type": [
      -      "integer",
      -      "null"
      -    ]
      -  }
      -}
    • removedOutput schema / properties / sheet_summary / items
      Removed value: -{
      -  "properties": {
      -    "cells": {
      -      "type": [
      -        "integer",
      -        "null"
      -      ]
      -    },
      -    "columns": {
      -      "type": [
      -        "integer",
      -        "null"
      -      ]
      -    },
      -    "name": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "rows": {
      -      "type": [
      -        "integer",
      -        "null"
      -      ]
      -    }
      -  },
      -  "type": [
      -    "object",
      -    "null"
      -  ]
      -}
  8. Changed2 schema fields changed
    • changedInput schema / $defs / XlsxColumn / properties / type / description
      Previous value: -"string, number, integer, date, datetime, boolean, currency or percent. Sets the cell type and number format; a value that does not fit is a 422. Without it the type follows each JSON value."New value: +"Sets type and format; mismatches are a 422. Numeric types parse numeric strings; integers of 16 or more digits are stored as text to keep every digit. Omit to follow JSON values."
    • changedInput schema / $defs / XlsxSheet / properties / rows / description
      Previous value: -"Array rows (values by position) or object rows (values by header). A value is a string, number, boolean or null (an empty cell)."New value: +"Array rows (by position) or object rows (by header); cells: string, number, boolean or null (empty). Send identifiers as strings with type string."
  9. Changed1 schema field changed
    • changedInput schema / properties / sheets / description
      Previous value: -"The sheets, in order: 1-20, each with a unique name, optional typed columns and rows (at most 50,000 cells in all)."New value: +"The sheets, in order: 1-20, each with a unique name, optional typed columns and rows (at most 50,000 cells in all; an object row with more keys than columns counts its keys)."
  10. Changed6 schema fields changed
    • changedInput schema / properties / output / description
      Previous value: -"base64 (default): the file comes back inline as base64. url: the file is stored for 24 hours and the reply carries a download link (url, expires_at, bytes, content_type, sha256) instead of the base64, which keeps the file out of your context window."New value: +"base64 (default): inline. url: stored for 24 hours; link, metadata."
    • addedOutput schema / properties / file / properties / bytes / description
      Added value: +"Bytes."
    • addedOutput schema / properties / file / properties / content_type / description
      Added value: +"MIME type."
    • addedOutput schema / properties / file / properties / expires_at / description
      Added value: +"UTC expiry."
    • addedOutput schema / properties / file / properties / sha256 / description
      Added value: +"SHA-256."
    • addedOutput schema / properties / file / properties / url / description
      Added value: +"Public link."
  11. Changed4 schema fields changed
    • addedInput schema / properties / output
      Added value: +{
      +  "default": "base64",
      +  "description": "base64 (default): the file comes back inline as base64. url: the file is stored for 24 hours and the reply carries a download link (url, expires_at, bytes, content_type, sha256) instead of the base64, which keeps the file out of your context window.",
      +  "enum": [
      +    "base64",
      +    "url"
      +  ],
      +  "title": "Output",
      +  "type": "string"
      +}
    • addedOutput schema / properties / file / properties / expires_at
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / file / properties / sha256
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / file / properties / url
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  12. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare the safety profile (not read-only, idempotent, non-destructive); the description layers on real behavioral detail beyond that: return keys (`file`, `sheet_summary`), error semantics (uncharged 422 `invalid_cell`, uncharged 422 on extra keys), hard limits (32,767 chars/cell, sheet-name character bans, no formulas), typical latency under 1s, and pricing with no free tier. That is unusually complete disclosure for a build tool whose annotations say little.

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-loaded with purpose and sibling routing, then limits, then price and docs — a sensible order with almost no filler. It is telegraphic and dense (several constraints packed into clipped sentences), which borders on run-on but keeps the tool call from being buried.

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?

For a mutation-free builder with an output schema and full param coverage, everything an agent needs to call it correctly is present: payload shape, limits, error behavior and cost. Nothing material is missing.

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 the schema already documents output mode, filename sanitization, sheet limits and reject_extra_keys. The description reinforces two gotchas (explicit columns drop extra keys unless reject_extra_keys=true; quoted integers must be whole numbers) but those are already stated in the schema, so it adds cross-cutting emphasis rather than new meaning. The sheet-name character restrictions are the one genuinely additive constraint.

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?

Opens with a specific verb+resource ('Build an Excel workbook from JSON') and immediately distinguishes itself from two siblings, convert_excel_to_json (reading back) and build_pptx_deck (slides). An agent can route between these three 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 Guidelines4/5

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

Explicitly names the alternative tools and the conditions that select them (reading back, slides), which is exactly the kind of routing guidance that matters. It stops short of stating when-not to use this tool (e.g., a size threshold that should push callers to a different route), but the sibling differentiation is clear.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources