Skip to main content
Glama

Go Module Proxy Ecosystem MCP

Get and parse Go module go.mod file

get_go_mod_file
Read-onlyIdempotent

Fetch the go.mod file for a Go module version and parse its Go version, direct dependencies, and indirect dependencies.

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": {
      "module_path": "<module_path>",
      "version": "<version>"
    },
    "name": "get_go_mod_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
versionYesSemver version starting with v (e.g. "v1.10.0").
module_pathYesGo module path (e.g. "github.com/gin-gonic/gin").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint, so the safety profile is covered. The description adds that the result is a parsed structure limited to Go version and direct/indirect dependencies, which is genuinely useful since there is no output schema, but it says nothing about failure modes (missing module, invalid version, network errors) or whether unparsed content is discarded.

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?

A single front-loaded sentence with no filler, stating the fetch action and the parsed artifacts up front. It could be marginally improved with one clause on selection vs. siblings, but nothing is wasted.

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 two-parameter read-only tool with full schema coverage and no output schema, the description usefully enumerates the returned fields, which compensates for the missing output schema. It falls short only on error/edge-case behavior and on explicit placement relative to the version-listing siblings.

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%, with both module_path and version documented including format examples, so the baseline is 3. The description adds no further parameter meaning such as version resolution rules or path casing behavior beyond what the schema states.

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?

Specific verb plus resource: fetch the go.mod file for a given module version and parse Go version, direct dependencies, and indirect dependencies. This clearly sets it apart from siblings like get_version_info and list_module_versions, which surface version metadata rather than file contents, though no sibling is named 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 implied by the described output (dependency and Go version extraction), so an agent can infer this is the tool for go.mod contents. However, there is no explicit when-to-use or when-not guidance, no mention of prerequisites such as module existence, and no routing against the sibling tools.

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.