Skip to main content
Glama

gdb_chunk

Inspect glibc malloc chunk headers and adjacent memory. Print prev_size, size fields, and memory dump, with optional pwndbg integration for heap analysis.

Instructions

查看 glibc malloc chunk header 和附近内存。

对 i386 常用: chunk_addr 指向 chunk header,user 指针通常是 chunk_addr+0x8。工具会打印 prev_size/size 字段、chunk 附近内存, 并可尝试调用 pwndbg 的 malloc_chunk/vis/heap 命令。

Args: chunk_addr: chunk header 地址,例如 source/next chunk 地址。 context: dump 的上下文字节数。 pause_first: 是否先暂停目标。 try_pwndbg: 是否尝试 pwndbg malloc_chunk 命令。

Returns: chunk 信息和内存 dump。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contextNo
chunk_addrYes
try_pwndbgNo
pause_firstNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description must fully convey behavioral traits. It explains what the tool prints and the optional pwndbg calls, but does not disclose whether it modifies debugger state, requires a running process, or has side effects. The pause_first parameter is mentioned but its behavioral impact is not explained.

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 well-structured with a clear one-sentence summary followed by usage tips and parameter documentation. It contains no superfluous information, though the i386 tip could be integrated into parameter descriptions for better flow.

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 description covers the tool's purpose, parameters, and some usage context (i386). However, it lacks prerequisites (e.g., needing a running process with glibc), and the return value is only vaguely described as 'chunk 信息和内存 dump'. The output schema may fill gaps, but overall completeness is adequate but not thorough.

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?

Although schema description coverage is 0%, the description adds meaningful explanations for all four parameters: chunk_addr, context, pause_first, and try_pwndbg. It clarifies their purpose and default behavior, compensating well for the lacking schema descriptions.

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's verb and resource: '查看 glibc malloc chunk header 和附近内存' (view glibc malloc chunk header and nearby memory). It distinguishes itself from sibling tools like gdb_memory or heap_chunk_bin by focusing specifically on chunk headers and offering optional pwndbg integration.

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 provides a tip for i386 and explains the tool's capabilities, but does not explicitly state when to use this tool versus alternatives like heap_find_chunk or heap_chunk_bin. Usage is implied through the description, but no direct guidance on when not to use it or which alternative to choose.

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