Skip to main content
Glama

ctf_menu_action

Automate CTF heap menu interactions by sending a menu choice and filling sequential prompts with specified values. Ideal for repetitive exploit steps.

Instructions

执行一个菜单式交互操作(选择菜单项并填写所有 prompt)。

这是一个组合工具,自动完成:发送菜单选择 → 等待每个 prompt → 填写对应值。 适用于典型的 CTF 堆题菜单交互。

Args: menu_choice: 菜单选项(如 "1" 表示选择第1项) prompts: JSON 数组字符串,每个元素包含 {"prompt": "等待的提示", "value": "要填写的值"} 示例: '[{"prompt": "Size:", "value": "128"}, {"prompt": "Content:", "value": "AAAA"}]'

Returns: 完整的交互过程记录(发送和接收的所有数据)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptsNo[]
menu_choiceYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations provided, so the description carries full burden. It discloses the behavior: sends menu choice, waits for each prompt, fills values, and returns the full interaction log. This adequately informs the agent of its automated, multi-step nature.

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 reasonably concise, covering purpose, arguments, and return value in a structured way. It could be slightly shorter but is still efficient and easy to parse.

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

Completeness4/5

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

Given two parameters (one required), an output schema (though not detailed), and a clear use case, the description is complete enough. It specifies the argument format and return value, leaving little ambiguity for the agent.

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

Parameters5/5

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

With 0% schema coverage, the description is essential. It explains menu_choice as a string like '1', and prompts as a JSON array of objects with 'prompt' and 'value', including an example. This provides critical meaning beyond the raw schema.

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 tool executes menu-based interactive operations (选择菜单项并填写 prompt). It specifies it's a combined tool that automates the sequence, distinguishing it from simple send/receive siblings like ctf_send, ctf_recv_until.

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 explains this is for typical CTF heap menu interactions, implying use when a menu with prompts is expected. It doesn't explicitly state when not to use or list alternatives, but the context of siblings makes it clear.

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