Skip to main content
Glama
ImadMoka

playwright-mcp-supercharged

by ImadMoka

browser_close

Destructive

Close the active browser page or a specific session by ID to end that browsing context and release its resources.

Instructions

Close the page

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sessionIdNoTarget session ID. Omit to use the active session.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.6/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and openWorldHint=true, so the safety profile is covered. The description adds nothing beyond that: it doesn't say whether unsaved page state is lost, whether the session survives, or what happens if no page is open.

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?

A single short phrase with no wasted words, but it is under-specified rather than genuinely concise; the brevity leaves scope ambiguous instead of front-loading useful constraints.

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?

With one fully documented optional parameter, an annotations-covered destructive profile, and no output schema, the structured data carries most of the load. The missing piece is what exactly is destroyed and how this differs from session_close, which is the one thing an agent most needs here.

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% and the single parameter (sessionId) is fully documented in the schema, including the 'omit to use the active session' default. The description contributes no additional parameter meaning, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ('Close the page'), which is clearer than a tautology, but the annotations' title ('Close browser') conflicts in scope with the description ('page'), and nothing distinguishes this from session_close or browser_tabs. An agent cannot tell from the text alone whether this closes a tab, a page context, or the whole browser session.

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 when-to-use guidance and no mention of the closely related siblings session_close (closes a session) or browser_tabs (may close tabs). The agent must infer the boundary between closing a page and closing a session entirely from the names.

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