Skip to main content
Glama

nexus_audit_repository_content

Read-onlyIdempotent

Lists a repository's components and assets with size and last-modified/downloaded dates to support cleanup or retirement decisions; flags incomplete inventories when paging limits are reached.

Instructions

List the components and assets stored in one repository, with size, last modified and last downloaded dates, by paging through the Nexus component API on the server. The result states whether the inventory is complete; when a page or component limit is reached it is marked incomplete and must not be used to decide that content is unused. Use it for cleanup or retirement questions about one repository; use nexus_explain_repository for its configuration. Slow on large repositories: one request per page. Errors if Nexus is not configured, rejects the credentials or is unreachable.

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_audit_repository_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
max_pagesNoMost component pages to read from Nexus (1-100).
repositoryYesExact repository name as shown by nexus_understand_architecture or the nexus://repositories resource, for example 'maven-central'.
max_componentsNoMost components to return (1-5000).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.2.1
    • addedInput schema / properties / max_components / description
      Added value: +"Most components to return (1-5000)."
    • addedInput schema / properties / max_components / maximum
      Added value: +5000
    • addedInput schema / properties / max_components / minimum
      Added value: +1
    • addedInput schema / properties / max_pages / description
      Added value: +"Most component pages to read from Nexus (1-100)."
    • addedInput schema / properties / max_pages / maximum
      Added value: +100
    • addedInput schema / properties / max_pages / minimum
      Added value: +1
    • addedInput schema / properties / repository / description
      Added value: +"Exact repository name as shown by nexus_understand_architecture or the nexus://repositories resource, for example 'maven-central'."
  2. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

With readOnlyHint, idempotentHint and destructiveHint already declared, the description still adds substantial context: the completeness flag semantics, the hard warning that an incomplete inventory must not be used to conclude content is unused, per-page request cost on large repositories, and concrete failure modes (Nexus unconfigured, credentials rejected, unreachable). It stops short of describing ordering or what a partial page looks like, but the safety-critical caveat is clearly stated.

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?

Purpose is front-loaded, then the completeness caveat, then routing guidance, then cost and error behavior – a sensible order with no filler. It is four dense sentences and slightly heavy for one tool, but each carries distinct information.

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

Completeness5/5

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

For a paged read tool with a declared output schema, the description covers what an agent needs: scope, the caveat that governs any downstream decision, performance expectations, credential/connectivity errors, and the sibling to use for configuration. Return-value detail is correctly left to the output schema.

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 ranges and defaults are already documented. The description adds meaning the schema lacks: that paging is bounded and that hitting a page or component limit flips the inventory to incomplete, which explains why max_pages and max_components matter rather than being arbitrary caps.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (list components and assets stored in one repository) plus the returned fields, size/last modified/last downloaded, and the underlying mechanism (paging the Nexus component API). It is clearly separable from nexus_explain_repository, which is named as the configuration-oriented sibling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit use case ('cleanup or retirement questions about one repository') and an explicit alternative with its own scope ('use nexus_explain_repository for its configuration'). The agent can choose between the two without inspecting either schema.

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