Skip to main content
Glama

x402-sort-numbers

Sort Numbers: Sort values numerically ascending with a subtraction comparator, so 10 follows 9 rather than 1, and return the array. 🆓 5 free trial calls per signed wallet

Input Schema

NameRequiredDescriptionDefault
valuesNo

Schema Changelog

Changes observed during successful MCP inspections.

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

TDQS

B3.2/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. It does disclose two useful behavioral facts: output is the sorted array, and calls are metered ('5 free trial calls per signed wallet'), which signals an auth/payment requirement. It says nothing about handling of non-numeric or empty input, stability, or whether the input is mutated.

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 a single well-formed sentence with a clarifying example, and the pricing note is clearly separated. The emoji-laden trial-call line is slightly noisy but short.

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 one-parameter utility with no annotations and no output schema, the description covers the transformation and the return value, but leaves the input format and edge-case behavior unexplained. It is adequate but not sufficient to call the tool confidently without inspecting the schema.

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?

There is one parameter, 'values', typed as a string with 0% schema description coverage, so the description must explain the encoding. It never says whether values are comma-separated, space-delimited, or a JSON array, which is a critical gap for a string-typed numeric input.

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 ('Sort values numerically ascending') and clarifies the numeric rather than lexicographic ordering, which separates it from sibling sort tools such as x402-sort-strings and x402-sort-lines. It does not name those siblings explicitly, so differentiation is implicit rather than stated.

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 'numerically ascending' phrasing implies the applicable case (numeric input needing numeric order), and the 10-after-9 example makes the intent concrete. However, there is no explicit when-to-use/when-not guidance and no pointer to alternatives for descending order or string sorting.

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