Skip to main content
Glama

harbor_get_project

Read-onlyIdempotent

Retrieve detailed configuration and usage for a Harbor project, including visibility, storage quotas, vulnerability and signing policies, CVE allowlist, and retention or immutability rules.

Instructions

One project in detail: visibility, storage quota and usage, vulnerability and signing policies, CVE allowlist, and whether retention and immutability rules are set.

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

Input Schema

NameRequiredDescriptionDefault
projectYesproject name

Output Schema

NameRequiredDescriptionDefault
idYes
nameYes
ownerNo
quotaNo
publicYes
createdNo
updatedNo
autoScanYeswhether pushed images are scanned automatically
severityNothe severity at which pulls are blocked
proxyCacheYeswhether the project is a proxy cache of another registry
contentTrustYeswhether only signed images can be pulled
cveAllowlistYesCVE IDs ignored by the vulnerability policy
immutableRulesYesnumber of immutable tag rules
repositoryCountYes
retentionPolicyYeswhether a tag retention policy is set
preventVulnerableYeswhether pulls of vulnerable images are blocked

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.2/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 useful context about the breadth of data returned (policies, quota, CVE allowlist, retention), though with an output schema present this is partly redundant; it says nothing about error behavior for a missing project or auth requirements.

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 concise sentence with the resource scoping front-loaded and no filler. It is a sentence fragment rather than a full clause, but every element contributes information.

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 one-parameter read tool with full schema coverage, annotations and an output schema, this is adequate. The only meaningful omission is guidance on what to do when the project name is not found or when to enumerate first.

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% with a single documented 'project' string, so the schema carries the parameter meaning. The description does not clarify whether the value is a name versus an ID, nor anything about case sensitivity or format, so it adds little 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?

The phrase 'One project in detail' names a specific resource and scope, and the enumerated field set (visibility, quota, policies, CVE allowlist, retention/immutability) makes clear it is a single-resource fetch rather than a list. It implicitly contrasts with harbor_list_projects but never names that sibling, so differentiation is left to inference.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance. An agent must infer from 'One project in detail' that this is for a known project name rather than discovery, and nothing states what to do if the name is unknown or when to prefer harbor_list_projects first.

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