Skip to main content
Glama

util_semver

Read-only

Semantic version tool — Parse, compare and range-check semantic versions: is 2.1.0 newer than 2.0.9, does 1.4.2 satisfy ^1.2.0, and which is the highest version in a list matching a range. npm-style ranges supported. Price: $0.001 USDC (Base, via x402).

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": {
      "a": "<a>"
    },
    "name": "util_semver"
  }
}

Input Schema

NameRequiredDescriptionDefault
aYesa version, e.g. 1.4.2
bNooptional version to compare
rangeNooptional range, e.g. ^1.2.0 or >=2 <3
versionsNooptional comma-separated list to sort

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the annotations (readOnly, non-destructive), the description discloses two things the annotations do not: npm-style range semantics and a per-call price of $0.001 USDC on Base via x402. That cost/payment detail is genuinely useful pre-invocation context. It does not describe the response shape, which keeps it from a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One front-loaded sentence names the capability, then three short illustrative cases, then the price. Every clause earns its place and nothing is repeated.

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 simple, read-only utility the description is mostly sufficient, but with no output schema present it never says what comes back — a boolean, a formatted comparison string, or the highest matching version — which is the main thing an agent still has to guess.

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 coverage is 100% and already documents all four fields with examples (^1.2.0, >=2 <3, comma-separated list). The description's only real addition is the 'npm-style ranges supported' qualifier; everything else restates what the schema says, so 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?

States a specific verb set and resource: parse, compare and range-check semantic versions, backed by concrete example questions ('is 2.1.0 newer than 2.0.9', 'does 1.4.2 satisfy ^1.2.0'). No sibling in the util_* family does version math, and the description makes that boundary obvious.

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?

Usage is conveyed through three concrete example scenarios covering the comparison, range-satisfaction, and list-sorting cases, which map cleanly onto the three optional parameters. There are no explicit when-not exclusions, but with no competing semver sibling there is little ambiguity left.

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