Skip to main content
Glama

swarm_inspect

Read-only

Retrieve the Docker swarm's ID, spec, join-token configuration, and CA details. Identify cluster-level settings to fix configuration issues.

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

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 safety profile is known. The description adds an important operational constraint ('Works on a manager node only') and defines the return type, but does not describe error behavior when invoked on a non-manager node.

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 three concise sentences, each serving a distinct purpose: what it inspects, when to use, and what it returns. It is front-loaded with the primary purpose and contains no wasted words.

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 parameterless, read-only inspect tool with no output schema, the description fully covers the resource (swarm), the scope (daemon's swarm), the prerequisite (manager node), the return type (dict), and the alternatives. No additional information is needed.

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, so the schema coverage is trivially 100%. The description adds context about the returned data (id, spec, join-token config, CA info), but there are no parameters to explain, meeting the baseline for a 0-parameter 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?

The description clearly states it inspects the swarm the daemon belongs to, listing the included fields (id, spec, join-token config, CA info). It also differentiates from sibling tools by explicitly comparing with node_list and swarm_join_tokens.

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?

It explicitly specifies when to use: on a manager node for cluster-level configuration. It names direct alternatives: node_list for per-node state and swarm_join_tokens for new node tokens, leaving no 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