Skip to main content
Glama
jagadeshp

Playwright MCP

by jagadeshp

browser_close

Destructive

Close the active browser page, ending the current session and releasing resources. Ideal for cleanup after completing web automation tasks.

Instructions

Close the page

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the agent knows this is a destructive operation. The description adds no additional context about what is destroyed, whether unsaved state is lost, or what happens after closing. Since it adds no value beyond the annotation, a score of 2 is appropriate.

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 'Close the page' – only three words, with no filler. It is perfectly concise and front-loaded, making it easy to read and process.

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?

For a zero-parameter close action, the description is minimally viable. However, it lacks specification of side effects (e.g., does it close the tab or the entire browser?) and return behavior. Given no output schema, more detail would be helpful for complete understanding.

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

Parameters4/5

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

The input schema shows zero parameters, and the description doesn't need to explain any. Per the guideline for 0-parameter tools, the baseline is 4, and the description doesn't miss anything.

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 'Close the page' uses a specific verb and resource, clearly indicating a close operation. It is distinct from sibling tools like browser_navigate or browser_click. However, there is slight ambiguity about whether 'page' means the current tab or the entire browser window, so it's not a perfect 5.

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

Usage Guidelines1/5

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

The description provides no guidance on when to use this tool or how it compares to alternatives. It does not mention any exclusions or specific contexts, leaving the agent without decision support for selecting this tool over others.

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/jagadeshp/Playwright-Mcp1'

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