Skip to main content
Glama

semver-check

Version range check: npm, PEP 440, Cargo, Maven — Parses a dependency version range in npm (node-semver), PEP 440 specifier, Cargo requirement or Maven range syntax and tests up to 100 candidate versions against it, for agents that write or review manifests. Returns per-version satisfies/violates with the failing comparator, the normalized range, the sorted versions and the highest match; pre-release, caret on 0.x, epoch and local-version rules f

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": {
      "ecosystem": "<ecosystem>",
      "range": "<range>"
    },
    "name": "semver-check"
  }
}

Input Schema

NameRequiredDescriptionDefault
rangeYesThe range: npm '^1.2.3 || >=2', PEP 440 '>=1.0,<2', Cargo '>=1.2, <1.5', Maven '[1.0,2.0)'.
versionsNoCandidate versions to test; omit to only validate the range.
ecosystemYesWhich range syntax and version ordering to apply.
prereleasesNonpm includePrerelease / PEP 440 prereleases=true. Default false (ecosystem default exclusion applies).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does so well: it discloses the return payload (per-version satisfies/violates, failing comparator, normalized range, sorted versions, highest match), the 100-candidate cap, and that pre-release, caret-on-0.x, epoch and local-version rules are applied. The only shortfall is that the trailing clause is cut off mid-word ('rules f'), leaving the edge-case behavior set incompletely stated.

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?

It is front-loaded with the resource and ecosystems, then the return contract, with no filler sentences. The density is high but the em-dash heading and mid-sentence audience clause make it a single run-on block, and the truncation at the end costs a little clarity.

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

Completeness4/5

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

For a pure-computation tool with no annotations and no output schema, the description supplies the missing return-value contract and the semantics of edge cases, which is exactly the gap that needs filling. Completeness is only slightly reduced by the truncated final clause.

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 100%, so range syntaxes, the ecosystem enum, the 100-item cap and the prereleases default are already documented in structured fields; the description repeats rather than extends them. It adds no new per-parameter meaning, so the baseline 3 applies.

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?

The description opens with a specific verb and resource ('Version range check') and immediately enumerates the four syntaxes it handles (npm/node-semver, PEP 440, Cargo, Maven) plus the core action of testing up to 100 candidate versions. An agent can tell this is a range-satisfaction evaluator, not a version comparator or dependency resolver, without reading the schema.

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 names its audience and context ('for agents that write or review manifests') and states that omitting versions validates a range only, which is real when-to-use guidance. It stops short of exclusions — e.g., no pointer to a sibling for resolving which version is actually installed, and no statement of when a different check tool would be preferred.

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