Skip to main content
Glama

security_compose_check

Read-only

Docker Compose security audit — Offline security audit of a docker-compose.yml: privileged containers, Docker socket and sensitive host mounts, host network/pid/ipc, dangerous cap_add (SYS_ADMIN, ALL...), seccomp/apparmor disabled, hardcoded secrets in environment (masked), Postgres trust auth / empty MySQL password, database and admin ports published on 0.0.0.0 (Docker bypasses ufw), root user, unpinned :latest images, missing resource limits. Pass text= (the YAML) or url= (GitHub blob links are converted to raw). Returns verdict PASS/REVIEW/FIX BEFORE DEPLOY/BLOCK, 0-100 score, A-F grade and per-finding severity, service, line and fix. Price: $0.006 USDC (Base, via x402).

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": {
      "text": "<text>"
    },
    "name": "security_compose_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesservices: web: image: nginx volumes: - /var/run/docker.sock:/var/run/docker.sock

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and destructiveHint=false, so the safety profile is covered; the description adds real value by disclosing that secrets are masked in findings, that GitHub blob URLs get rewritten to raw, and the verdict/score/grade output shape. It does not state input size limits, or that the 'offline' claim still involves a network fetch when url= is used, so behavioral disclosure is good but not complete.

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?

Purpose is front-loaded in the first clause and the long check enumeration genuinely defines coverage rather than padding. It is still a single dense run-on sentence, and the trailing payment/price note could be separated from the detection list for easier scanning.

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 one-parameter read-only scanner with no output schema, the description covers inputs, output verdict tiers, severity/line/fix detail, and even the x402 payment cost, which is what an agent needs to call and interpret it. The unresolved url= parameter mismatch is the main gap.

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 100% with a single documented parameter, so the baseline is 3. However, the description advertises an 'url=' alternative that does not exist in the input schema (only 'text' is declared), which introduces ambiguity about how to pass a link and could lead an agent to send an invalid argument.

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?

Names a specific verb and resource ('Offline security audit of a docker-compose.yml') and enumerates the exact classes of misconfiguration it detects, which makes it distinguishable from the sibling file-oriented scanners (Dockerfile, k8s, terraform) without opening any schema.

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

Usage Guidelines4/5

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

Gives clear invocation context ('offline', pass the YAML as text or a GitHub link) and implicitly scopes itself to compose files rather than Dockerfiles or live hosts. It never explicitly says when NOT to use it versus security_dockerfile_check, so it stops short of full routing guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources