Skip to main content
Glama

JSON to Excel

json_to_excel

Convert JSON arrays or multi-sheet JSON objects into Excel .xlsx files. Invalid JSON returns an error, and the input file remains unchanged.

Instructions

Convert a .json file (an array of objects, or an object of such arrays for several sheets) to an .xlsx. Invalid JSON returns an error. Returns the saved path; the input is not changed.

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": {
      "file": "<file>"
    },
    "name": "json_to_excel"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesPath to the file (absolute, or relative to the working directory).
outputNoWhere to save the result. Defaults to a new file next to the input.

Output Schema

NameRequiredDescriptionDefault
notesYesAnything the output does not carry over from the input.
summaryYesOne line describing the result.
writtenYesPaths of the files written, in order.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.1.2

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare write (readOnlyHint=false), non-destructive and non-idempotent, and the description adds genuinely new behavior: invalid JSON yields an error, the return value is the saved path, and the input file is left untouched. It doesn't mention overwrite behavior if the output path already exists, which is the one meaningful gap for a write tool.

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?

Three short sentences, front-loaded with the conversion itself, followed by error behavior and return/mutation guarantees. No redundant restatement of the title or the schema.

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?

For a two-parameter conversion tool with an output schema, the description covers input shapes, failure mode, return value, and non-mutation of the source. Only the overwrite/collision behavior of `output` is left unaddressed.

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%, so both `file` and `output` are already documented in the schema, including the default-output-location rule. The description adds meaning about the expected contents of the input file (array of objects vs. object of arrays) but nothing about the parameters themselves, so the baseline 3 applies.

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?

States a specific verb (convert) and both resources (.json in, .xlsx out), plus the accepted JSON shapes (array of objects, or object of arrays for multiple sheets). The format naming distinguishes it from csv_to_excel and excel_to_json without naming them explicitly.

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 implied by the file formats rather than stated: nothing tells the agent to prefer this over csv_to_excel or excel_to_json, but the .json-in/.xlsx-out framing makes the choice unambiguous in practice. No prerequisites or exclusion cases are given.

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