Skip to main content
Glama

List Deployments

cm_multi_context_list_deployments
Read-onlyIdempotent

List deployments across Kubernetes, Docker, Podman, and Swarm contexts to inspect container workloads in multiple environments.

Instructions

List deployments (cm_multi_context). Manage containers across multiple backends (Kubernetes, Docker, Podman, Swarm) with context selection.

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": "cm_multi_context_list_deployments"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNoList all resources
nameNoResource name
specNoResource specification
forceNoForce operation
imageNoContainer image
portsNoPort mappings
driverNoNetwork/volume driver
backendNoContainer backend to usekubernetes
commandNoContainer command
contextNoContext name (uses default if None)
volumesNoVolume mappings
replicasNoNumber of replicas
namespaceNoKubernetes namespace
environmentNoEnvironment variables

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

B3.1/5.0
Behavior3/5

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

The annotations already establish that this is a read-only, idempotent, non-destructive, open-world operation. The description adds that it can list deployments across multiple backends with context selection, but it does not clarify whether `backend` selects one backend or whether the tool aggregates across all of them, nor does it discuss filtering or pagination.

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

Conciseness3/5

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

The description is short and front-loads the action, but the second sentence is vague: "Manage containers across multiple backends" describes a broader capability than listing deployments and could confuse the agent about whether this tool mutates or manages anything. The size is reasonable, but not every sentence fully earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so the description need not explain return values, and annotations cover the safety profile. However, with 14 optional parameters and four possible backends, the description does not clarify whether listing is scoped to one backend by default or how `all`, `context`, and `backend` interact, leaving meaningful ambiguity for correct invocation.

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 description coverage is 100%, so the schema already documents all 14 parameters including backend, context, namespace, and the generic optional fields. The description adds only high-level context about multi-backend and context selection, without explaining which parameters are meaningful for a list deployment operation versus irrelevant generic fields.

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 description states the specific action and resource: "List deployments" and names the backing operation cm_multi_context. It also clarifies that deployments can span Kubernetes, Docker, Podman, and Swarm with context selection, though it does not directly differentiate this from sibling list tools such as docker_list_services or k8s list operations.

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 guidance on when to use this tool versus the many sibling listing tools. The mention of multiple backends and context selection implies a multi-backend use case, but it does not say when an agent should prefer this over docker_list_containers, docker_list_services, or Kubernetes-specific list tools.

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