Skip to main content
Glama
agentspan-ai

MCP Test Server

by agentspan-ai

collection_chunk

Split a list into chunks of a given size by providing the items and size, enabling easier processing of large collections in smaller groups.

Instructions

Split a list into chunks of a given size.

Args: items: The list to split. size: The chunk size.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sizeYes
itemsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.4

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, and it omits the behavior that matters most for a chunking tool: what happens to a trailing remainder (is a shorter final chunk kept or dropped?), behavior on empty lists, and whether size must be positive. It only restates the basic operation.

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 short, front-loaded with the operation, and free of filler; the Args block is standard docstring formatting. It is efficient, though the extreme brevity is part of the under-specification problem rather than a virtue here.

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?

An output schema exists, so return structure need not be explained, but the description still leaves the core chunking semantics ambiguous and offers nothing on arguments at 0% schema coverage. For a utility whose whole contract is the chunking rule, that is inadequate.

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

Parameters2/5

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

Schema coverage is 0%, so the description must compensate. It does so only minimally: 'items: The list to split' and 'size: The chunk size' essentially restate the parameter titles without adding format, constraints, or edge-case semantics (e.g. size=0 or size larger than the list).

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 and resource ('Split a list into chunks') that is unambiguous on its own. It does not differentiate itself from collection siblings like collection_flatten, collection_merge or collection_zip, so the agent must infer the distinction from names alone.

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?

There is no when-to-use guidance, no mention of alternatives such as collection_flatten or collection_zip, and no stated preconditions. The agent gets no routing help beyond the tool name.

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