Skip to main content
Glama
Playwright MCP Proxy

Playwright MCP Proxy

by noomz

create_new_session

Opens a new Playwright browser session to enable stateful automation and session recovery across server restarts.

Instructions

Create a new Playwright browser session

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create_new_session"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.4

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden and delivers almost nothing: it does not say whether a browser process is launched, whether the session is headless, whether resources persist, or whether any handle/identifier is returned. For a resource-creating operation with zero structured annotation coverage, this is a significant gap.

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 short sentence with no filler and the purpose front-loaded. It is appropriately sized, though its brevity reflects under-specification rather than disciplined economy.

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

Completeness2/5

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

With no annotations, no output schema, and no parameters, the description is the only source of information an agent has, and it explains nothing about the return value (session id?) or the side effects of creating a session. This is inadequate relative to a session-lifecycle tool that sits alongside resume_session and browser_close.

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?

The schema declares zero parameters, which sets the baseline at 4, but the description also adds no meaning about what configuration the created session will have (browser type, viewport, headless mode) despite that being the natural place to clarify. A small deduction from the baseline reflects that omission.

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?

"Create a new Playwright browser session" is a specific verb+resource and the word "new" implicitly contrasts with the sibling resume_session. It stops short of naming alternatives explicitly, so it is clear but not fully differentiated.

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 statement of when to call this versus resume_session or list_sessions, and no prerequisites or preconditions (e.g., whether a session must be closed first). The agent must infer usage from the tool name alone.

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