semver
semver compare {a,b} -> cmp -1|0|1
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | No | ||
| b | No |
semver compare {a,b} -> cmp -1|0|1
| Name | Required | Description | Default |
|---|---|---|---|
| a | No | ||
| b | No |
Changes observed during successful MCP inspections.
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations and no output schema, the description carries the full burden, and it does disclose the return contract (-1|0|1) which is genuinely useful. However it says nothing about error behavior for malformed versions, whether prerelease/build metadata affects ordering, or whether the return is an integer or a string literal.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
It is front-loaded and wastes no words, but the compression crosses into under-specification: the arrow notation and 'cmp' shorthand assume the reader already knows the contract. Brevity here costs clarity rather than serving it.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple two-parameter tool with no output schema, the description does cover the essential contract (inputs and comparison result). It is still missing input format expectations and failure behavior, which an agent would need for correct invocation on edge-case inputs.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0% and both parameters (a, b) are undocumented in the schema. The description's '{a,b}' notation implies two versions to compare but gives no format guidance (plain semver vs ranges), no statement of required-ness, and no ordering meaning for a vs b.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description names a specific operation (semver compare) and its two operands plus the return value shape (-1|0|1), which is enough to distinguish it from unrelated siblings like hash, uuid, or cron_next. It is terse and does not spell out 'semantic version' explicitly, but the verb+resource+result is identifiable.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no statement of when to use this tool, when not to, or what alternatives exist. Siblings are unrelated utilities, so no routing conflict exists, but the agent is given no context such as 'use for version ordering / precedence checks'.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.