Skip to main content
Glama

service_tasks

Read-only

List all tasks for a Docker Swarm service. Filter tasks by ID, name, node, label, or desired state to inspect specific task states.

Instructions

List the tasks of a swarm service.

args: service_id - The service id or name filters - Filter by id, name, node, label, desired-state returns: list - A list of task dicts

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filtersNo
service_idYes
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false. The description adds that the tool returns a 'list of task dicts' and mentions filter fields, providing some behavioral context beyond annotations, but lacks details on limits, errors, 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.

Conciseness5/5

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

The description is concise with a one-line summary followed by args and returns. No unnecessary text, and the key information is front-loaded.

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?

For a tool with two parameters (one nested) and no output schema, the description covers parameters and return type, but lacks examples, error handling, or typical usage. It's adequate but has gaps.

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 coverage is 0%, so the description must compensate. It explains service_id as 'service id or name' and lists filter keys, but does not provide types, formats, or examples for the filters object. This adds meaning but is minimal.

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 'List the tasks of a swarm service,' using a specific verb and resource. It distinguishes from sibling tools like list_services and get_service, which list services or get a single service, not tasks.

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

Usage Guidelines3/5

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

The description does not explicitly state when to use this tool versus alternatives like service_logs or force_update_service. It implies usage for listing tasks but lacks guidance on exclusions or context.

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/GavinLucas/docker-mcp'

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