xlsx-for-ai
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| XFA_PRIVACY | No | Set to 'strict' to opt out of error capture entirely. | |
| XLSX_FOR_AI_API | No | Override the API base URL for local dev against http://localhost:3000. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| csv_checkB | Use this when you need to verify CSV structure and injection safety before it is imported anywhere else. |
| importable_convertB | Use this when you need to convert an uploaded file into a Shopify-import-ready CSV/JSON for a named entity type. |
| importable_entitiesA | Use this when you need to list the entity types (products, collections, inventory, …) the Importable Shopify spine can import or export. |
| printful_catalog_importB | Use this when you need to produce a Shopify products import CSV from the Printful catalog. |
| printful_catalog_pullB | Use this when you need to pull a snapshot of the current Printful product catalog. |
| printify_catalog_importB | Use this when you need to produce a Shopify products import CSV from the Printify catalog. |
| printify_catalog_pullB | Use this when you need to pull a snapshot of the current Printify product catalog. |
| shopify_amazon_feedB | Use this when you need to produce an Amazon inventory feed. |
| shopify_collections_importC | Use this when you need to produce a Shopify collections import CSV. |
| shopify_ebay_feedC | Use this when you need to produce an eBay File Exchange feed CSV. |
| shopify_google_feedB | Use this when you need to produce a Google Shopping product feed CSV. |
| shopify_inventory_importC | Use this when you need to produce a Shopify inventory import CSV. |
| shopify_metafields_safe_reimportA | Use this when you need to re-import previously exported Shopify metafields without clobbering values changed since export. |
| shopify_product_metafields_importB | Use this when you need to import product-level metafields from the merchant's own column names, mapped to Shopify metafield definitions. |
| shopify_products_importC | Use this when you need to produce a Shopify products import CSV. |
| shopify_products_import_fixB | Use this when you need to diagnose and fix a Shopify products import CSV that failed or was rejected on upload. |
| shopify_ups_feedB | Use this when you need to produce a UPS WorldShip batch shipping CSV. |
| shopify_url_redirects_importC | Use this when you need to produce a Shopify URL redirects import CSV. |
| shopify_variant_metafields_importA | Use this when you need to import per-variant (per-SKU) metafields, mapped to Shopify's metafield definitions. |
| xlsx_aggregateB | Use this when you need to group and aggregate (sum/mean/min/max/count/count_distinct) values on a spreadsheet — reshape rows into per-group summaries. |
| xlsx_chartsA | Use this when you need to list every chart in a workbook — type, title, axis titles, and the cell ranges each series pulls from. |
| xlsx_checkB | Use this when you need to know if the numbers are right: workbook structural validity, error cells, stale cached values (formulas recomputed by the server's own engine and compared with the stored values; cells the engine does not model are skipped), ranges that stop short of contiguous data, and hygiene findings. |
| xlsx_commentsA | Use this when you need to list every cell comment — legacy notes and modern threaded comments — with author, text, and reply thread. |
| xlsx_conditional_formatsA | Use this when you need to list every conditional formatting rule (color scales, data bars, icon sets, formula-based highlights, …) with range, type, and priority. |
| xlsx_convertA | Use this when you need to convert a spreadsheet between formats — reads xlsx, xls, xlsb, ods/fods, csv/tsv, dbf, sylk, dif and prn (25+ inputs), plus a file exported or downloaded from Google Sheets; emits xlsx, csv, tsv, json, md, or html. Old binary .xls is read-only: it is accepted as input but never written, so to=xls is refused with a typed 400 unsupported_output_format (an isError result on MCP) — ask for xlsx or csv. DIF, SYLK, ETH, PRN and RTF are not written yet either: those targets get the same typed 400. Often the only way to get a legacy .xls or .dbf into an agent that can't upload one directly. Deterministic and structural, no LLM mapping; exact formula/structure preservation holds on the own-engine path only, so check served_engine in the response (and decline_reason if it reads "incumbent") — a compatibility-engine fallback may not preserve charts, pivots, or other advanced features. For xlsx, xls, csv and json inputs there is no compatibility-engine fallback: if our own writer declines, the call fails with a typed HTTP 501 capability_gap (an isError result on MCP) and retrying the same file does not help. .json is a peer format in both directions: an uploaded .json (JSONL, a bare array of objects, a {"data":[…]} envelope, or a single object) is read into rows and converts to=json, to=csv or to=xlsx, and any supported input converts to=json as one object per row keyed by the header row. A JSON hop carries values only — styles and number formats are dropped, a formula cell emits its computed value rather than the formula text, dates become ISO-8601 strings, and nested fields arrive as flattened dotted column names. |
| xlsx_data_cleanB | Use this when you need to scan for the common data-grime issues (NA variants, merged-cell residue, type-coercion mistakes, stray header/footer rows, mojibake, duplicate headers) and either flag or fix them. |
| xlsx_data_validationsA | Use this when you need to list every cell-level data validation rule (dropdowns, numeric/date bounds, text-length caps, custom formulas) Excel enforces on entry. |
| xlsx_describeA | Use this when you need pandas-style summary statistics per column: count, nulls, unique, min/max/mean/std for numerics. |
| xlsx_diffA | Use this when you need to compute a deterministic semantic diff between two workbooks — cell-level deltas, formula changes, added/removed rows. |
| xlsx_doctorA | Use this when you need to know the risks before sharing a workbook: a one-call health report covering macros, external refs, hidden sheets, missing metadata, oversized images, ranked HIGH/MEDIUM/LOW findings. |
| xlsx_evalA | Use this when you need to evaluate Excel formulas against a workbook via a formula engine (over 350 Excel functions, plus the functions only Google Sheets has) — pass ad-hoc formulas or re-evaluate specific cell refs, never trusting a stale cached value. Formulas that name no cell need no file; cell refs need the file. A call takes up to 5,000 cells or formulas when it builds its workbook from a spec, and up to 100 when it carries a file; over the cap it answers 400 too_many_cells. Date text is read under a fixed en-US convention: numeric dates are M/D/Y, ISO-8601 (YYYY-MM-DD) and month names are accepted, and a trailing time part is ignored. Exception: external-data/AI functions (IMPORTRANGE, IMPORTXML, IMPORTHTML, IMPORTDATA, IMPORTFEED, GOOGLEFINANCE, GOOGLETRANSLATE, STOCKHISTORY, AI, COPILOT, PY) are never fetched/run — the cell shows either the value Excel/Sheets saved in the file or the platform's documented error (#N/A / #CONNECT! / #BUSY!), never a freshly fetched result. Each cell or formula the engine did not recalculate (it calls one of these functions, or depends on a cell that does) is listed in the reply's _meta.not_recalculated with a reason that says why, and none of them is a recalculated value: a cell that calls one shows that saved value or documented error, and a cell that depends on one is computed from the value shown for the cell it depends on, not shown with its own saved value; its _meta.cell_values entry carries the same reason as not_recalculated. |
| xlsx_external_linksA | Use this when you need to list every external workbook reference this file depends on, classified (http / network share / absolute / relative) with cached-value counts. |
| xlsx_filterA | Use this when you need a row filter with AND-combined predicates (eq/ne/gt/gte/lt/lte/contains/in/is_null/not_null, or criteria: an Excel criterion matched exactly as COUNTIF does) on real, formula-evaluated cell values. output row_numbers returns the matching sheet rows; rows_handle writes the matching rows as NDJSON to a new cache handle; json returns a page in the xlsx_read json shape. |
| xlsx_form_controlsA | Use this when you need to list every form control (checkbox, button, dropdown, list box, option button, scroll bar, spinner, …) with its linked cell and current value. |
| xlsx_formulasA | Use this when you need to extract every formula in a workbook — cell coordinate, formula text, cached result — for auditing or bulk transformation. |
| xlsx_healer_cureA | Use this when you need to apply one specific repair to a diagnosed workbook. For broken external references: rewrite ref paths, freeze / redirect / localize a deleted source, strip embedded credentials, or collapse multi-hop chains. For Google-Sheets-to-Excel export damage: flag each dead Sheets-only formula with an in-cell note so the loss is visible (it does NOT recompute the function — a Sheets-only function has no Excel equivalent to compute), trim an oversized used-range, and compact repeated formulas into Excel shared-formula form. |
| xlsx_healer_diagnoseA | Use this when you need to produce a structured report of repairable damage in a workbook, keyed to the cure operations. Two families: (1) broken or at-risk external references — moved, deleted, or permission-denied sources and #REF! chains; (2) Google-Sheets-to-Excel export damage — Sheets-only functions such as QUERY, ARRAYFORMULA, IMPORTRANGE, or GOOGLEFINANCE that Excel cannot evaluate and that arrive as dead formula text or a #NAME? error (surfaced as an unverified value to double-check), an oversized used-range, and repeated formulas left un-compacted. Every finding is reported, not altered in place. |
| xlsx_healer_intentA | Use this when you need goal-driven healing: declare an intent (make-it-work / make-standalone / migrate) and let the healer plan + apply the operation sequence. |
| xlsx_healer_simulateA | Use this when you need to simulate recipient-side accessibility of a workbook's external references — read-only, no output workbook. |
| xlsx_hyperlinksA | Use this when you need to list every hyperlink with its anchor cell, target, display text, tooltip, and a kind classifier (external / internal / mailto). |
| xlsx_imagesA | Use this when you need to list every embedded image with format, size, sheet attribution, and the cell range it floats over. |
| xlsx_list_sheetsA | Use this when you need to list every sheet in a spreadsheet with its name, dimensions, and visibility. |
| xlsx_macrosA | Use this when you need to inspect an xlsm/xlsb workbook for VBA macro presence, module size, and likely module names, with a short safety note. |
| xlsx_merged_cellsA | Use this when you need to list every merged-cell region with its master value, range, and a layout-kind heuristic (header / horizontal / vertical / block). |
| xlsx_named_rangesA | Use this when you need to list every defined name (named range) in a workbook — name, scope, kind, and reference. |
| xlsx_pii_cleanC | Use this when you need to redact personal or sensitive data from a spreadsheet. |
| xlsx_pii_job_statusA | Use this when you need the name and address findings of a deferred xlsx_pii_scan, by its ner_job_id. |
| xlsx_pii_scanC | Use this when you need to scan a spreadsheet for personal or sensitive data. |
| xlsx_pivotB | Use this when you need a pivot-table reshape — reshape a flat table into a 2D matrix of index × columns with an aggregated value per cell. |
| xlsx_pivot_tablesA | Use this when you need to list every pre-existing pivot table an Excel user already built — source range, row/column/page fields, and each data field's aggregation. |
| xlsx_post_slackA | Use this when you need to post a spreadsheet to a Slack channel as a file attachment, with an optional accompanying message. |
| xlsx_post_teamsB | Use this when you need to post a spreadsheet to a Microsoft Teams channel as a file attachment, with an optional accompanying message. |
| xlsx_print_settingsA | Use this when you need to surface exactly what Excel would print for each sheet — print area, orientation, paper size, margins, headers/footers, page breaks. |
| xlsx_propertiesA | Use this when you need to surface a workbook's identity card — creator, timestamps, title/subject/company, and every custom Info > Properties entry. |
| xlsx_protectionA | Use this when you need to surface every protection setting — workbook lock, per-sheet protection, per-action allow/block list, and which cells stay editable. |
| xlsx_readA | Use this when you need to read a spreadsheet as text (markdown, JSON, or SQL) — from an uploaded .xlsx/.xls/.csv/.json file, or from a live Google Sheet by ID using source:"gsheets", spreadsheet_id, and access_token: a Google OAuth bearer already scoped for Sheets read access that the caller must supply. This connector's own Google sign-in is account login only and does not grant one — for a user who only has a shared link, pass it as file_url instead. format:"json" emits one object per sheet row, with a "row" field (the real 1-based sheet row number) and one key per column letter (A, B, ...); it carries values only, so a formula cell contributes its computed value rather than the formula text, styles and number formats do not survive (except as display text under value_format typed_with_text, below), and dates arrive as ISO-8601 strings because JSON has no date kind. A .csv is read the way Excel opens one (en-US): numbers (including 1,234.50, $5, 50% and (5)), TRUE/FALSE and dates (M/D/YYYY, YYYY-MM-DD, 15-Jan-2024, with an optional time) are typed values, read as an .xlsx cell of that type would be (display formats are not carried); ids with a leading zero (00123), digit strings longer than 15 digits and text that only looks numeric in another locale (1.234,56) stay text, and an empty field is a blank cell. Pass options.header_row:true with format:"json" to get rows keyed by the header row's values (e.g. {row:2, email:..., name:...}) instead of column letters; the header row itself is left out, so offset and maxRows count data rows, and duplicate or blank headers get unique names (a repeat becomes Name_2, a blank header becomes its column letter). For a messy export with a title, blank rows or notes above the header, pass options.header_row_auto:true (the header row xlsx_data_clean would find, row 1 when none) or options.header_row_number such as 3 (row 3 is the header, data starts at row 4), not both; _meta.header_row_used names the row used. An error cell (#N/A, #DIV/0!, #REF!, #NAME?, #VALUE!, #NUM!, #NULL!, #SPILL!, #CALC! and the other Excel error values) keeps its error code as the cell value and is also named in that row's "errors" object (same keys as the row: column letter, or the header name with header_row), so it reads differently from a text cell holding the same characters; rows with no error cells have no "errors" key. Set options.formulas:true to get formulas in any format, for the formula cells of the returned page, shared formulas expanded, paging with options.offset and options.maxRows: markdown adds a " formula" line under each row that holds formulas, with each formula (= first) in its column; sql adds a "-- formula D2: =A2+1" comment after that row's statement; json adds formulas_by_cell next to rows, each formula cell by A1 ref (for example "D2") to its formula text without the leading =; in markdown and sql a backslash, line break or (markdown) pipe inside a formula is written \, \n, \r or |. Set options.value_format:"typed" with format:"json" to get typed values instead of display text: numbers as JSON numbers, TRUE/FALSE as true/false, a blank cell as null (every row then has a key for every used column of the sheet), dates as ISO-8601 strings and text as strings (an id with a leading zero stays text); the default, "text", is unchanged. Set options.value_format:"typed_with_text" with format:"json" to get each cell as {v, t, text}: v the typed value, t its type (number, string, boolean, date, error or blank) and text what Excel shows under the cell's number format (for example {"v": 1234.5, "t": "number", "text": "1,234.50"}, and "00123" keeps its zeros); a CSV field's text is the field as written, and where the text cannot be shown exactly it is left out and text_unavailable is true. In markdown, md cells are escaped: a backslash, pipe or line break in a cell or header is written \, |, \n or \r, so a value never shifts a column or starts a new row, and a line break in a sheet-name heading is written \n or \r. |
| xlsx_read_handleA | Use this when you need to read a workbook already uploaded via the chunked cache flow, by its server-side handle — skips re-sending the bytes. |
| xlsx_receiptA | Use this when you need to attach a cryptographic AI-generation receipt to a workbook — who/what/when generated it, against which inputs. |
| xlsx_redactA | Use this when you need to redact PII and sensitive values from a spreadsheet before sharing or archiving, preserving formulas/comments/styles by default. |
| xlsx_schemaA | Use this when you need to infer per-column types from the first rows of a sheet, with sample values and confidence. |
| xlsx_session_set_validationsB | Use this when you need to configure per-session data-validation rules the server applies to subsequent calls in the same session. |
| xlsx_slicers_timelinesA | Use this when you need to list every slicer and timeline (interactive filter controls) in a workbook with their source bindings. |
| xlsx_sortA | Use this when you need a multi-column sort in Excel's sort order (case-insensitive text, numbers before text before logicals, blanks last), optionally unique by a column set (Excel UNIQUE). output row_numbers returns the sheet rows in order; rows_handle writes the sorted rows as NDJSON to a new cache handle; json returns a page in the xlsx_read json shape. |
| xlsx_stampB | Use this when you need to sign a workbook with a cryptographic integrity-verification stamp — which checks it passed, when, tamper-evident. |
| xlsx_stylesA | Use this when you need to surface cell formatting (number formats, fonts, fills, alignment) — what a cell LOOKS like, not just its raw value. |
| xlsx_tablesA | Use this when you need to list every Excel ListObject ("Format as Table") in a workbook — name, sheet, range, header/totals flags, columns. |
| xlsx_topologyA | Use this when you need one-call workbook orientation — sheets, formulas, named ranges, tables, validations, hyperlinks, merges, and feature flags in one shot. |
| xlsx_upload_linkA | Use this when an app needs a one-time upload link for its user's file: PUT the file to upload_url in one request, or in resumable parts with Content-Range: bytes -/ (HEAD the link for Upload-Offset), then pass file_handle to any tool. |
| xlsx_validateA | Use this when you need a soundness check — load the workbook with the server's own engine and report whether it opens cleanly, with a per-sheet row and column extent. |
| xlsx_value_countsA | Use this when you need per-column value counts — each unique value, sorted by frequency, with percentage. |
| xlsx_vault_cureC | Use this when you need to clean hidden or risky content out of a spreadsheet. |
| xlsx_vault_scanB | Use this when you need to scan a spreadsheet for hidden or risky content (macros, external links, embedded objects). |
| xlsx_verify_receiptB | Use this when you need to verify a workbook's embedded AI-generation receipt — signature validity, content-hash match, and the full declared claims. |
| xlsx_verify_stampA | Use this when you need to verify a workbook's embedded integrity stamp — signature validity, content-hash match, and the recorded check results. |
| xlsx_workbook_viewsA | Use this when you need to surface the UI state of a workbook — per-sheet visibility/zoom/frozen-panes/tab color, and which sheet is active on open. |
| xlsx_writeA | Use this when you need to create or update a spreadsheet from a structured spec ({sheets: [{name, cells: [{address, value | formula, style?, hyperlink?, comment?}], columns?, freeze?, merges?, conditionalFormats?, dataValidations?}]}) — formatting is optional; server-validated before writing. A value sent beside a formula is stored as that formula's cached result (the reply says how many: _meta.cached_formula_cells). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 76 tools
The xlsx family contains several near-duplicate clusters: xlsx_check / xlsx_validate / xlsx_doctor / xlsx_healer_diagnose all answer 'is this workbook healthy?', and xlsx_pii_scan / xlsx_pii_clean / xlsx_redact / xlsx_data_clean / xlsx_vault_scan / xlsx_vault_cure overlap heavily on 'find and clean bad content'. xlsx_read vs xlsx_read_handle vs xlsx_convert, and xlsx_pivot vs xlsx_pivot_tables, are also easily confused without reading long descriptions. The Shopify/Printful/Printify feed generators are distinct internally, but the set as a whole mixes two unrelated domains with no guidance on which family to pick.
Everything is snake_case and domain-prefixed, which helps, but the verb position is inconsistent: xlsx_ tools mostly lead with an action (xlsx_read, xlsx_write, xlsx_convert, xlsx_filter) while occasionally being nouns (xlsx_styles, xlsx_comments, xlsx_tables), and shopify_/printful_ tools put the verb last (shopify_products_import, printful_catalog_pull). Suffixes like _fix, _cure, _simulate, _job_status add further ad-hoc patterns, so the naming is readable but not predictable.
76 tools is extreme for any single server and far beyond what an agent can survey reliably. Worse, the count is inflated by an entire second domain (Shopify/Printful/Printify/Importable feeds) bundled under an 'xlsx-for-ai' name, so the surface is both oversized and scope-mismatched.
For the spreadsheet domain the coverage is genuinely broad: read/write/convert, schema and stats, formatting, formulas, pivot/chart/table inspection, diffing, redaction, signing, and repair workflows. Gaps are minor and workaroundable (chart and pivot creation rather than inspection only, no dedicated sheet delete/rename, and the e-commerce side only generates import files rather than talking to store APIs).