Skip to main content
Glama

List Docker Port Conflicts

docker_port_conflicts
Read-onlyIdempotent

Reports Docker ports claimed by multiple containers to diagnose port clashes, separating real host/LAN conflicts from shared internal ports on different networks.

Instructions

Read-only. Reports ports claimed by more than one Docker container, in two groups: LAN/host port conflicts (real collisions) and containers sharing the same internal port (often harmless when they sit on different Docker networks). Use it to diagnose a port clash; it lists existing conflicts only, not every port in use.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "docker_port_conflicts"
  }
}

Input Schema

NameRequiredDescriptionDefault
response_formatNo`detailed` returns full JSON instead of readable text.concise

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.3
    • addedInput schema / properties / response_format / description
      Added value: +"`detailed` returns full JSON instead of readable text."
  2. First observedv0.1.1

TDQS

A4.2/5.0
Behavior4/5

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

The readOnlyHint annotation already marks this as a safe read, so the description correctly does not re-argue that point in any depth. It still adds genuine context beyond the annotations: the two result groups and the note that shared internal ports are 'often harmless when they sit on different Docker networks' — an interpretation of the output that an agent could not infer from the annotations.

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?

Two compact sentences, with the scope and the two result categories stated first and the usage guidance last. Every clause adds information about behavior or scope, and none of it restates the title or the annotations.

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?

This is a simple, zero-required-parameter read-only tool with no output schema, and the description still explains what the two result groups mean and what it will not return. The only remaining gap is the exact return shape, which the response_format enum covers in 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 only one parameter, response_format, and the schema already documents the enum and the effect of 'detailed' at full coverage, so the baseline of 3 applies. The description says nothing about response format beyond its opening, leaving the schema to carry that weight alone.

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 states a specific verb and resource: it reports ports claimed by more than one Docker container, and it splits the result into named groups (LAN/host collisions vs. shared internal ports). The closing clause, 'it lists existing conflicts only, not every port in use,' draws a clear boundary that separates it from a general port-listing tool.

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?

The description gives an explicit trigger — 'Use it to diagnose a port clash' — and an explicit exclusion, since conflicts are the only thing it returns. No specific alternative tool is named, but the exclusion clause still keeps the agent from reaching for this when it wants all ports.

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