Skip to main content
Glama

JsonExport

Convert JSON to a table, CSV or Excel

json_to_table
Read-onlyIdempotent

Convert JSON (an array of records, an API response, nested objects, JSON Lines or escaped JSON) into a spreadsheet table. Returns the row and column count, a CSV and a link that opens the data in JsonExport, where the user can download Excel (.xlsx), CSV or HTML. Nested fields become columns like address.city. Use it whenever the user wants JSON as a table, CSV, spreadsheet or Excel file. For Excel, give the user the link from the result: the file is built in their browser and never uploaded.

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": {
      "json": "<json>"
    },
    "name": "json_to_table"
  }
}

Input Schema

NameRequiredDescriptionDefault
jsonYesThe JSON text exactly as the user gave it. Do not summarise or reformat it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), and the description adds real context beyond them: the return payload (row/column count, a CSV, and a JsonExport link), the flattening rule ('Nested fields become columns like address.city'), and the important fact that the Excel file is built in the browser and never uploaded. It stays silent on size limits and error/failure behavior, which the schema only partially covers via maxLength.

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?

Four sentences, front-loaded with the conversion action before the return details and the usage trigger. Slightly redundant between the first sentence and the 'use it whenever' trigger, but every sentence carries information an agent needs.

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?

With no output schema, the description takes on the burden of explaining returns and does so concretely (counts, CSV, link, browser-side Excel build). For a one-parameter tool with full schema coverage and full annotations, the only missing piece is behavior on invalid or oversized JSON.

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% and the single 'json' parameter already documents that it must be verbatim text. The description adds meaning about what forms that text may take (JSON Lines, escaped JSON, nested objects), which is useful, but the per-parameter constraint ('do not summarise or reformat') lives in the schema, not the description. Baseline 3 for this schema richness.

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?

The description opens with a specific verb and resource: 'Convert JSON ... into a spreadsheet table', and it enumerates the accepted input shapes (array of records, API response, nested objects, JSON Lines, escaped JSON). An agent knows exactly what the tool does and what inputs qualify without opening the 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?

'Use it whenever the user wants JSON as a table, CSV, spreadsheet or Excel file' gives a clear trigger condition, and the Excel instruction ('give the user the link from the result') tells the agent how to follow through. There are no sibling tools, so no exclusions are needed, but the definition does not state any when-not conditions (e.g. non-JSON input, oversized payloads).

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