Skip to main content
Glama

x402-nth-smallest

Nth Smallest: Returns the nth smallest number in a list, counting from 1 🆓 5 free trial calls per signed wallet

Input Schema

NameRequiredDescriptionDefault
nNo
valuesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / properties / n / description
      Removed value: -"N to process"
    • removedInput schema / properties / values / description
      Removed value: -"Values to process"
  2. Changed2 schema fields changed
    • addedInput schema / properties / n
      Added value: +{
      +  "description": "N to process",
      +  "type": "string"
      +}
    • 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?

No annotations are provided, so the description carries the full behavioral burden. It discloses the payment model (5 free trial calls per signed wallet), which is genuinely useful, but says nothing about behavior when n exceeds list length, how ties/duplicates are handled, or whether n is 1-indexed on out-of-range input.

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 stating the operation, followed by a short payment note. No wasteful filler; the only blemish is that the trial-call emoji line is appended without a clear structural boundary.

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?

With no annotations, no output schema, and no parameter descriptions, the description should compensate more than it does. The critical missing piece is the string encoding of the values list; the return shape and error behavior for invalid n are also unaddressed.

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?

Schema description coverage is 0% and neither parameter is required. The phrase 'in a list' hints at the values input, but the schema types both n and values as strings — the description never says values is a comma-separated string rather than a JSON array, which is the single most important invocation detail. It also gives no bounds or format for n.

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 ('Returns the nth smallest number in a list') and clarifies ordering semantics with 'counting from 1'. It implicitly distinguishes itself from the sibling x402-nth-largest, though it never names that alternative explicitly.

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?

No when-to-use or when-not-to-use guidance is given. With siblings like x402-nth-largest, x402-find-min, and x402-sort-numbers available, the agent gets no signal for choosing among them beyond the word 'smallest'.

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