Skip to main content
Glama

registry_image_config

Read-only

Fetch and parse an image's config blob from a registry without pulling to inspect env vars, entrypoint, workdir, exposed ports, user, labels, and layer history.

Instructions

Fetch and parse an image's config blob from a registry without pulling.

Answers "what's inside this image?" — env vars, entrypoint/cmd, workdir, exposed ports, user, labels, layer history (what registry_manifest only points at via config.digest). Resolves in up to three hops: manifest -> (if multi-platform) the platform entry's manifest -> the config blob.

args: repository - Image/repository ref, e.g. "ghcr.io/org/repo"; :tag/@digest is stripped — pass via reference reference - Tag or digest (default "latest") platform - Platform to select from a multi-platform image, "os/arch[/variant]" (default "linux/amd64"); ignored for single-platform images username - Optional registry username (overrides DOCKER_MCP_SERVER_REGISTRY_USERNAME) password - Optional registry password/token (overrides DOCKER_MCP_SERVER_REGISTRY_PASSWORD) returns: dict - {"name", "registry", "reference", "platform", "config_digest", "config": }; platform is the selected platform (None if single-platform)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
passwordNo
platformNolinux/amd64
usernameNo
referenceNolatest
repositoryYes
Behavior4/5

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

Annotations already mark the tool as read-only and non-destructive. The description adds valuable behavioral context: multi-hop resolution (manifest -> platform entry -> config blob), stripping of `:tag`/`@digest` from repository, default platform behavior, and credential override behavior. It also discloses the return format. This goes beyond the annotation's simple safety profile, though it does not cover failure modes or rate limits.

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 and front-loaded. The opening sentence states the core function, followed by a useful list of extracted fields, then a brief explanation of resolution hops. The `args` list is clear and the `returns` note completes the picture. Every sentence serves a purpose without redundancy.

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 read-only registry inspection tool with no output schema, the description provides complete context: purpose, parameter semantics, multi-platform resolution, credential handling, and the exact return dictionary. It is self-contained and leaves the agent with sufficient information to select and invoke the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although the input schema has zero descriptions (0% coverage), the description's `args` section thoroughly documents all five parameters: repository, reference, platform, username, and password. It explains defaults, overrides, and special behaviors such as '`:tag`/`@digest` is stripped — pass via `reference`'. This fully compensates for the sparse schema.

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 opens with a specific action: 'Fetch and parse an image's config blob from a registry without pulling.' It then enumerates the exact contents (env vars, entrypoint, cmd, workdir, ports, user, labels, layer history) and explicitly contrasts with sibling `registry_manifest`, which only points at the config digest. This makes the tool's purpose unmistakable and distinguishes it from related tools.

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

Usage Guidelines4/5

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

The description implies use when you need to inspect an image's configuration without pulling it, and explicitly contrasts with `registry_manifest`. It also provides context about multi-platform resolution and auth overrides. However, it does not explicitly state when not to use this tool or name alternative tools like `image_inspect` or `image_registry_data`, leaving some room for ambiguity.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/L337-org/docker-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server