Skip to main content
Glama
ochen1
by ochen1

take_memory_snapshot

Capture a heap snapshot to analyze JavaScript memory distribution and debug memory leaks in web applications.

Instructions

Capture a heap snapshot of the currently selected page. Use to analyze the memory distribution of JavaScript objects and debug memory leaks.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filePathYesA path to a .heapsnapshot file to save the heapsnapshot to.
Behavior3/5

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

The annotation 'readOnlyHint: false' already indicates this is a mutation operation. The description adds useful context about what gets captured (heap snapshot) and the debugging purpose, but doesn't disclose additional behavioral traits like whether this pauses page execution, requires specific page states, or has performance implications. No contradiction with annotations.

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?

Two concise sentences with zero waste. First sentence states the action and target, second sentence provides the purpose. Every word earns its place, and the most important information (what the tool does) is front-loaded.

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 single-parameter mutation tool with good annotations and full schema coverage, the description provides adequate context about purpose and usage. However, without an output schema, it doesn't describe what the tool returns (e.g., success confirmation, file path validation, or error conditions), leaving a minor gap in completeness.

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?

With 100% schema description coverage, the input schema fully documents the single parameter 'filePath'. The description doesn't add any parameter-specific information beyond what's in the schema (e.g., file format requirements, path conventions, or what happens if file exists). Baseline 3 is appropriate when schema does the heavy lifting.

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 specific action ('capture a heap snapshot'), target resource ('currently selected page'), and purpose ('analyze memory distribution of JavaScript objects and debug memory leaks'). It distinguishes from sibling tools like 'take_screenshot' or 'take_snapshot' by specifying it's for memory analysis rather than visual or general snapshots.

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 provides clear context for when to use this tool ('to analyze memory distribution' and 'debug memory leaks'), but doesn't explicitly state when NOT to use it or name specific alternatives among siblings. It implies usage for memory debugging scenarios without detailing exclusions.

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/ochen1/chrome-devtools-mcp-mux'

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