Skip to main content
Glama

Get Package

get_package
Read-onlyIdempotent

Registration metadata for a package — versions, tags, dependencies, dates.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesPackage id (e.g. "Newtonsoft.Json")
prereleaseNoInclude prerelease pages (default false)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
countNoTotal number of version pages
itemsNoVersion catalog pages
@contextNoJSON-LD context

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "id": "Newtonsoft.Json"
      +  },
      +  {
      +    "id": "Serilog",
      +    "prerelease": true
      +  }
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "Package registration metadata with versions and dependencies",
      +  "properties": {
      +    "@context": {
      +      "description": "JSON-LD context",
      +      "type": "object"
      +    },
      +    "count": {
      +      "description": "Total number of version pages",
      +      "type": "integer"
      +    },
      +    "items": {
      +      "description": "Version catalog pages",
      +      "items": {
      +        "properties": {
      +          "@id": {
      +            "description": "URL to version page",
      +            "type": "string"
      +          },
      +          "count": {
      +            "description": "Number of versions in this page",
      +            "type": "integer"
      +          },
      +          "items": {
      +            "description": "Version entries",
      +            "items": {
      +              "properties": {
      +                "@id": {
      +                  "description": "URL to version metadata",
      +                  "type": "string"
      +                },
      +                "downloads": {
      +                  "description": "Version download count",
      +                  "type": "integer"
      +                },
      +                "listed": {
      +                  "description": "Whether version is listed",
      +                  "type": "boolean"
      +                },
      +                "version": {
      +                  "description": "Package version",
      +                  "type": "string"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "lower": {
      +            "description": "Lower bound version in this page",
      +            "type": "string"
      +          },
      +          "upper": {
      +            "description": "Upper bound version in this page",
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the description adds value by specifying the content of the metadata (versions, tags, dependencies, dates). No contradictions. The description enriches the behavioral profile beyond the annotations.

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, concise sentence that front-loads the key purpose and enumerates the data categories. Every word is informative and no redundant phrases are present.

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 tool's simplicity (two parameters, output schema present, comprehensive annotations), the description is adequate. It covers the return type, though it could mention that the output is a JSON object, but the output schema handles that. It feels complete for the context.

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% as both id and prerelease parameters have clear schema descriptions. The tool description does not add additional parameter semantics beyond what the schema already provides, so baseline score of 3 is appropriate.

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 'Registration metadata for a package' and lists the specific types of information returned (versions, tags, dependencies, dates). This verb-resource combination distinguishes it from siblings like list_versions which likely return only versions.

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?

The description implies usage for retrieving full package metadata, but does not explicitly state when to use this tool versus alternatives like list_versions or latest_version. The purpose is clear enough for an agent to infer, but lacks explicit guidance.

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.