Skip to main content
Glama

nexus_get_component_versions

List all distinct component versions in a Nexus repository, sorted ascending with the final version reported separately for CI version bumps and dependency resolution.

Instructions

List all distinct versions of a component name in a repository, sorted ascending, with the latest version surfaced separately. Useful for CI version-bump and dependency-resolution workflows.

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": "<name>"
    },
    "name": "nexus_get_component_versions"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesComponent name to match
groupNoOptional group filter (Maven groupId, etc.)
formatNoOptional component format filter
repositoryYesRepository to search within

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral load, and it does disclose useful output traits: deduplicated versions, ascending sort, and latest surfaced separately. However, it says nothing about read-only semantics, permissions, result size, or whether unfiltered searches can be expensive, which matters for a repository-wide listing.

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 sentences, no filler, and the core behavior (what is returned, in what order, with the latest called out) is front-loaded before the workflow hint. Every clause earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema and no annotations, so the description is the only source of return-shape information, and it does describe ordering and the separate latest version. It remains incomplete on filter interaction and failure behavior for a four-parameter repository query.

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 coverage is 100%, so the baseline is 3. The description mentions the component name and repository implicitly but says nothing about the optional group and format filters, which are the parameters most likely to be misunderstood when narrowing results.

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 ('List all distinct versions of a component name in a repository') plus concrete ordering behavior, which is clearly distinct from fetching a single component or the latest release. It stops short of naming the sibling tools it should be preferred over, so it lands just below the top band.

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?

'Useful for CI version-bump and dependency-resolution workflows' gives a use-case context but not a decision rule. It never says when to choose this over nexus_get_component, nexus_get_latest_release, or nexus_search_components, and offers no exclusions or prerequisites.

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