Skip to main content
Glama

Find Tcp Port

find_tcp_port

Query all records using a specified local TCP port to identify which processes or connections are associated with it.

Instructions

查询使用指定本地 TCP 端口的所有记录。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
portYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It implies a read-only lookup but does not state what kind of 'records' are returned (connections? processes?), whether results are filtered, or any permission/rate-limit behavior.

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 short, front-loaded sentence with no waste. It is appropriately sized, though the brevity reflects under-specification rather than disciplined editing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema covers return values, but with no annotations and an undocumented parameter, the description should clarify what 'records' means and how this differs from the many TCP siblings. Given the dense sibling set, it is too sparse to select the tool confidently.

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 'port' parameter has 0% schema description coverage, so the description must compensate. It only clarifies that the port is a local TCP port; it omits the valid range (0-65535) or any format constraint, adding little beyond the schema's bare integer type.

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+resource: querying all records that use a specified local TCP port. It is more precise than a tautology and conveys scope (local TCP port), but it does not distinguish itself from close siblings such as is_tcp_port_used or find_port, which an agent must disambiguate on its own.

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 when-to-use guidance, no prerequisites, and no mention of alternatives among the many siblings (is_tcp_port_used, find_port, get_established_connections). The agent is left to infer context entirely.

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