Skip to main content
Glama

heap_query_delta

Query and filter heap delta logs by caller, address range, or event types to analyze memory allocation patterns after heap layout.

Instructions

查询最近一次 heap-end 产生的 /tmp/heap_delta.json,可按 caller/地址过滤。

适合只关注布局后的 source 点相关日志,例如:

  • caller_contains="SLPParseSrvUrl"

  • around_addr="0x57eebce8", around_size=0x400

  • event_types="free"

Args: event_types: 逗号分隔类型/分组,如 "alloc", "free", "malloc,calloc"。 caller_contains: caller 符号子串过滤。 action_contains: action 名称子串过滤。 addr_start: 地址范围起点。 addr_end: 地址范围终点。 around_addr: 中心地址。 around_size: 中心地址半径。 limit: 最多返回多少条。 include_raw: 是否附带完整 JSON。

Returns: 过滤后的 heaplog 风格文本。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
addr_endNo
addr_startNo
around_addrNo
around_sizeNo
event_typesNo
include_rawNo
action_containsNo
caller_containsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided, so the description must convey behavioral traits. It implies a read-only query operation with no side effects, but does not explicitly state safety, authentication needs, or return format details. The mention of 'heaplog 风格文本' gives some indication of output style.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is moderately concise but mixes languages and includes a separate 'Args' section. The examples add clutter. A more streamlined format with front-loaded key information would improve usability.

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 the complexity (9 params, no schema descriptions, no annotations), the description covers all necessary aspects for a query tool: purpose, example usage, parameter explanations, and return type. The presence of an output schema reduces the need for detailed return format documentation.

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?

With 0% schema description coverage, the description adds value by explaining all 9 parameters. Each parameter has a brief but clear explanation, including filter semantics (e.g., caller_contains as substring filter, around_addr as center address). This compensates well for the schema's lack of descriptions.

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 queries a specific file (/tmp/heap_delta.json) generated by heap-end, and allows filtering by caller and address. While it does not explicitly differentiate from siblings like heap_query_log, the specific resource and filtering capabilities set it apart. The examples further clarify its purpose.

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 example usage patterns (e.g., caller_contains='SLPParseSrvUrl', around_addr with size) that indicate when this tool is appropriate. However, it lacks explicit guidance on when not to use it or alternatives to consider. The sibling heap_query_log exists but is not mentioned.

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