Skip to main content
Glama
Zulelee

test-files-mcp

by Zulelee

create_json_tool

Generate JSON test fixtures with configurable depth, item count, and formatting. Set malformed to true to create intentionally invalid JSON for testing parsers and error handling.

Instructions

Generate a JSON test fixture. Set malformed=true for intentionally invalid JSON.

Examples: valid JSON array, malformed JSON with trailing comma or missing bracket.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
seedNo
depthNo
itemsNo
prettyNo
filenameNo
malformedNo
overwriteNo
output_directoryNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description carries full burden for behavioral disclosure. It discloses file generation behavior and malformed output capability, but it doesn't mention whether files are written to disk (though output_directory and filename parameters imply this), what happens on overwrite, or any side effects. The description doesn't cover permission needs, error behavior, or how output is returned, which is a notable gap for a generation tool. With no annotations, this falls short.

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?

The description is concise: two sentences plus a short example line. It front-loads the primary purpose and then provides the key usage nuance (malformed flag). The example is helpful but could be more structured; overall it earns its place with minimal waste.

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?

The tool has 8 parameters, 0% schema description coverage, and an output schema exists (though not provided). The description is sparse relative to the tool's complexity. It lacks details on how parameters like depth, items, seed, and pretty affect the output, and doesn't explain the behavior of filename, output_directory, or overwrite. Output schema may cover return values, but the description doesn't guide users on parameter interplay. It's minimally viable but has clear gaps.

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 0% since the description doesn't mention any parameter names, but the description does explain the 'malformed' parameter's purpose ('Set malformed=true for intentionally invalid JSON'). However, it doesn't add meaning for the other seven parameters (seed, depth, items, pretty, filename, overwrite, output_directory). Baseline is 3 because schema coverage is low (<50%), but the description only compensates for one parameter, so a 3 is appropriate.

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?

The description clearly states 'Generate a JSON test fixture' using a specific verb and resource, and distinguishes from sibling tools by focusing on JSON generation. It mentions malformed JSON support, which is a key differentiator from other create_*_tool siblings, though it doesn't name alternatives 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?

The description gives a brief example of valid vs malformed usage ('valid JSON array, malformed JSON with trailing comma or missing bracket'), which implies when to use the malformed flag. However, it doesn't provide explicit context for when to use this tool over siblings like create_dummy_file_tool or create_corrupted_file_tool, nor any exclusions.

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/Zulelee/test-files-mcp'

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