Skip to main content
Glama

nexus_check_artifact_exists

Check if a component or exact version already exists in a repository. Use as a CI pre-flight guard to avoid re-publishing artifacts.

Instructions

Check whether a component (optionally at an exact version) already exists in a repository. Pass version for an exact match; omit it to check whether any version of the component exists. Handy as a CI pre-flight guard to skip re-publishing an artifact that's already there.

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

Input Schema

NameRequiredDescriptionDefault
nameYesComponent name to match
groupNoOptional group filter (Maven groupId, etc.)
formatNoOptional component format filter
versionNoOptional exact version to check. Omit to check for any version of this component.
repositoryYesRepository to search within

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/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 burden. 'Check whether ... exists' implies a non-mutating lookup, but it never states that no side effects occur, whether it requires read permissions, or roughly what the result looks like. It adds useful pre-flight framing but leaves the safety profile implicit.

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 compact sentences, front-loaded with the core purpose, followed by the version semantics and the practical use case. No filler, though the version rule is repeated nearly verbatim from the schema.

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, yet the description never says what the check returns (boolean, matching component, version list) or how ambiguity is resolved when multiple versions exist. For an existence-check tool whose entire value is the return signal, that is a meaningful gap.

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 all five parameters are documented in the schema, including the version omit-for-any-version rule. The description restates that rule rather than adding new meaning; 'repository' and 'group' filtering nuances are not elaborated beyond the 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?

Specific verb and resource: 'Check whether a component (optionally at an exact version) already exists in a repository.' An agent can tell this is an existence probe, distinct from fetching or listing tools. It does not explicitly name a sibling, so it stops short of a 5.

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?

Gives a concrete when-to-use scenario ('CI pre-flight guard to skip re-publishing an artifact that's already there') plus the version-present vs version-omitted branching rule. It lacks explicit when-not-to-use guidance or a named alternative (e.g., a component-detail or search tool) for deeper inspection.

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