Skip to main content
Glama

create-session

Open or reuse a browser session for each account by passing a unique session ID, and use a saved profile ID to authenticate Playwright automation.

Instructions

Open or reuse a browser session. Pass a unique sessionId for each account and a saved profile ID to authenticate.

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": {
      "headless": "<headless>"
    },
    "name": "create-session"
  }
}

Input Schema

NameRequiredDescriptionDefault
profileNoSaved profile ID from list-auth-profiles. Omit to open a clean session.
headlessYes
sessionIdNoBrowser session ID. Defaults to 'default'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.4/5.0
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 disclosure burden. It does contribute one real behavioral fact beyond the schema: the call either opens a new session or reuses an existing one, and the profile ID is what supplies authentication. It omits what happens if the sessionId already exists with a different profile, whether a browser process is launched, how sessions are cleaned up (presumably close-session), and any failure modes.

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?

Two tight sentences, front-loaded with the action and followed by the parameter advice; nothing is padded. A small gain would come from spending a clause on the required headless flag rather than repeating profile semantics already in the schema.

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 simple three-parameter session-creation tool with no output schema and no annotations, the description covers the core action and the auth path but leaves the one required parameter undocumented and does not say what a successful call returns or how the session is later torn down. Adequate but with clear gaps for a tool an agent must call first in a workflow.

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 description reinforces two of the three parameters with added intent: sessionId should be unique per account, and profile is what authenticates the session. The required headless parameter is left completely unexplained in both description and schema, which is a notable hole at 67% coverage since it is mandatory.

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?

"Open or reuse a browser session" gives a specific verb and resource, and the verb pair (open/reuse) already separates it from close-session and list-sessions. It stops short of naming a sibling or stating the lifecycle position explicitly, so an agent infers rather than reads the differentiation.

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

Usage Guidelines3/5

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

Usage is only implied: the agent must infer that this must be called before page-level tools such as go-to, click, or new-page. The second sentence gives per-parameter advice (unique sessionId per account, profile for auth) rather than when-to-use/when-not guidance, and nothing says when to skip a profile or reuse an existing session instead.

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