Skip to main content
Glama
0xMihirK
by 0xMihirK

ncat

Establish TCP/UDP connections, create background listeners, and interact with network services for penetration testing.

Instructions

Purpose: Use ncat with action=connect|listen|interact for TCP/UDP connections and background listeners. Constraints: connect requires target and port and runs foreground. listen can run foreground or background; background=True creates a job_id and pipe.… Example: ncat(action='listen', port=4444, job_id='listener1')

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
udpNo
portNo
actionYes
job_idNo
targetNo
commandNo
executeNo
backgroundNo
extra_argsNo
tail_linesNo
listen_portNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

With no annotations, the description carries the full burden. It reveals key behaviors (foreground vs background, job_id creation) but remains vague on other important aspects like timeout, output format, error handling, and the exact behavior of 'interact'. The truncated ending suggests additional undisclosed details.

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?

The description is concise and front-loaded with labeled sections (Purpose, Constraints, Example). It avoids fluff and quickly conveys core information, though the ellipsis at the end suggests it may be truncated, slightly harming completeness.

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?

Given the tool's complexity (11 parameters, no annotations, lacks a visible output schema), the description is far from complete. It covers only the surface-level constraints and leaves many behavioral aspects and parameters undocumented, making it insufficient for an agent to reliably invoke the tool.

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?

Schema description coverage is 0%, so the description must compensate. It explains only action, target, port, background, and job_id. Parameters like udp, command, execute, extra_args, tail_lines, and listen_port are completely unexplained, leaving significant gaps for a parameter-heavy tool.

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 clearly states the tool's purpose: using ncat with three explicit actions (connect, listen, interact) for TCP/UDP connections. It distinguishes between connection modes but does not explicitly contrast with sibling tools like nmap_scan or network_curl, so it loses a point for sibling differentiation.

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 provides concrete usage constraints: connect requires target/port and runs foreground, while listen can run foreground or background with background=True creating a job_id and pipe. This gives clear context for choosing between actions, though it lacks explicit 'when-not-to-use' alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/0xMihirK/hercules-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server