Skip to main content
Glama
wayknow

wayknow/clearjson

by wayknow

convert_json

Convert JSON to CSV, TSV, YAML, or TypeScript type definitions. Works with arrays of objects for CSV/TSV; any structure for YAML and TypeScript.

Instructions

Convert JSON to another format: CSV, TSV, YAML, or TypeScript type definitions. CSV/TSV requires a top-level array of objects. YAML and TypeScript work on any structure.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
jsonYesThe JSON string to convert.
formatYesTarget format: "csv", "tsv", "yaml", or "typescript" (TypeScript interfaces).
rootNameNoRoot type name for TypeScript conversion (default: "Root"). Ignored for other formats.Root
Behavior4/5

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

No annotations provided, so description carries full burden. Describes input requirements and format-specific constraints. Does not mention side effects or auth, but such details are less critical 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.

Conciseness5/5

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

Two concise sentences covering purpose and key constraints. Front-loaded and efficient with no superfluous content.

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 3 parameters fully described in schema, no output schema, and no annotations, the description adequately covers essential behavioral aspects. Minor lack of return value details is acceptable for a conversion tool.

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%, baseline is 3. Description adds value by explaining the restriction on CSV/TSV input and the role of rootName, but does not significantly extend beyond schema descriptions.

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?

Clearly states 'Convert JSON to another format' and enumerates specific target formats. Distinguishes from sibling tools like query_json and format_json.

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?

Provides explicit constraints: CSV/TSV requires a top-level array of objects, while YAML and TypeScript work on any structure. Lacks explicit comparison to sibling tools but gives sufficient context for appropriate use.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/wayknow/clearjson'

If you have feedback or need assistance with the MCP directory API, please join our Discord server