Skip to main content
Glama

Semantic Version Range Check

semver_range_check
Read-onlyIdempotent

Check whether a version satisfies a version range, or find the highest version in a list that does, exactly as npm's node-semver 7.8.6 does in its default (strict) mode. Send range (npm range grammar: ^1.2.3, ~1.2, 1.x, >=1.2.0 <2, 1.2.3 - 2.3.4, a || b) and either version or versions (up to 200). Optional include_prerelease. Get back the range as node-semver normalizes it (e.g. ^1.2.3 is >=1.2.3 <2.0.0-0), satisfies true or false per version with the set that matched, whether the prerelease rule excluded it, invalid versions marked, and max_satisfying. 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-range-check). 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": {
      "range": "<range>"
    },
    "name": "semver_range_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
rangeYesThe version range in npm syntax, e.g. '^1.2.3', '~1.2', '1.x || >=2.5.0 <3', '1.2.3 - 2'. Up to 256 characters.
versionNoOne version to test, e.g. '1.4.0' or '2.0.0-rc.1' (a leading v is allowed, as node-semver allows). Send version or versions, not both.
versionsNoA list of versions (up to 200): each is tested and the highest one that satisfies the range is returned as max_satisfying.
include_prereleaseNonode-semver's includePrerelease option: let prerelease versions match any range (default false: the prerelease rule applies).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already cover read-only/idempotent/non-destructive, and the description still adds substantial behavior: a 200-version ceiling, an hourly rate limit surfaced as an error condition, a statement that nothing is stored, deterministic/no-model/no-network execution, and signature verification with a URL. It also enumerates the response shape (satisfies, matched set, prerelease exclusion, invalid marking, max_satisfying) that no output schema provides.

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?

Purpose is front-loaded and the second half is informative, but the text is dense and padded: the bare list of answer field names ('ok, verdict, result, rule, does_not, sources, observation, signature, verify') conveys little without definitions, and the closing 'Free... Not legal, tax or financial advice.' is boilerplate for a semver tool.

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?

With no output schema, the description carries the return-value burden and does so: results per version, matched range set, prerelease-rule flag, normalization of the range, max_satisfying, plus the ok=false error paths (bad input, too large, hourly limit). Nothing an agent needs to invoke it correctly or interpret a response is missing.

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 the baseline is 3. The description restates the npm range grammar forms (^, ~, x, hyphen, ||) and the 'either version or versions' mutual exclusivity, but the schema already carries examples and the same constraint, so the added meaning is marginal rather than supplementary.

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?

States a specific verb and resource ('Check whether a version satisfies a version range, or find the highest version in a list that does') and pins the semantics to a named reference implementation ('npm's node-semver 7.8.6 ... default (strict) mode'). The two operating modes are distinguished up front, so an agent knows exactly what it gets.

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?

Explicitly tells the caller what to send: 'Send range ... and either version or versions (up to 200). Optional include_prerelease.' This makes the branching choice between the single-version and list modes clear. It stops short of a when-not-to-use exclusion or a named alternative, but with siblings being unrelated domain checks there is no real competitor to route away from.

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