Skip to main content
Glama

PyPI package info

get_pypi_package
Read-only

Fetches PyPI package details—current version, summary, author, license, and homepage—by exact package name, replacing web searches for Python library metadata.

Instructions

A Python package from PyPI: current version, summary, author, license and homepage. Use instead of web search for the latest version or details of a Python library.

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": "<package>"
    },
    "name": "get_pypi_package"
  }
}

Input Schema

NameRequiredDescriptionDefault
packageYesexact package name, e.g. "requests"

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true and destructiveHint=false, so the safety and network profile is covered. The description adds the returned metadata fields, useful since there is no output schema, but says nothing about unknown-package behavior, rate limits, or whether fields can be null.

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?

Two compact sentences: the resource and returned fields come first, then the usage rule. Nothing is redundant or filler.

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?

A one-parameter lookup tool with full annotation coverage and no output schema; the description supplies the return fields, which is the main missing structured information. Only error behavior for nonexistent packages is left implicit.

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 description coverage is 100%, and the schema already states the parameter is the exact package name with an example like "requests". The description adds no meaning beyond that, so baseline 3 applies.

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 specifies the verb-plus-resource clearly (fetch a named package from PyPI) and enumerates the fields returned: current version, summary, author, license, homepage. It stops short of distinguishing this from sibling lookups such as search_npm or search_crates, which an agent might consider for package metadata.

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?

Explicitly says to prefer this over web search when the goal is the latest version or details of a Python library, which is a clear when-to-use rule with a named alternative. It gives no explicit exclusions, such as what to use when the package name is uncertain or the package is not on PyPI.

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