Skip to main content
Glama

x402-string-compare

String Compare: Compares two strings lexicographically and returns 0 when equal, -1 when a sorts first, else 1 🆓 5 free trial calls per signed wallet

Input Schema

NameRequiredDescriptionDefault
aNo
bNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / properties / a / description
      Removed value: -"A to process"
    • removedInput schema / properties / b / description
      Removed value: -"B to process"
  2. Changed2 schema fields changed
    • addedInput schema / properties / a
      Added value: +{
      +  "description": "A to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / b
      Added value: +{
      +  "description": "B to process",
      +  "type": "string"
      +}
  3. First observed

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose the return-value contract (0/-1/1) and the payment/trial context, which is useful. It says nothing about case sensitivity, locale/collation rules, or behavior with missing/empty operands, which matters because zero parameters are marked required.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and return semantics are front-loaded in one clean sentence, but the trailing '🆓 5 free trial calls per signed wallet' promo is marketing text that dilutes signal for an agent trying to decide whether to call the tool. Still short overall, so not below 3.

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 two-param pure function with no output schema, the description is roughly sufficient — it explains the result encoding that the missing output schema would otherwise have covered. It falls short on collation/case behavior and on why both params are non-required, which a caller would want to know.

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 0%, so the description must compensate. It partially does: 'a sorts first' ties the parameter name `a` to a concrete role in the ordering, which is more than the schema gives. Parameter `b` is only implied as the comparison target, and the fact that both are optional despite being logically required is left 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 ('compares') and resource ('two strings') and goes further by spelling out the return convention (0 equal, -1 when a sorts first, else 1). It does not name or distinguish itself from nearby siblings like x402-string-similarity, x402-levenshtein, or x402-sort-strings, so a 4 rather than 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 nature of the operation (feed two strings, get an ordering result); there is no explicit when-to-use clause, no when-not-to-use, and no pointer to the similarity/sort alternatives a sibling-happy catalog offers. Adequate for a trivial pure function but leaves routing to inference.

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