Skip to main content
Glama

inspect_docker_ports

Checks local Docker daemon availability and lists running container port mappings to help diagnose port conflicts and connection issues.

Instructions

Inspect local Docker daemon availability and running container port mappings.

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": "inspect_docker_ports"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeoutNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description must carry the full behavioral burden, and it does disclose two behaviors: checking daemon availability and enumerating container port mappings. It does not say what happens when the daemon is unreachable (error vs. empty result), nor how the timeout parameter affects behavior, leaving meaningful gaps for a diagnostic tool.

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?

One front-loaded sentence with zero filler, and the two things inspected (daemon availability, port mappings) are stated up front. The tradeoff is that its brevity leaves the timeout and failure behavior unaddressed rather than that any wording is wasted.

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?

An output schema exists, so return-value detail is not required, and the tool is simple with one optional parameter. Still, for a diagnostic tool with no annotations, the description should say more about failure modes and the timeout parameter to be fully actionable.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The single parameter (timeout, default 5) has 0% schema description coverage, and the description never mentions it. An agent gets no guidance on units (seconds?), what happens on timeout, or whether raising it is ever needed, so the description fails to compensate for the schema gap.

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 gives a specific verb ('Inspect') and concrete resources: local Docker daemon availability and running container port mappings. This clearly distinguishes it from siblings like inspect_wsl_ports (WSL) and diagnose_port, though no sibling is named explicitly.

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?

Usage is implied by the scope ('local Docker'), which hints that this is the tool for Docker-specific port checks rather than WSL or generic port tools. However, there is no explicit when-to-use statement, no exclusion of alternatives such as list_ports or diagnose_port, and no mention of prerequisites like a running daemon.

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