Skip to main content
Glama
MCP Versioning Server

MCP Versioning Server

by torresgol10

generate_purl

Generates a Package URL (PURL) for a package in a specified ecosystem, resolving the latest version when no version is provided.

Instructions

Generate a Package URL (PURL) for a given package. If version is omitted, latest version is resolved first.

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": {
      "system": "<system>",
      "name": "<name>"
    },
    "name": "generate_purl"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesPackage name
systemYesPackage ecosystem
versionNoExplicit version (optional)
includePrereleaseNoInclude prerelease resolution when version omitted

Output Schema

NameRequiredDescriptionDefault
nameYes
purlYes
sourceYes
systemYes
versionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose one genuinely non-obvious trait: omitting version triggers an implicit latest-version resolution rather than a failure or a blank field. It says nothing about what happens when the package does not exist, whether the resolution requires network access or is cached, whether prerelease resolution affects the returned version field, or how errors surface.

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 short sentences with zero filler, front-loading what the tool produces and following immediately with the one conditional behavior that matters. Nothing could be removed without losing information.

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?

For a four-parameter generator with a fully documented schema, an output schema (so return shape need not be described), and no annotations, the description covers the essentials plus the implicit-resolution rule. It falls short only on failure modes and on whether the resolution result is reflected anywhere beyond the PURL string, which matters because the agent cannot see behavior from annotations here.

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 the per-parameter docs already establish baseline meaning, and the description goes beyond them by explaining the cross-parameter interaction: an omitted version is not simply absent but resolved to latest (with includePrerelease governing that resolution). It adds no guidance on version string syntax (exact semver vs. ranges) or on the fixed enum of ecosystems, which the schema already enumerates.

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 ("Generate") with a specific artifact ("a Package URL (PURL)") and names the input subject ("a given package"), so an agent can tell instantly that this produces a single identifier. It does not explicitly contrast with siblings like generate_purls_batch or get_latest_version, so differentiation must be inferred from the singular "for a given package" and the sibling names themselves.

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 rather than stated: you use it when you need a PURL for one package. The second sentence hints at the trade-off of omitting version (an extra resolution step), but the description never states when to prefer get_latest_version or generate_purls_batch instead, nor any prerequisites for the lookup.

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