Skip to main content
Glama

swarm_inspect

Read-only

Inspect a Docker swarm's cluster configuration from a manager node, including ID, spec, join-token settings, and CA details. Use it to verify cluster state or retrieve management information.

Instructions

Inspect the swarm this daemon belongs to (id, spec, join-token config, CA info).

Works on a manager node only. Cluster-level configuration - for per-node state use node_list; for the tokens new nodes need, swarm_join_tokens.

Returns: dict: The swarm's attrs, as returned by the daemon's swarm inspect endpoint

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the description need not repeat safety. It adds meaningful behavioral context beyond annotations: the manager-node prerequisite impossible to infer from schema. It also clarifies scope (cluster-level vs per-node) and return format, though it does not describe error behavior.

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?

Three tight sentences plus a clear return declaration. The purpose is front-loaded, the manager-only constraint follows immediately, and the sibling alternatives each have a one-line rationale. No redundancy or filler.

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, zero-parameter inspect tool, this description supplies everything necessary to call it correctly: what it inspects, the operational prerequisite, the relationship to nearby tools, and the return type. The output schema is absent but the description adequately characterizes the return as the daemon's swarm attrs.

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 has zero parameters)Skip, so the schema already fully documents parameter needs. The description adds relevant detail about what data is returned (id, spec, join-token config, CA info) without needing to explain parameter syntax. Baseline 4 is appropriate for a param-less tool.

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?

States a specific verb and resource ('Inspect the swarm'), lists the key data areas (id, spec, join-token config, CA info), and explicitly contrasts with node_list and swarm_join_tokens. This clearly distinguishes it from closely related sibling tools.

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?

Provides explicit when-to-use context ('Works on a manager node only') and names two specific alternatives with conditions: node_list for per-node state)Skip and swarm_join_tokens for new node tokens. This gives the agent clear decision criteria.

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