Skip to main content
Glama

system_login

Authenticate with a Docker registry to enable private image pull and push operations. Use credentials or existing docker login cache; supports custom registries and re-authentication.

Instructions

Authenticate with a Docker registry.

Security: the password is sent as a tool argument, which many MCP clients log verbatim. Prefer running docker login once on the host so the docker module reuses the credentials cached in ~/.docker/config.json, and avoid calling this tool from an agent loop. Credentials let image_pull / image_push reach private repositories; system_logout clears them.

Args: username: Registry username password: Registry password or token email: Registry account email registry: URL to the registry (defaults to Docker Hub) reauth: Force re-authentication even if valid credentials exist dockercfg_path: Path to a custom dockercfg file

Returns: dict: The login response: {"Status"} always; "IdentityToken" only when the registry issues one

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
emailNo
reauthNo
passwordYes
registryNo
usernameYes
dockercfg_pathNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

A5/5.0
Behavior5/5

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

Beyond the sparse annotations, the description discloses that the password is sent as a tool argument and may be logged verbatim by MCP clients. It also reveals where credentials are cached (`~/.docker/config.json`), how they are reused, and that `system_logout` clears them. No annotation contradiction exists.

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 front-loaded with purpose, followed by critical security guidance, then parameters and return values. Every sentence is informative and earns its place, and nothing is repeated from the annotations or schema in a way that bloats the text.

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?

Given zero schema-level parameter descriptions and no output schema, the description is unusually complete: it explains safety, side effects, parameter defaults, and the exact return shape. Edge-case failure modes are not described, but enough context is present for correct selection and invocation.

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?

The schema provides 0% description coverage, so the description carries the full parameter burden. It explains every parameter: username, password-or-token, email, registry defaulting to Docker Hub, `reauth` force behavior, and the custom dockercfg path. This adds real meaning beyond the raw 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 verb and resource: 'Authenticate with a Docker registry.' It also explains what the credentials unlock (`image_pull` / `image_push`) and names `system_logout` as the tool that clears them, which distinguishes it from the sibling set.

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 tells the agent when NOT to call this tool: prefer host-side `docker login` and avoid calling it from an agent loop. It also gives when it is needed, namely reaching private repositories through `image_pull` / `image_push`, and names the sibling that reverses the action (`system_logout`). This is strong usage guidance.

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