Skip to main content
Glama

批量生成JSON

batch_generate_json

Batch generate JSON data using templates or dynamic rules. Define structure, data types, constraints, and variations for efficient test data creation or bulk processing. Output in array or individual formats.

Instructions

根据模板和规则批量生成JSON数据。支持基于现有模板生成或根据规则动态生成。适用于测试数据生成、批量数据处理等场景。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
countYes生成数量:要生成的JSON数量,建议从少量开始测试
output_formatNo输出格式:array(批量保存)、individual(单独保存,每个JSON独立)array
rulesYes生成规则:定义JSON生成的具体规则和约束
template_idNo模板ID:可选,如果提供则基于现有模板生成。使用item_operations工具查看可用模板
Behavior2/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 of behavioral disclosure. It mentions support for template-based and rule-based generation, but doesn't describe critical behaviors like whether this is a read-only or mutating operation, what permissions are required, rate limits, error handling, or what the output looks like. For a tool with no annotations and complex parameters, this is a significant gap.

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 and well-structured in two sentences. The first sentence states the core purpose, and the second provides usage scenarios. There's no wasted text, and it's front-loaded with the main functionality.

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

Completeness2/5

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

Given the tool's complexity (4 parameters, nested objects, no output schema, and no annotations), the description is incomplete. It doesn't explain what the tool returns, how errors are handled, or behavioral constraints. For a data generation tool with significant parameter complexity, more context is needed to help an agent use it effectively.

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 the schema already documents all parameters thoroughly. The description adds minimal value beyond the schema, mentioning '基于现有模板生成或根据规则动态生成' (generate based on existing templates or dynamically based on rules), which loosely maps to 'template_id' and 'rules' parameters. Since the schema does the heavy lifting, the baseline score of 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 the tool's purpose: '根据模板和规则批量生成JSON数据' (batch generate JSON data based on templates and rules). It specifies the verb (generate), resource (JSON data), and scope (batch). However, it doesn't explicitly differentiate from sibling tools like 'export_to_file' or 'item_operations', which might have overlapping functionality.

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 provides some usage context: '适用于测试数据生成、批量数据处理等场景' (suitable for test data generation, batch data processing, etc.). This implies when to use the tool, but it doesn't explicitly state when NOT to use it or mention alternatives like sibling tools. The guidance is helpful but not comprehensive.

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

Related 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/zb2947244682/mcp-json-maker'

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