Skip to main content
Glama

nexus_get_dependency_snippet

Generate ready-to-paste dependency snippets (Maven, Gradle, npm, pip, Docker) for an artifact and resolve the latest release when version or name is omitted.

Instructions

Generate ready-to-paste dependency snippets (Maven pom.xml, Gradle, npm, Docker pull/login, pip, or a direct download URL) for an artifact so it can be added to a codebase. If version/name/format are omitted, resolves the latest release in the repository first. For Docker, resolves the actual pull address — preferring path-based routing (docker.pathEnabled, which works behind a reverse proxy like nginx that only exposes HTTPS) over a dedicated connector host:port when both are configured. Also returns the repository's browse URL (repository_url) and access_help pointing to where to request repo access (Nexus's REST API has no concept of 'required role' for a repository). Never includes real credentials — only environment-variable placeholders.

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": {
      "repository": "<repository>"
    },
    "name": "nexus_get_dependency_snippet"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoComponent/package name (omit to auto-resolve the latest release)
groupNoOptional group filter (Maven groupId, etc.)
formatNoComponent format (maven2, npm, docker, pypi, raw, etc.)
versionNoVersion to target (omit to use the latest release)
build_toolNoRestrict output to one tool's snippets, e.g. 'maven', 'gradle', 'npm', 'pip', 'docker'. Omit to get all applicable snippets for the format.
repositoryYesRepository the artifact lives in

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so well: it discloses auto-resolution of the latest release when inputs are omitted, Docker address resolution logic preferring path-based routing behind a reverse proxy, extra output fields (repository_url, access_help), and that credentials are never real — only environment-variable placeholders. These are non-obvious behaviors an agent could not derive from the schema or annotations.

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?

Three sentences, front-loaded with the core action and output formats, then behavior, then output side-fields. Dense but largely earning its place; the parenthetical about Nexus's REST API lacking a 'required role' concept is slightly tangential yet justifies the access_help field.

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 6-parameter, read-oriented helper with no output schema, the description covers what is generated, what extra fields come back, and how omission of inputs is resolved. It leaves error/permission-failure behavior unspecified, which keeps it just short of fully complete.

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 schema already documents each parameter including 'omit to auto-resolve the latest release' and 'omit to get all applicable snippets.' The description largely restates that behavior (name/version/format omission, build_tool restriction) rather than adding syntax, format, or precedence detail beyond the schema — baseline 3 for a fully documented schema.

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?

States a specific verb and resource — 'Generate ready-to-paste dependency snippets (Maven pom.xml, Gradle, npm, Docker pull/login, pip, or a direct download URL) for an artifact' — and enumerates the concrete output forms. It does not explicitly name siblings such as nexus_get_download_url or nexus_get_component, so the boundary is implied by the enumerated outputs rather than stated.

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 through the purpose clause 'so it can be added to a codebase,' and it explains the fallback when version/name/format are omitted. However, it never says when NOT to use it or which sibling (e.g. nexus_get_download_url) to pick instead, and prerequisites like needing repo access are only hinted at indirectly via access_help.

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