Skip to main content
Glama

mechacut

sort_natural

Human-order sort (file2 before file10) over strings, stable, with the exact permutation index so you can reapply it elsewhere. A model misorders lists past ~30 items — this can't. Free.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "items": "<items>"
    },
    "name": "sort_natural"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYes
reverseNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses stability and that the result includes the exact permutation index (important, since there is no output schema), but it says nothing about error behavior for non-string items, what happens with empty arrays, or how `reverse` interacts with the returned index order.

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?

Three short sentences, front-loaded with the core behavior and the example. The trailing 'Free' and the rhetorical 'this can't' add little for an invoking agent, but nothing is buried or bloated.

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-parameter pure function with no annotations and no output schema, the return-value hint (permutation index) is the right thing to include and it does so. The gap is the undocumented `reverse` parameter and the absence of any edge-case guidance, which leaves the definition only partly complete.

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%, so the description must compensate for both parameters. It conveys that `items` is an array of strings only obliquely ('over strings'), and `reverse` is never mentioned at all despite being a non-obvious toggle that likely flips the index meaning as well.

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 (sort) and resource (strings) with a concrete example of natural ordering ('file2 before file10'), which is enough to distinguish it from a lexicographic or semver sort. It never names a sibling tool, so differentiation from semver_sort is left to inference from the example.

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 line 'A model misorders lists past ~30 items — this can't' implies when to reach for it (delegating ordering rather than doing it inline), but there is no explicit when-to-use clause, no exclusions, and no pointer to semver_sort for version-string cases.

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.