Skip to main content
Glama

PyPI Package Metadata & Releases MCP

Check Python version compatibility

check_python_requires
Read-onlyIdempotent

Inspect a PyPI package requires_python specifier and declared Python classifiers, and optionally test whether a target Python version (such as "3.11" or "3.12") satisfies the constraint.

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": {
      "package_name": "<package_name>"
    },
    "name": "check_python_requires"
  }
}

Input Schema

NameRequiredDescriptionDefault
package_nameYesPyPI package name (e.g. "requests", "fastapi").
target_pythonNoOptional target Python version to evaluate (e.g. "3.9", "3.11", "3.13").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety and network profile is covered. The description adds that two data sources are consulted (the requires_python specifier and declared classifiers), which is useful behavior beyond the annotations, but it does not say what happens when requires_python is absent or how classifier data is reconciled.

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?

One front-loaded sentence that states the primary action first and the optional mode second, with zero filler. It is somewhat dense as a single run-on clause, but no sentence is wasted.

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?

With no output schema, the description should indicate what comes back — the extracted specifier string, the classifier list, and the boolean satisfaction result. It stops at describing inputs and the inspection target, leaving the return shape and missing-specifier behavior undefined for a simple two-parameter tool.

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%, so baseline is 3, but the description adds real meaning: it explains that target_python switches the tool into an evaluation mode ('test whether a target Python version satisfies the constraint') rather than merely being another filter. That behavioral distinction is not evident from the schema alone.

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?

The description pairs a specific verb ('Inspect') with a specific resource ('a PyPI package requires_python specifier and declared Python classifiers') and adds the optional evaluation mode. An agent can tell this is about Python-version compatibility rather than downloads, metadata, or dependencies, though no sibling is named explicitly for contrast.

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 phrasing: inspect the constraint, and 'optionally' pass a target version to test satisfaction. There is no statement of when not to use it (e.g., versus get_package_metadata, which likely also carries requires_python) and no named alternatives.

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.