Skip to main content
Glama

image_tag

Tags an existing Docker image with a registry-qualified repository name, creating an alias without copying data. Prepares images for pushing to a registry.

Instructions

Tag an image into a repository (add a name to an existing local image).

The image id stays the same and no data is copied - a tag is an alias. Typical flow: tag with the registry-qualified name, then image_push. image_remove on a tag merely untags while other names remain. Tagging over a name that already exists repoints it, without asking.

Args: id_or_name: The source image name or id repository: Target repository name (registry-qualified for pushing, e.g. "ghcr.io/o/r") tag: Tag for the new image (default "latest")

Returns: bool: True if the image was tagged

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagNo
id_or_nameYes
repositoryYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.2.6
    • removedInput schema / properties / force
      Removed value: -{
      -  "default": false,
      -  "type": "boolean"
      -}
  2. Addedv2.0.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only indicate readOnlyHint=false and destructiveHint=false, so the description carries the burden of explaining behavior. It clearly states that the image id stays the same, no data is copied, and tagging over an existing name repoints it without asking. This adds meaningful behavioral context beyond the annotations, though it could mention permission requirements or side effects on other tags.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with a clear opening sentence, a concise behavioral note, a typical flow, and a compact Args/Returns section. Every sentence adds value, and the most important information is front-loaded.

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?

The description covers the operation's purpose, behavior, parameters, and return value. It lacks explicit mention of error conditions or permission requirements, but for a tagging operation with a clear flow and return type, it is largely complete. The output schema exists, so return value details are already structured.

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?

Schema description coverage is 0%, so the description must compensate. It does: it explains id_or_name as the source image name or id, repository as the target repository name (with registry-qualified example), and tag as the new tag with a default of 'latest'. This adds meaning beyond the bare schema properties.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb ('Tag'), a resource ('an image into a repository'), and clarifies the operation as adding a name to an existing local image. It also distinguishes itself from related operations like image_push and image_remove, making its purpose unmistakable.

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

Usage Guidelines5/5

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

The description explicitly provides a typical flow ('tag with the registry-qualified name, then image_push') and explains when image_remove is relevant ('merely untags while other names remain'). It also warns about repointing behavior when tagging over an existing name, giving clear guidance on when and how to use this tool.

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

Deploy Server

Other Tools