Skip to main content
Glama

csv_to_json

Convert a CSV file from the workspace into JSON row objects keyed by header column.

Instructions

Read a CSV file from the workspace and convert it to a list of row objects keyed by header column.

Args: path: Path to the CSV file, relative to the workspace root.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It usefully discloses the output structure (row objects keyed by header), which is valuable absent an output schema, but says nothing about error behavior, encoding/delimiter handling, or failure when the file is missing.

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?

Purpose is front-loaded in the first clause, and the sole argument is documented without padding. The inline 'Args:' block is slightly boilerplate but still tight and earns its place.

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 simple one-parameter read/transform tool with no output schema, the description covers the transformation result well. Missing only edge-case behavior (missing file, malformed CSV), which is a minor gap given the tool's simplicity.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must compensate for the single parameter, and it does: 'Path to the CSV file, relative to the workspace root' clarifies both meaning and the workspace-relative resolution rule.

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 (read/convert) and resource (CSV file) and even specifies the output shape ('list of row objects keyed by header column'). It does not explicitly differentiate from the sibling csv_get_columns, but the conversion purpose is unambiguous.

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

Usage Guidelines2/5

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

No when-to-use guidance, no exclusions, and no mention of the closely related sibling csv_get_columns or read_file. The agent must infer when this is preferable to those alternatives.

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