Skip to main content
Glama

csv_to_json

Convert CSV text into a JSON array of row objects, with an optional custom delimiter and header handling. Pure CPU, instant. Use to turn a pasted table or expor

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": {
      "csv": "<csv>"
    },
    "name": "csv_to_json"
  }
}

Input Schema

NameRequiredDescriptionDefault
csvYesCSV text to convert
delimiterNoField delimiter (default comma)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Changed3 schema fields changed
    • addedInput schema / properties / csv
      Added value: +{
      +  "description": "CSV text to convert",
      +  "type": "string"
      +}
    • addedInput schema / properties / delimiter
      Added value: +{
      +  "description": "Field delimiter (default comma)",
      +  "type": "string"
      +}
    • addedInput schema / required
      Added value: +[
      +  "csv"
      +]
  4. Added

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden; it does disclose 'Pure CPU, instant', which usefully tells the agent there is no network call, auth, or rate limit. It says nothing about behavior on malformed input, type inference of values, or error responses, leaving real gaps for a conversion tool.

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

Conciseness2/5

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

The entry is short but structurally broken: the final sentence is truncated mid-word ('expor'), leaving an incomplete thought and an unfinished word in the visible text. A description that is both brief and incomplete wastes the reader's attention on a dangling clause.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter pure transformation with no output schema, the agent still needs to know the shape of the returned array (are values strings, coerced numbers, how are missing fields handled) and how headers are treated. 'JSON array of row objects' gives the top-level shape but not enough to predict the output reliably.

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%, so both parameters are already documented and the baseline is 3. The description's mention of delimiter mirrors the schema without adding format or quoting semantics, and its mention of 'header handling' refers to a capability with no corresponding parameter in the schema, which is slightly confusing rather than helpful.

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 and transformation pair ('Convert CSV text into a JSON array of row objects'), which is enough to distinguish it from the inverse sibling json_to_csv and from tsv_to_json. The trailing clause is cut off mid-word, so the last part of the sentence contributes nothing.

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?

The phrase 'Use to turn a pasted table or expor' begins to indicate a usage context (pasted tabular data, exports) but is truncated before the thought completes. No explicit when-not guidance or named alternative (e.g. tsv_to_json, json_to_csv) is given.

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