Skip to main content
Glama

harbor_get_gc

Read-onlyIdempotent

Retrieve the garbage collection schedule and last run outcome from a Harbor registry to verify cleanup timing and results.

Instructions

The garbage collection schedule and the outcome of the last garbage collection run.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "harbor_get_gc"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
cronNo
lastRunNoabsent when garbage collection never ran
nextRunNo
scheduleNoHourly, Daily, Weekly, Custom or None
scheduledYes

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?

The annotations already declare readOnlyHint, idempotentHint and openWorldHint, so safety and repeatability are covered. The description adds that the payload spans two distinct things (schedule configuration and last-run outcome), which is genuine context beyond the annotations, but it says nothing about freshness, run history depth, or whether failed runs are included.

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, front-loading the two returned elements. It reads as a fragment rather than a full statement, which costs a little clarity but nothing in length.

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 structure need not be described, and the annotations carry the safety profile. The description covers the conceptual scope of the response adequately for a simple no-argument getter; only minor details like whether the last-run outcome includes failures are unstated.

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?

The tool takes no parameters, so the baseline is 4 and there is nothing for the description to disambiguate. No parameter meaning is lost or misrepresented.

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 sentence names the specific resource and the two things returned: the GC schedule and the outcome of the last run. That is far more informative than a restated name, though it is a noun phrase without a verb and does not explicitly contrast with any sibling getter.

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?

No explicit when-to-use or when-not-to-use guidance is given, and no alternative is named. For a zero-parameter read-only getter the intent is strongly implied by the description, so the gap is minor rather than damaging.

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