Skip to main content
Glama
sheet2json-mcp

sheet2json-mcp

by tony-allex

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SHEET2JSON_DATA_DIRNoThe only folder files can be read from../data
SHEET2JSON_OUTPUT_DIRNoWhere validated JSON is written../output
SHEET2JSON_SCHEMA_DIRNoFolder with `*.schema.json` files.built-in `schemas/`

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Converts spreadsheets (CSV/XLSX) into validated JSON using fixed schemas. Workflow: list_files -> inspect_file -> convert_file. Never invent a schema; if no schema fits, tell the user. Report conversion errors to the user instead of correcting data yourself.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_schemasA

List the target schemas data can be converted into, with their fields and which are required.

list_filesA

List the CSV and Excel files available in the data folder.

inspect_fileA

Show the sheets, column headers and first rows of a file, and which schemas fit it best.

Args: path: File path relative to the data folder, as returned by list_files. sheet: Excel sheet name. Defaults to the first sheet. Ignored for CSV. sample_rows: Number of example rows to return (1-20).

convert_fileA

Convert a spreadsheet into JSON records that match one of the predefined schemas.

Every row is either converted and validated, or listed in errors with its row number and reason. Rows are never silently dropped or corrected.

Args: path: File path relative to the data folder. schema: Name of the target schema (see list_schemas). sheet: Excel sheet name. Defaults to the first sheet. decimal_separator: "." (1,234.5) or "," (1.234,5 - common in Danish files). write_output: Save the result as JSON in the output folder. Only allowed when there are no errors, so partial data never ends up downstream.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4/5.0

Scored across 4 tools

Disambiguation5/5

Each tool maps to a distinct step in the workflow: listing schemas, listing files, inspecting a file, and converting. There is no overlap in purpose, and the natural pipeline order makes selection unambiguous.

Naming Consistency5/5

All four tools follow a consistent snake_case verb_noun pattern (list_schemas, list_files, inspect_file, convert_file). The convention is predictable and easy to reason about.

Tool Count4/5

Four tools is a tight, focused surface that matches the bounded spreadsheet-to-JSON scope. It sits at the minimal end, with arguably room for a small output-retrieval tool, but nothing feels padded.

Completeness4/5

The core discover-inspect-convert lifecycle is fully covered, including validation and error reporting. The main gap is that converted output written via write_output cannot be listed or read back with any provided tool, leaving a minor dead end.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues