Skip to main content
Glama

harbor_list_artifacts

Read-onlyIdempotent

List a repository's artifacts, including images and charts, newest push first with tags, size, labels, and last vulnerability scan results.

Instructions

List the artifacts (images, charts) of a repository, newest push first, with tags, size, labels and the result of the last vulnerability scan.

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

Input Schema

NameRequiredDescriptionDefault
pageNopage number, starting at 1 (default 1)
projectYesproject name
pageSizeNoitems per page (default 25, at most 100)
repositoryYesrepository name, with or without the project prefix

Output Schema

NameRequiredDescriptionDefault
pageYes
itemsYes
totalYesnumber of matching items across all pages
pageSizeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so the safety profile is covered. Beyond that the description adds useful behavior: results are ordered newest push first and each entry carries tags, size, labels and last vulnerability scan result. It does not mention pagination limits or how large result sets behave, which matters for a listing call.

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?

A single well-formed sentence that front-loads the action and resource, then layers in sort order and payload contents. It is dense but every clause carries information; a minor cost is that the field list makes the sentence long.

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 simple read-only list with a full schema and an output schema present, the description covers what is returned, in what order, and at what scope. Nothing an agent needs in order to call it correctly is missing, and return-shape detail is already backed by the output schema.

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%, so project, repository, page and pageSize are already documented in the schema, including defaults and the 100-item cap. The description only echoes that the operation is scoped to a repository, so it adds no meaning beyond the structured fields; baseline 3 applies.

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 the artifacts (images, charts) of a repository") plus the sort order and returned fields, so an agent knows exactly what it retrieves. It does not name or contrast with a sibling such as harbor_get_vulnerabilities or harbor_list_repositories, leaving differentiation to the resource wording alone.

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 only implied: the tool is the obvious choice when you need artifacts under a specific repository. There is no explicit when-to-use/when-not guidance, no pointer to harbor_get_vulnerabilities for deeper scan detail, and no prerequisite context such as project/repository existence.

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