Skip to main content
Glama

ctf_connect

Connect to a remote CTF service via SSH port forwarding, returning connection status and first banner.

Instructions

通过 SSH 端口转发连接远程 CTF 服务。

连接到远程 Linux 上运行的 CTF 程序的网络端口。 通常 CTF 程序通过 socat 或自身绑定到某个端口。

Args: host: CTF 服务在远程机器上的地址(通常是 127.0.0.1) port: CTF 服务端口号

Returns: 连接状态信息和首次接收到的 banner/prompt

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostNo127.0.0.1
portNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations, the description carries the full burden. It mentions SSH port forwarding and return of connection status/banner, but does not disclose prerequisites (e.g., existing SSH connection), error behavior, or potential side effects. This is insufficient for a tool that likely requires network setup.

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 front-loaded with the purpose, followed by a brief explanation, args, and returns. It is reasonably concise and well-structured, though the explanation could be slightly trimmed without losing clarity.

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 is simple with 2 parameters and an output schema hinted via the 'Returns' line. However, the description omits prerequisites (e.g., 'ssh_connect' must be called first), error handling, and whether repeated calls are idempotent. Given the context signals (no required params, no enums), it is mostly complete but lacks important setup context.

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

Parameters4/5

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

The schema has 0% description coverage, but the tool description explains both parameters: host as the CTF service address on the remote machine (typically 127.0.0.1) and port as the port number. This adds meaningful context beyond the schema's default values and types.

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 connects to a remote CTF service via SSH port forwarding, specifying the verb 'connect' and resource. It distinguishes from siblings like ssh_connect by focusing on CTF services, but could be more explicit about the differentiation.

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?

The description implies usage for CTF programs binding to a port but does not explicitly state when to use this tool versus alternatives like ssh_connect or ctf_send. No when-not-to-use or alternative guidance is provided.

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/Aiyakami/PWN-MCP'

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