Skip to main content
Glama

batch_batch_chunk

Split a list into chunks of a given size. Provide the list and chunk size to receive the chunks, their count, and total items.

Instructions

[batch] Split list into chunks of size. Returns {chunks, chunk_count, total}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYes
sizeYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations, the description carries the full burden but only states the basic behavior. It does not disclose edge cases (e.g., size <= 0, empty list), order preservation, or behavior with non-divisible lists.

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 extremely concise—one succinct sentence plus return type notation. It avoids fluff, though it could be better structured with verb first.

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?

Given the simple tool and presence of an output schema, the description covers split functionality and return fields. However, it lacks differentiation from siblings and mentions of ordering or error handling.

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?

Though schema description coverage is 0%, the description adds functional meaning: 'Split list into chunks of `size`' clarifies that items is the list and size is chunk size. This is sufficient for basic parameter understanding.

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?

The description clearly states the verb (Split), resource (list), and key parameter (size), and distinguishes the tool from siblings like batch_batch_partition or batch_batch_filter. The output structure is also specified.

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 guidance is provided on when to use this tool versus alternatives such as batch_batch_partition (which splits by predicate) or batch_batch_filter. The description lacks context for decision-making.

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/0-co/agent-friend'

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