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. 🆓 5 free trial calls per signed wallet

Input Schema

NameRequiredDescriptionDefault
sizeNo
valuesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / properties / size / description
      Removed value: -"Size to process"
    • removedInput schema / properties / values / description
      Removed value: -"Values to process"
  2. 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"
      +}
  3. 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 carries the full burden, and it does disclose the return shape ('array of sub-arrays') and the wallet-auth/trial pricing. What it omits is edge-case behavior: what happens if size exceeds array length, is zero/negative, or if values is malformed.

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 core behavior is front-loaded in the first sentence and the parameter/default info follows immediately. The trailing emoji promo line is the only non-essential content.

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?

For a simple two-param transform tool with no output schema, the description covers purpose, params, and return shape. It falls short on error/edge-case behavior and on the encoding format of the values argument, which an agent would need to call it correctly.

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 coverage is 0% and the schema types both params as plain strings, which is uninformative. The description compensates by saying 'values array' and 'optional size (default 2)', adding real semantics, but it never states how the array is encoded (comma-separated, JSON, etc.), leaving a critical gap.

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 gives a specific verb and resource ('Split an array into chunks of a given size') and even restates the return shape. It does not distinguish this from near-neighbors like x402-partition or x402-normalize-array, so it stops short of a 5.

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?

Usage is implied by the phrase 'chunks of a given size,' which tells the agent this is for fixed-width array splitting. There is no explicit when-to-use versus alternatives (e.g. partition) and no when-not guidance, so it is only minimally adequate.

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