Skip to main content
Glama

ctf_serve_http

Serve a directory over HTTP using Python's built-in server for quick file sharing.

Instructions

Quickly serve a directory over HTTP (Python http.server).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
portNoPort to serve on (default 8000)
directoryNoDirectory to serve (default current dir)
session_idYes
Behavior2/5

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

The description hints at simplicity with 'Quickly' and 'Python http.server', but does not disclose important traits: the server is single-threaded, blocking, not for production, or how to stop it. No annotations exist to compensate.

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?

Extremely concise (one sentence) and front-loaded. However, it may be too brief, lacking essential details for a tool that launches a long-running process.

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 lack of annotations and output schema, the description is incomplete. It does not explain that the server runs persistently, how to verify it started, or how to terminate it. The simple purpose is clear but operational context is missing.

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 description adds no parameter-specific meaning beyond the schema's own descriptions (port and directory). Session_id is left undocumented in schema and description. Schema coverage is 67%, but description offers no extra value.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action (serve), resource (directory), protocol (HTTP), and implementation (Python http.server). It distinguishes from sibling tools like ctf_listen_port and ctf_reverse_shell by specifying HTTP file serving.

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?

No guidance is provided on when to use this tool versus alternatives like ctf_listen_port or exec. It does not mention prerequisites, limitations, or context for use.

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/yu-xiaohaozi/linux-remote-mcp'

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