Skip to main content
Glama

heap_get_state

Retrieves a text overview of current heap status from GDB, including active chunk count and cumulative statistics, without generating files.

Instructions

获取当前堆状态概览(不生成文件,直接从 GDB 获取)。

快速查看当前活跃 chunk 数量和累计统计。

Returns: 堆状态概览文本

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

The description discloses that no file is generated and data comes directly from GDB. However, it does not mention prerequisites like GDB being running, whether it is read-only, or any potential side effects. With no annotations, more behavioral context would improve transparency.

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 short with two clear sentences and a return line. It is front-loaded with the key point. Could be slightly more structured (e.g., bullet points) but remains efficient.

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?

Given no parameters and an output schema, the description covers the basic purpose but lacks detail on the output format or edge cases. It mentions active chunk count and cumulative statistics but does not elaborate on what the returned text includes.

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?

There are no parameters, and the schema coverage is 100%. The description adds value by explaining what the tool does overall, which is appropriate for a parameterless 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 it retrieves a heap status overview including active chunk count and cumulative statistics, and specifies it does not generate a file but gets data directly from GDB. While the verb and resource are clear, it does not explicitly distinguish from sibling tools like heap_bins_json or heap_snapshot.

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. It simply implies 'quick view' but lacks explicit context, exclusions, or comparisons with related heap tools.

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