Skip to main content
Glama

x402-chunk

Chunk: Split an array into chunks of a given size. Provide values array and optional size (default 2); returns array of sub-arrays.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sizeNoSize to process
valuesNoValues to process

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / size
      Added value: +{
      +  "description": "Size to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / values
      Added value: +{
      +  "description": "Values to process",
      +  "type": "string"
      +}
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden. It usefully states the return shape ('array of sub-arrays') and the default size, but it does not address edge cases (empty input, non-positive size) or the apparent input-type mismatch between 'values array' and the schema's string type.

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?

The description is a single front-loaded sentence with a compact parenthetical, containing no filler. The leading 'Chunk:' is mildly redundant but does not harm readability.

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?

For a simple utility with no output schema and no annotations, the description adequately explains what goes in and what comes out. Minor gaps remain around edge-case behavior and the string-versus-array type discrepancy.

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 baseline is 3. The description adds the default size and implies values should be an array, but the schema types both parameters as strings, creating a semantic inconsistency rather than a net gain.

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 states a specific verb and resource: 'Split an array into chunks of a given size.' This is clear and distinguishable from most array/string utilities, but it does not explicitly differentiate from close siblings such as partition-style tools.

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?

It explains how to supply parameters and the default size, but gives no when-to-use guidance, no alternatives, and no exclusions. An agent must infer usage context from the name alone.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources