Skip to main content
Glama

x402-sort-strings

Sort Strings: Sort values as strings in JavaScript's default lexicographic order 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

C2.7/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full burden. It does disclose the ordering semantics and that an array is returned, which is genuinely useful, but it says nothing about input encoding, error behavior, or whether the input is mutated. The paywall line covers cost, not tool 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 tight sentence leads with the action and ordering rule, followed by a short pricing note. Nothing is padded, though the emoji trial banner is promotional rather than definitional.

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?

For a trivially simple tool this should be easy to complete, yet the most important unknown remains: the format of the string input that becomes a sorted array. With no annotations, no output schema, and no parameter documentation, that gap is the whole definition's weak point.

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?

The single parameter "values" has zero schema description coverage and the description does not explain how to supply it. Since the schema types it as a plain string while the tool is described as sorting an array, the caller cannot tell whether to pass comma-separated text, JSON, or newline-delimited values.

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 ("Sort values as strings") and pins down the ordering rule ("JavaScript's default lexicographic order"), which separates it from numeric sorters like x402-sort-numbers. It does not explicitly name those siblings, but the operation is unambiguous.

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 when a numeric or line-based sort sibling would be more appropriate, and no stated prerequisites beyond the paywall note. The agent must infer the use case entirely from the name.

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