Skip to main content
Glama

x402-partition

Partition: Splits an array into matching and non-matching parts by even, odd, positive, negative, or truthiness 🆓 5 free trial calls per signed wallet

Input Schema

NameRequiredDescriptionDefault
valuesNo
predicateNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / properties / predicate / description
      Removed value: -"Predicate to process"
    • removedInput schema / properties / values / description
      Removed value: -"Values to process"
  2. Changed2 schema fields changed
    • addedInput schema / properties / predicate
      Added value: +{
      +  "description": "Predicate to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / values
      Added value: +{
      +  "description": "Values to process",
      +  "type": "string"
      +}
  3. First observed

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations the description carries full behavioral burden. It does disclose the two-part output ('matching and non-matching parts') and the payment/trial context ('5 free trial calls per signed wallet'), which is useful, but says nothing about ordering, edge cases, or error behavior.

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?

One front-loaded sentence with the tool name as a leading label. Minimal waste, though the trailing free-trial/emoji snippet is more marketing than definitional content.

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

Completeness5/5

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

For a simple 2-parameter utility with no output schema, the description covers purpose, modes, and output shape. The main remaining gap is the input encoding of 'values', which is a modest omission.

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 neither parameter is documented in the schema. The description names the accepted predicate values, partially compensating for the 'predicate' param, but the 'values' param (a string containing the array) is left completely unexplained.

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 ('splits an array') and resource, and enumerates the classification modes (even, odd, positive, negative, truthiness). This distinguishes it from the number-theory sibling x402-partition-number, though it never names alternative tools for grouping/splitting.

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 enumerated predicate options imply when the tool applies, but there is no explicit guidance on when to prefer it over siblings like x402-group-by, x402-count-by, or x402-dedupe. Usage is inferable rather than stated.

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