Skip to main content
Glama
sheet2json-mcp

sheet2json-mcp

by tony-allex

inspect_file

Read-only

Show sheet names, column headers, and sample rows from Excel or CSV files, then identify compatible schemas for validation.

Instructions

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).

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": {
      "path": "<path>"
    },
    "name": "inspect_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
sheetNo
sample_rowsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=true and openWorldHint=false, and the description adds useful behavior: it previews headers and sample rows, identifies fitting schemas, and notes that sheet is ignored for CSV. It does not discuss error behavior, performance, or file-size limits, but it adds meaningful context beyond the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first sentence is front-loaded with the tool's purpose and outputs, and the Args block is compact and focused. Every line adds useful information without redundant wording.

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?

Because an output schema exists, the description need not explain return values. It covers all three parameters and the CSV/Excel distinction, making it complete enough for a simple read-only inspection tool, with only minor missing routing guidance.

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

Parameters5/5

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

Schema description coverage is 0%, so the description carries the full burden and does so well: path is relative to the data folder and comes from list_files, sheet defaults to the first sheet and is ignored for CSV, and sample_rows is constrained to 1-20. This adds substantial meaning beyond the bare schema property names.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb, 'Show,' and names the resource contents: sheets, column headers, first rows, and best-fitting schemas. An agent can tell this inspects a file, though it does not explicitly contrast itself with the sibling tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is only implied by the inspection purpose and the note that path comes from list_files. There is no explicit guidance about when to choose this over list_schemas or convert_file, or when not to use it.

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

Deploy Server

Other Tools