Skip to main content
Glama

get_performance_metrics

Capture runtime performance metrics (JS heap size, DOM nodes, layout timing) to monitor memory and detect leaks in an active Chrome tab. Returns numeric values.

Instructions

Captures runtime performance metrics including JS heap size, DOM node count, and layout timing. Side effects: none (read-only snapshot). Prerequisites: requires an active Chrome tab. Returns: JSON object mapping metric names to numeric values (e.g., JSHeapUsedSize, LayoutCount). Use this to monitor memory usage, detect memory leaks, or profile performance. Alternatives: 'profile_page_performance' for detailed tracing, browser DevTools Performance tab.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tab_idNoThe Tab ID of the target tab. Omit to use the active tab.
instance_idNoChrome instance id from open_instance/list_instances. Omit for the default instance.
Behavior4/5

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

With no annotations provided, the description discloses key behavioral traits: it explicitly notes 'Side effects: none (read-only snapshot)' and 'Prerequisites: requires an active Chrome tab'. It also specifies the return format. This is strong coverage, though it doesn't mention what happens if no active tab exists or whether there are rate limits, which are minor gaps.

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 structured logically: purpose, side effects, prerequisites, returns, usage, alternatives. Each sentence adds value and information is front-loaded. It is slightly longer than necessary but remains efficient and scannable.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (2 optional parameters, read-only, returns JSON), the description is fully complete: it explains the return structure with examples, includes side-effects and prerequisites, and gives usage guidance. An agent can call this tool correctly without any further information.

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?

Schema description coverage is 100%, so the schema already fully documents both parameters (tab_id and instance_id). The description adds no additional nuance beyond the schema's existing explanations. With full schema coverage, the baseline of 3 is appropriate; the description does not need to compensate much.

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 captures runtime performance metrics (JS heap size, DOM node count, layout timing) and explicitly distinguishes it from 'profile_page_performance' which does detailed tracing. It identifies both the verb and resource precisely, making it unambiguous among siblings.

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?

It explicitly states when to use the tool ('monitor memory usage, detect memory leaks, or profile performance') and names the alternative ('profile_page_performance' for detailed tracing, plus browser DevTools Performance tab). This provides a clear decision pathway without needing to inspect other tool definitions.

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/raultov/chrome-debug-mcp'

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