Skip to main content
Glama

get_compose

Read-onlyIdempotent

Retrieve a compose service's file, environment variables, declared services, status, and containers, then use the returned container ID to read its logs.

Instructions

Get a compose service: file, env, declared services, status, and containers.

Use a container id from this result with read_compose_logs.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "compose_id": "<compose_id>"
    },
    "name": "get_compose"
  }
}

Input Schema

NameRequiredDescriptionDefault
compose_idYescomposeId from list_compose_services or get_project.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is fully covered by structured data. The description adds the shape of the returned payload (file, env, services, status, containers) and the log-chaining behavior, but says nothing about whether env values are redacted, whether the file is a raw compose file, or how large the response may be.

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

Conciseness4/5

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

Two short sentences, front-loaded with the purpose and immediately followed by the actionable follow-up hint; nothing is padded. The second sentence reads slightly awkwardly ("a container id from this result") but still conveys the chaining step clearly.

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 single-parameter read tool with rich annotations and a declared output schema, the description covers purpose, returned content, and the natural next call. The only minor gap is the absence of an explicit pointer to list_compose_services as the id source, which is instead delegated to the schema.

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?

There is a single parameter and the schema fully documents it ("composeId from list_compose_services or get_project"), giving 100% coverage. The description adds no additional syntax, format, or sourcing detail beyond what the schema already states, so the baseline of 3 applies.

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 uses a specific verb and resource ("Get a compose service") and then enumerates what the result contains — file, env, declared services, status, containers — so an agent knows exactly what is returned. It does not explicitly contrast itself with siblings like list_compose_services or get_application, keeping it short of a 5.

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?

There is a clear follow-up instruction: take a container id from this result and pass it to read_compose_logs, which chains the call usefully. However, there is no guidance on when to call this versus list_compose_services (to discover a compose id) or the lifecycle siblings such as restart_compose or stop_compose; the prerequisite is only hinted at implicitly through the schema.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.