Skip to main content
Glama
theSharque
by theSharque

heap_dump

Generate a .hprof heap dump for memory analysis. Use Eclipse MAT or VisualVM to trace GC roots of growing classes. Warning: produces large files.

Instructions

Creates .hprof for Eclipse MAT / VisualVM. After heap_live_histogram_diff picks a growing class, use MAT Path to GC Roots (exclude weak/soft). Saved to recordings/heap_dump.hprof. Warning: large file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pidYesProcess ID of the Java application. Get this from list_java_processes.
Behavior3/5

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

No annotations are provided, so the description carries full burden. It discloses that the file is saved to a specific path and warns about large files, but does not mention whether it overwrites existing files, requires any permissions, or other side effects like performance impact.

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

Conciseness5/5

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

The description is three sentences long, front-loaded with the core purpose, followed by usage guidance and a warning. Every sentence adds value without redundancy.

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?

For a tool with no output schema, the description adequately explains the output (hprof file) and its typical use. It could be improved by mentioning the file size magnitude or approximate duration, but it is sufficient for an agent to understand what the tool produces.

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

Parameters3/5

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

The input schema has 100% description coverage for the pid parameter, referencing list_java_processes. The description adds context about the tool's purpose but does not add additional meaning beyond the schema for the parameter itself.

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 creates .hprof files for Eclipse MAT/VisualVM and provides a specific use case after heap_live_histogram_diff, distinguishing it from sibling profiling tools by its role in the diagnostic workflow.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives explicit guidance on when to use this tool ('after heap_live_histogram_diff picks a growing class') and includes a workflow step using MAT, along with a warning about file size. This effectively tells the agent the context and expected sequence.

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/theSharque/mcp-jperf'

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