Skip to main content
Glama

Satisfies Range

satisfies_range
Read-onlyIdempotent

Test whether a version satisfies a range: exact, ^ (caret), ~ (tilde), comparators (>=,>,<=,<,=), x-ranges (1.2.x), AND (space-separated), OR (||). E.g. version "1.4.2", range "^1.2.0".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rangeYesThe range, e.g. "^1.2.0" or ">=1.2.0 <2.0.0".
versionYesThe version to test.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "range": "^1.2.0",
      +    "version": "1.4.2"
      +  },
      +  {
      +    "range": ">=1.0.0 <2.0.0",
      +    "version": "1.5.0"
      +  }
      +]
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations declare readOnlyHint=true, destructiveHint=false, and idempotentHint=true. The description adds detailed behavioral context by enumerating supported range syntaxes (caret, tilde, comparators, x-ranges, AND, OR) and providing an example, which is beyond what annotations provide.

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?

The description is a single sentence with an example, front-loading the purpose. Every element earns its place; there is no wasted text.

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?

Given the simplicity of the tool (2 required params, no output schema), the description is nearly complete. It could optionally mention that the return is a boolean, but the purpose 'test whether' implies a boolean result. The examples cover typical usage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with clear descriptions for both parameters. The description adds extra value by explaining the range syntax with examples, which enhances the agent's understanding beyond the schema alone.

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?

The description clearly states 'Test whether a version satisfies a range', a specific verb+resource. It distinguishes from sibling tools like 'compare_semver' and 'parse_semver' by focusing on satisfaction testing, and provides examples of supported syntax.

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?

The description gives clear context for when to use this tool (version range testing) but does not explicitly mention when not to use it or list alternatives from siblings. The context is sufficient for correct invocation.

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.