Skip to main content
Glama

Parse and validate a semantic version

parse_version
Read-onlyIdempotent

Validate a version against SemVer 2.0.0 and split it into major, minor, patch, prerelease identifiers and build metadata, with isPrerelease/isStable flags. Read-only. Same engine as GET /api/parse.

Input Schema

NameRequiredDescriptionDefault
versionYesVersion: a semantic version such as "1.4.2", "v2.0.0" or "3.0.0-rc.1+build.5".

Output Schema

NameRequiredDescriptionDefault
buildNo
inputNo
majorYes
minorYes
notesNo
patchYes
versionYes
isStableNo
apiVersionYes
prereleaseNo
isPrereleaseYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, so restating 'Read-only' adds nothing. The one genuinely new behavioral fact is 'Same engine as GET /api/parse', which tells the agent results match the REST endpoint - useful but thin for an otherwise annotation-covered tool.

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?

A single front-loaded sentence packs purpose, spec version, output fields and flags with zero filler; nothing needs trimming.

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?

With an output schema present, enumerating major/minor/patch/isStable in the description is partly redundant, but the spec reference (SemVer 2.0.0) and API-parity note make it complete enough for a one-parameter tool.

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 the version parameter already carries examples ('1.4.2', 'v2.0.0', '3.0.0-rc.1+build.5'). The description mentions prerelease/build metadata but adds no format, tolerance (e.g., leading 'v') or error behavior beyond the schema, 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 and resource ('Validate a version against SemVer 2.0.0 and split it into major, minor, patch...') and describes the exact output shape, which cleanly separates it from siblings like compare_versions or bump_version that operate on versions differently.

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 implied by the purpose (parse/validate a single version string), but the description never says when to prefer this over check_range or compare_versions, nor any exclusions or prerequisites. It's adequate but leaves routing entirely to the agent's inference.

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