Skip to main content
Glama

nexus_get_artifact_age_report

Generate a read-only report of artifact age and download recency for a Nexus repository, flagging stale SNAPSHOT, pre-release, mutable-tag, or release assets for cleanup review.

Instructions

Report artifact age and download recency for a repository (read-only, deletes nothing). For each asset, shows upload age, days since last download (or never_downloaded), and a classification (snapshot, pre-release, mutable-tag for Docker latest/dev-style tags, or release). Flags assets as 'stale' when uploaded and not downloaded within stale_after_days — use this to spot old SNAPSHOT, pre-release, or Docker artifacts that are candidates for cleanup review.

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

Input Schema

NameRequiredDescriptionDefault
nameNoOptional component name filter
groupNoOptional group filter (Maven groupId, etc.)
limitNoMax number of oldest assets to return in detail (default 50, max 200)
formatNoOptional component format filter
repositoryYesRepository to scan
stale_after_daysNoAge/inactivity threshold in days for the 'stale' flag (default 90)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/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 declares '(read-only, deletes nothing),' defines the classification vocabulary, and explains the stale heuristic and its parameter. It does not mention permissions needed, result ordering guarantees, or pagination behavior beyond the limit parameter, which keeps it short of a 5.

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 purpose and the read-only safety note, then the output shape, then the use case. The parenthetical enumerations are dense but each clause contributes new information; nothing is filler.

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 six-parameter analytical read with no output schema and no annotations, the description supplies the returned fields, the classification taxonomy, and the stale rule, which is close to what an agent needs. The remaining gap is operational detail such as ordering, truncation behavior when limit is hit, and how name/group/format filters interact.

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 the baseline is 3, but the description adds real meaning beyond the schema by spelling out the stale semantics: assets are flagged when uploaded and not downloaded within stale_after_days, a decision rule the schema only labels as a 'threshold in days.' It does not clarify the interaction between limit and the 'oldest assets' ordering.

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 ('Report artifact age and download recency for a repository') and immediately enumerates the exact fields returned: upload age, days since last download, classification, and stale flag. This is clearly distinguishable from siblings like nexus_get_asset or nexus_latest_downloaded_artifacts, which return asset content or download events rather than an age/recency rollup.

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

Usage Guidelines4/5

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

The closing clause, 'use this to spot old SNAPSHOT, pre-release, or Docker artifacts that are candidates for cleanup review,' gives a concrete use case that tells the agent when this tool is the right call. It stops short of naming an explicit alternative or stating when-not to use it, so it is strong context rather than a full routing rule.

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