Skip to main content
Glama

harbor_get_vulnerabilities

Read-onlyIdempotent

Retrieve vulnerability scan results for a Harbor artifact by tag or digest, filtered by minimum severity and ordered most severe first.

Instructions

The vulnerabilities found in one artifact (by tag or digest), most severe first, at or above minSeverity (default High).

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

Input Schema

NameRequiredDescriptionDefault
limitNomost entries to return (default and maximum 100)
projectYesproject name
referenceYestag or digest (sha256:...)
repositoryYesrepository name, with or without the project prefix
minSeverityNoCritical, High (default), Medium, Low, Negligible or Unknown

Output Schema

NameRequiredDescriptionDefault
noteNo
scannedYesfalse when the artifact has no report
scannerNo
matchingYesfindings at or above minSeverity
severityNothe highest severity found
generatedNo
bySeverityNoall findings by severity
vulnerabilitiesYesthe most severe matching findings, up to limit

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.5/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. The description adds result ordering ('most severe first') and the severity threshold behavior, which is useful beyond the annotations, but it says nothing about what happens for an unscanned artifact or about the 100-entry cap enforced by limit.

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 compact sentence with zero filler, and the key scoping facts (one artifact, by tag or digest, severity floor, sort order) are front-loaded. The clause stacking around 'most severe first, at or above minSeverity' is slightly dense but not wasteful.

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?

An output schema exists, so return-value shape need not be explained, and the input schema is fully described. What remains uncovered is edge behavior for unscanned or missing artifacts and truncation semantics, which keeps this at 4 rather than 5 for a read tool of this complexity.

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 all five parameters including the minSeverity default of High are already documented in the schema. The description restates the severity default and the tag-or-digest reference format rather than adding interpretation beyond the schema, so the 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?

The description names the exact resource ('vulnerabilities found in one artifact') and the identifier form ('by tag or digest'), which lets an agent tell it apart from the list_* siblings that enumerate artifacts or repositories instead of scanning results. It stops short of naming a sibling alternative, so it lands at 4 rather than 5.

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 agent can infer it should call this when it already has a specific project/repository/reference in hand. There is no explicit when-to-use or when-not-to-use statement, and no mention of prerequisites such as the artifact having been scanned or the project needing to exist.

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