Skip to main content
Glama

Trace Port Namespace

trace_port_namespace
Read-onlyIdempotent

Locate the container actively using or mapping a specified port on a target host, resolving port conflicts and identifying which workload holds the binding.

Instructions

Locate the container actively using/mapping the specified port on the target host.

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": {
      "port": "<port>"
    },
    "name": "trace_port_namespace"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostNoRemote host alias to target that machine's Docker over SSH (resolved from the tunnel-manager inventory). Omit for the LOCAL Docker socket. Call cm_list_hosts to see the available aliases. Note: swarm-cluster actions (list_nodes/services) must target a swarm MANAGER node.
portYesPort number to trace
manager_typeNoContainer manager: docker, podman, kubernetes (default: auto-detect)

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is fully covered by structured data. The description adds nothing beyond that — it does not say what happens when no container owns the port, whether it inspects SSH-tunneled hosts, or how it behaves across manager types. With rich annotations the bar is lower, but this text contributes essentially zero new behavioral context.

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?

A single front-loaded sentence with no filler or redundant restatement beyond the title. It is efficient, though its brevity is part of why other dimensions are thin.

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?

The tool has an output schema, 100% parameter description coverage, and full annotations, so most structured information is present. However, for a cross-host, multi-manager diagnostic tool, the description leaves gaps about outcomes when the port is unused and about scope limits.

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 description coverage is 100%, so host, port and manager_type are already documented in detail, including SSH resolution, local socket defaulting, and the manager_type auto-detect default. The description adds no further meaning about how the port is matched. Baseline 3 applies when the schema carries the full load.

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 and resource: 'Locate the container actively using/mapping the specified port on the target host.' That is enough for an agent to distinguish it from port-forwarding or namespace CRUD siblings. It stops short of explicitly naming how it differs from neighboring networking tools, which keeps it from 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 Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, and no alternative is named. The phrase 'on the target host' only weakly implies the diagnostic scenario (port conflict resolution), so the agent must infer the trigger condition.

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

Deploy Server

Other Tools