Skip to main content
Glama

get_service

Read-only

Retrieve a Docker swarm service by its ID or name, with optional default value merging.

Instructions

Get a swarm service by id or name.

args: service_id - The service id or name insert_defaults - Merge default values into the output returns: dict - The service's attrs

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
service_idYes
insert_defaultsNo
Behavior3/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 clear. The description adds that it returns a dict of service attributes, but does not disclose failure behavior (e.g., missing service) or other side effects. This is adequate but not rich.

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 extremely concise: one sentence for purpose, followed by clearly labeled args and returns. No superfluous content. Front-loaded with the core action.

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

Completeness4/5

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

For a simple read-only retrieval tool with two parameters and no output schema, the description covers the essential aspects: what it retrieves, by what identifier, and an optional flag. It does not elaborate on the return structure, but that is acceptable given the tool's simplicity and the lack of an output schema.

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 description fully explains both parameters: service_id is 'The service id or name' and insert_defaults is 'Merge default values into the output.' This adds significant meaning beyond the schema, which only specifies types. Despite the 0% schema description coverage, the description compensates entirely.

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 explicitly states 'Get a swarm service by id or name,' using a clear verb and resource. It distinguishes itself from sibling tools like list_services (which retrieves all services) and create_service (which creates a new one).

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?

No guidance is provided on when to use this tool versus alternatives like list_services, search_services, or other retrieval tools. The description lacks explicit when-not-to-use or exclusion criteria.

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