Skip to main content
Glama

mechacut

semver_sort

Sort versions by semver PRECEDENCE (rule 11), not alphabet: 10.0.0 > 2.0.0, prerelease < release, numeric identifiers ordered numerically. Agents pick the wrong 'latest' daily; this one cannot.

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": {
      "versions": "<versions>"
    },
    "name": "semver_sort"
  }
}

Input Schema

NameRequiredDescriptionDefault
versionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does well on comparison semantics (prerelease < release, numeric identifiers compared numerically), but never states the output direction (ascending vs descending), what happens with invalid or non-semver strings, or whether build metadata is considered — meaningful gaps for a sorting tool.

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?

Two tight sentences, front-loaded with the rule and comparison semantics before the rationale. The closing line ('Agents pick the wrong latest daily; this one cannot') is motivational rather than instructive, but it is short and reinforces the purpose.

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 single-parameter tool with no output schema, the essentials are mostly covered, but two things an agent needs to call it correctly are absent: the sort direction and the failure behavior for invalid versions.

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?

There is one parameter at 0% schema description coverage, so the description should compensate. It implies the items are semver version strings and that numeric/pre-release segments are handled specially, but never describes the input as an array of strings or what forms of version string are accepted.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names the exact operation and the ordering rule: 'Sort versions by semver PRECEDENCE (rule 11), not alphabet'. The contrast with plain alphabetical sorting distinguishes it from siblings like sort_natural and sort_multi without needing their schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Clear context for when to reach for this tool: any time a 'latest' version must be chosen, since naive sorting gets it wrong. It gives the deciding signal ('not alphabet') but names no explicit alternative tool and no when-not conditions.

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.