Skip to main content
Glama

Get Package

get_package
Read-onlyIdempotent

Get metadata for a Python package on PyPI (the Python Package Index). Returns the latest version, summary, author, license, project URLs, required Python version, keywords, classifiers, and the release artifact files that pip install would download. Pass the exact pip package name (e.g. "requests", "numpy").

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesExact PyPI package name, e.g. "requests".

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesPackage name
authorYesPackage author name
licenseYesLicense type
summaryYesShort package description
versionYesLatest version number
keywordsYesPackage keywords
home_pageYesPackage homepage URL
author_emailYesPackage author email
latest_filesYesLatest distribution files
project_urlsYesAdditional project URLs
recent_versionsYesLast 10 available versions
requires_pythonYesPython version requirement

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / name / description
      Previous value: -"PyPI package name"New value: +"Exact PyPI package name, e.g. \"requests\"."
  2. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "name": "django"
      +  },
      +  {
      +    "name": "pandas"
      +  }
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "author": {
      +      "description": "Package author name",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "author_email": {
      +      "description": "Package author email",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "home_page": {
      +      "description": "Package homepage URL",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "keywords": {
      +      "description": "Package keywords",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "latest_files": {
      +      "description": "Latest distribution files",
      +      "items": {
      +        "properties": {
      +          "filename": {
      +            "description": "Distribution filename",
      +            "type": "string"
      +          },
      +          "packagetype": {
      +            "description": "Package type (e.g., sdist, bdist_wheel)",
      +            "type": "string"
      +          },
      +          "upload_time": {
      +            "description": "Upload timestamp",
      +            "type": "string"
      +          },
      +          "url": {
      +            "description": "Download URL",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "filename",
      +          "packagetype",
      +          "upload_time",
      +          "url"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "license": {
      +      "description": "License type",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "name": {
      +      "description": "Package name",
      +      "type": "string"
      +    },
      +    "project_urls": {
      +      "description": "Additional project URLs",
      +      "type": "object"
      +    },
      +    "recent_versions": {
      +      "description": "Last 10 available versions",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "requires_python": {
      +      "description": "Python version requirement",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "summary": {
      +      "description": "Short package description",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "version": {
      +      "description": "Latest version number",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "name",
      +    "version",
      +    "summary",
      +    "author",
      +    "author_email",
      +    "license",
      +    "requires_python",
      +    "home_page",
      +    "project_urls",
      +    "keywords",
      +    "recent_versions",
      +    "latest_files"
      +  ],
      +  "type": "object"
      +}
  3. Changed2 schema fields changed
    • removedInput schema / examples
      Removed value: -[
      -  {
      -    "name": "django"
      -  },
      -  {
      -    "name": "pandas"
      -  }
      -]
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "author": {
      -      "description": "Package author name",
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "author_email": {
      -      "description": "Package author email",
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "home_page": {
      -      "description": "Package homepage URL",
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "keywords": {
      -      "description": "Package keywords",
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "latest_files": {
      -      "description": "Latest distribution files",
      -      "items": {
      -        "properties": {
      -          "filename": {
      -            "description": "Distribution filename",
      -            "type": "string"
      -          },
      -          "packagetype": {
      -            "description": "Package type (e.g., sdist, bdist_wheel)",
      -            "type": "string"
      -          },
      -          "upload_time": {
      -            "description": "Upload timestamp",
      -            "type": "string"
      -          },
      -          "url": {
      -            "description": "Download URL",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "filename",
      -          "packagetype",
      -          "upload_time",
      -          "url"
      -        ],
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "license": {
      -      "description": "License type",
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "name": {
      -      "description": "Package name",
      -      "type": "string"
      -    },
      -    "project_urls": {
      -      "description": "Additional project URLs",
      -      "type": "object"
      -    },
      -    "recent_versions": {
      -      "description": "Last 10 available versions",
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "requires_python": {
      -      "description": "Python version requirement",
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "summary": {
      -      "description": "Short package description",
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "version": {
      -      "description": "Latest version number",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "name",
      -    "version",
      -    "summary",
      -    "author",
      -    "author_email",
      -    "license",
      -    "requires_python",
      -    "home_page",
      -    "project_urls",
      -    "keywords",
      -    "recent_versions",
      -    "latest_files"
      -  ],
      -  "type": "object"
      -}New value: +null
  4. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "author": {
      +      "description": "Package author name",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "author_email": {
      +      "description": "Package author email",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "home_page": {
      +      "description": "Package homepage URL",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "keywords": {
      +      "description": "Package keywords",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "latest_files": {
      +      "description": "Latest distribution files",
      +      "items": {
      +        "properties": {
      +          "filename": {
      +            "description": "Distribution filename",
      +            "type": "string"
      +          },
      +          "packagetype": {
      +            "description": "Package type (e.g., sdist, bdist_wheel)",
      +            "type": "string"
      +          },
      +          "upload_time": {
      +            "description": "Upload timestamp",
      +            "type": "string"
      +          },
      +          "url": {
      +            "description": "Download URL",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "filename",
      +          "packagetype",
      +          "upload_time",
      +          "url"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "license": {
      +      "description": "License type",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "name": {
      +      "description": "Package name",
      +      "type": "string"
      +    },
      +    "project_urls": {
      +      "description": "Additional project URLs",
      +      "type": "object"
      +    },
      +    "recent_versions": {
      +      "description": "Last 10 available versions",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "requires_python": {
      +      "description": "Python version requirement",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "summary": {
      +      "description": "Short package description",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "version": {
      +      "description": "Latest version number",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "name",
      +    "version",
      +    "summary",
      +    "author",
      +    "author_email",
      +    "license",
      +    "requires_python",
      +    "home_page",
      +    "project_urls",
      +    "keywords",
      +    "recent_versions",
      +    "latest_files"
      +  ],
      +  "type": "object"
      +}
  5. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "name": "django"
      +  },
      +  {
      +    "name": "pandas"
      +  }
      +]
  6. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint, and no destructiveness. The description adds value by detailing the returned metadata (version, summary, keywords, etc.), helping the agent understand the output.

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?

Three concise sentences, front-loaded with the core purpose, no wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, the description sufficiently covers what the tool returns, and the annotations cover safety. The tool definition is complete for the agent.

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% and the parameter description is already clear. The description reiterates the example, adding little extra meaning beyond the schema.

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 it retrieves metadata for a Python package on PyPI, listing specific fields (latest version, summary, etc.). It distinguishes from siblings like get_package_version.

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?

It instructs to pass the exact pip package name, providing clarity on input. While no explicit alternatives are given, the purpose is specific enough for an agent to infer when to use.

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.