Skip to main content
Glama

dev_pep440

Read-only

Python version check (PEP 440 parse, compare, specifier match) — Offline PEP 440 engine with the same ordering and specifier rules as Python's packaging library and pip. Pass version= to parse and normalize it (epoch, release, pre/post/dev, local, flags); add spec= (e.g. >=2.0,<3 or ~=1.4.2 or ==1.3.*) to test each clause, other= to compare two versions, or versions= (comma list, up to 500) to sort them and pick the best match for spec= the way pip does (finals before pre-releases unless prereleases=true or the spec names a pre-release). Price: $0.002 USDC (Base, via 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": {
      "version": "<version>",
      "spec": "<spec>"
    },
    "name": "dev_pep440"
  }
}

Input Schema

NameRequiredDescriptionDefault
specYes>=2.0,<3
versionYes2.1.0rc1

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Beyond the read-only and non-destructive annotations, the description discloses pricing ($0.002 USDC via x402), the 500-item limit for versions=, and pip-like ordering rules such as finals before pre-releases unless prereleases=true. It does not explain error behavior or return formats, which keeps it below a 5.

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?

The description is front-loaded with the core purpose and then packs mode-specific details and pricing into a dense single paragraph. It is appropriately sized for a multi-mode tool, though the run-on structure makes some parameter relationships harder to follow.

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?

The tool has moderate complexity but no output schema, and the description does not state what parse, match, compare, or sort return. It also describes parameters absent from the schema, so an agent cannot rely on the description alone to invoke the tool correctly.

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%, so the baseline is 3, and the description does add useful meaning for version= parsing and spec= clauses. However, it references other=, versions=, and prereleases= parameters that do not exist in the schema, and it describes spec= as optional when it is required, creating invocation-level ambiguity.

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 states a specific verb and resource: Python version check with PEP 440 parse, compare, and specifier match. It clearly distinguishes the tool as an offline PEP 440 engine equivalent to Python's packaging library and pip, which separates it from package-registry siblings like dev_pypi.

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 mode-specific guidance: pass version= to parse, add spec= to test clauses, other= to compare two versions, or versions= to sort and pick a best match. It does not name alternative sibling tools or exclusion cases, and it misleadingly presents spec= as optional even though the schema requires it.

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