Skip to main content
Glama

semver

semver
Read-only

Semantic versioning: validate and sort versions, find which satisfy a range (^, ~, >=, <, x, ||) and the highest match, compare two versions with the bump type, and suggest the next major / minor / patch. Costs $0.002 USDC per call (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": {
      "versions": "<versions>"
    },
    "name": "semver"
  }
}

Input Schema

NameRequiredDescriptionDefault
rangeNo
compareNo
versionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, openWorldHint=true), so the lower bar applies. The description adds a genuinely useful behavioral fact not present in structured fields: the $0.002 USDC per-call x402 cost. It does not clarify return shape or whether one call can combine modes, but the cost disclosure is meaningful added context.

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?

A single front-loaded sentence that goes straight to capabilities with zero boilerplate, followed by the pricing note. It is long and slightly run-on, but every clause carries distinct information.

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?

With no output schema, no parameter descriptions, and no annotations covering behavior, the description is the sole source of truth. It gives a good capability overview but omits the param-to-operation mapping and input formats an agent needs to construct a correct call, so it is adequate rather than complete.

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 0% across three all-string params, so the description must carry the load. It does add real meaning for 'range' (lists the ^, ~, >=, <, x, || operators) and hints at 'compare' returning a bump type, but it never states input formats (e.g., how multiple versions are delimited) or which parameter enables which operation, leaving the required 'versions' param unexplained.

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 a specific domain (semantic versioning) and enumerates the concrete operations: validate, sort, range-satisfaction with the highest match, compare with bump type, and next-version suggestion. No sibling tool overlaps with this, so an agent can identify it immediately from the name plus description.

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

Usage Guidelines3/5

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

Usage is only implied: the agent must infer that providing 'range' triggers range resolution, 'compare' triggers comparison, and 'versions' alone triggers validate/sort. No when-to-use conditions, no exclusions, and no routing to alternatives are stated.

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