Skip to main content
Glama

Pkg Go Dev List Versions

pkg_go_dev_list_versions
Read-onlyIdempotent

List all published versions of a Go module by its import path (e.g. "github.com/gin-gonic/gin") from proxy.golang.org. Returns a sorted array of semver version strings.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "module_path": "github.com/gin-gonic/gin"
    },
    "name": "pkg_go_dev_list_versions"
  }
}

Input Schema

NameRequiredDescriptionDefault
module_pathYesModule import path (e.g. "github.com/gin-gonic/gin", "golang.org/x/net")

Output Schema

NameRequiredDescriptionDefault
countYesNumber of published versions
versionsYesList of published versions, sorted
module_pathYesModule import path

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds meaningful context beyond that: the data comes from proxy.golang.org (explaining the open-world behavior) and the result shape is a sorted semver array. It stops short of stating failure behavior for unknown or non-module paths.

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?

Two compact, front-loaded sentences with no filler; the operation and its input are stated first and the return information second. The return sentence slightly overlaps what the output schema already provides, which keeps it from a perfect score.

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 single-parameter read tool with full annotation coverage and an output schema, the description supplies everything essential: what is listed, keyed by what, from where. It is only marginally incomplete in omitting how errors (e.g. unknown module path) surface and how it relates to the latest-version sibling.

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 single parameter already carries an example import path identical in spirit to the description's example. The description reinforces the import-path format but adds no new syntactic or semantic detail, so the baseline of 3 is appropriate.

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 gives a specific verb and resource ("list all published versions of a Go module"), names the required input type (import path), and states the backing source (proxy.golang.org). It is clear enough to distinguish from a latest-version sibling by the phrase "all published versions," but it never names pkg_go_dev_latest_version explicitly.

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 only implied: an agent can infer this is the tool to call when it needs the full version history rather than a single current version. There is no explicit when-to-use, when-not-to-use, or named alternative such as pkg_go_dev_latest_version or get_go_mod, so the routing decision is left to inference.

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.