Skip to main content
Glama
davidkim9

Playwright Vision MCP Server

by davidkim9

close_session

Closes all active browser sessions and clears the current session to reset the automation environment.

Instructions

Close all browser sessions managed by the server and clear current session

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

There are no annotations, so the description carries the full burden of disclosing behavior. It states that it closes all browser sessions and clears the current session, implying a destructive/cleanup action. However, it does not elaborate on side effects (e.g., unsaved data loss), whether it requires confirmation, or the impact on any ongoing Playwright operations. The description is upfront about the core action but lacks additional context.

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 a single sentence that is front-loaded with the action verb. It communicates the essential information without redundancy (though 'clear current session' adds specificity). No fluff or irrelevant details.

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?

Despite being a simple tool with no parameters and no output schema, the description gives a clear indication of the tool's purpose and effect. It could be enhanced by noting the return value or any side effects on the underlying server, but for a straightforward close operation, the description is sufficiently complete.

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 tool has zero parameters, so there is no parameter semantics to explain. According to the baseline for 0-param tools, a 4 is appropriate because the description does not need to compensate for missing schema information.

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's action with a specific verb ('Close') and resource ('all browser sessions managed by the server'). It also adds 'clear current session' to specify a related action. This distinguishes it from sibling tools like navigate_url or click_element, which perform page interactions rather than session management.

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?

The description provides no guidance on when to use this tool versus alternatives. It does not mention prerequisites, exclusions, or scenarios where a different tool would be more appropriate. For example, there is no mention of using it before starting a fresh session or as part of cleanup.

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/davidkim9/playwright-vision-mcp'

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