Skip to main content
Glama
Playwright DevTools MCP Server

Playwright DevTools MCP Server

by ariangibson

browser_health_check

Check browser context health by ID and automatically attempt healing when issues are detected, keeping AI-driven debugging sessions stable and recoverable.

Instructions

Check browser context health and attempt automatic healing if issues detected

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "contextId": "<contextId>"
    },
    "name": "browser_health_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
autoHealNoAutomatically attempt to heal unhealthy contexts
contextIdYesBrowser context ID to check

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden, and it does disclose the key non-obvious behavior: this tool may mutate browser state via automatic healing. However, it never says what 'healing' actually does, whether it can disrupt an active session, or whether existing page state is preserved — critical details for an agent deciding whether to call it mid-task.

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?

A single tight sentence with the primary action front-loaded and the conditional healing clause placed after it. No filler, though one more short clause about outcomes would still fit without bloat.

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?

This is a small two-parameter tool, so the bar is modest, but with no output schema the description should say what a health report contains or what happens when issues are detected and healing fails. That failure path is left entirely unspecified.

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 'contextId' and 'autoHeal' are already documented in the schema, and the description's mention of optional healing aligns with autoHeal's default. No added syntax, format, or guidance beyond what the schema provides, so the baseline of 3 is appropriate.

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 names a specific verb and resource ('Check browser context health') and adds the secondary behavior ('attempt automatic healing'), which separates it from siblings like browser_force_recreate or browser_launch. It stops short of explicitly contrasting itself with those alternatives, but the action is unambiguous.

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?

There is no explicit when-to-use or when-not-to-use guidance, and no named alternative for the case where healing fails (browser_force_recreate would be the obvious candidate). The agent must infer that this is a diagnostic-first tool, which is implied but never stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.