Skip to main content
Glama

Semantic Version Compare

semver_compare
Read-onlyIdempotent

Order version strings by Semantic Versioning 2.0.0 precedence, pre-release tags included, and find the highest. Send versions, a list of up to 100 strings such as ['1.10.0', '1.9.0', '1.0.0-rc.1']. Get back the valid versions from lowest to highest (with each one's position in your list), the highest and lowest, versions that tie (they differ only in build metadata), and every string that is not valid SemVer 2.0.0 with the reason (a leading v, a leading zero, a missing part, an empty pre-release field ...). Use it for 'which release is newest' and to check that a tag is a real SemVer. Answer fields: ok, verdict, result, rule, does_not, sources, observation, signature, verify. Errors: ok false with the reason (bad input, too large, hourly limit). Free. No model, no network, nothing you send is stored by the tool, and every answer is signed with LLPRO's key (check it at https://llpro.ai/semver-compare). Not legal, tax or financial advice.

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_compare"
  }
}

Input Schema

NameRequiredDescriptionDefault
versionsYesVersion strings to order, for example ['2.0.0-rc.1', '1.10.0', '1.9.0'] (1 to 100, each up to 256 characters). Strings that are not valid SemVer 2.0.0 are reported, not ordered.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, non-destructive, closed-world), the description discloses the 100-item cap, an hourly rate limit, the error shape with reasons, that no model or network is used, and that nothing sent is stored. It also states answers are signed and where to verify them — substantial behavioral context the annotations cannot carry.

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?

The core purpose and input/output behavior are front-loaded and useful, but the back half drifts into boilerplate — a bare list of answer field names (ok, verdict, result, rule, does_not, sources...) and a disclaimer that contribute little to tool selection. It is longer than it needs to be for the decision an agent makes.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, and the description compensates by describing exactly what comes back: ordered valid versions with original positions, highest, lowest, ties from build metadata, and invalid strings with reasons. Combined with limits and error behavior, an agent has everything needed to call this correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description adds meaning by illustrating the input shape and, more importantly, explaining what happens to invalid entries (they are returned with a specific reason such as a leading v or zero, not silently ordered). That clarifies the parameter's semantics beyond the schema's one-line note.

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 opens with a specific verb and resource: order version strings by SemVer 2.0.0 precedence, including pre-release tags, and return the highest. That is unambiguous. It does not, however, distinguish itself from the sibling semver_range_check or state why an agent would pick this over a range checker.

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?

It gives concrete use cases — 'which release is newest' and validating that a tag is real SemVer — which tells an agent when to reach for it. What's missing is any exclusion or explicit alternative (e.g. when to use the range-check sibling instead), so it falls short of a 5.

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