Skip to main content
Glama

semver_parse

Read-onlyIdempotent

Parse semantic version strings into major, minor, patch, and prerelease parts to support version validation, comparison, and release automation.

Instructions

Parse a semantic version string into major, minor, patch, and prerelease.

Input Schema

NameRequiredDescriptionDefault
versionYesVersion string (e.g. 2.3.1-beta.1).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.11

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so safety is covered. The description does not say what happens with a malformed or non-semver input (throw vs. partial parse) or whether missing prerelease is omitted or null — meaningful gaps for a parser.

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 with no filler; the output components are listed immediately after the verb so the reader knows the shape of the result.

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 one-parameter, no-output-schema tool this is nearly sufficient, but the return shape (field names/types, handling of absent prerelease, error behavior) is left to inference. A sentence on failure mode would close the remaining gap.

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 example (2.3.1-beta.1) already lives in the schema, so the description adds little beyond repeating 'version string'. It does reinforce that the input must be a semantic version, but no format edge cases are clarified.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (parse) and resource (semantic version string) and enumerates the parsed components, so the operation is unambiguous. It does not distinguish itself from the sibling semver_compare, which an agent must infer from the name alone.

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

Usage Guidelines2/5

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

There is no guidance on when to use this versus semver_compare or the other version/number utilities, nor any mention of prerequisites. The agent must infer usage purely from the tool name and description.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools