Skip to main content
Glama

open_session

Start a headless browser session using a saved logged-in profile; returns a session ID and page snapshot for authenticated web actions.

Instructions

Open a headless browser already logged in as the saved profile. Returns a session id and page snapshot.

screenshots: attach a screenshot to every action's result so the user can follow along (default: off, or on when ASSERTIFY_SCREENSHOTS=1). Turn it on when the user wants to watch.

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": {
      "profile": "<profile>"
    },
    "name": "open_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNo
profileYes
screenshotsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare openWorldHint=true, idempotentHint=false, and destructiveHint=false. The description adds real context beyond that: the browser is headless, a previously saved/authenticated profile is required, and the call yields a session id plus a page snapshot. It omits failure behavior for a missing or unauthenticated profile, so it is not a 5.

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?

The core behavior is front-loaded in one tight sentence. The screenshots paragraph is useful but disproportionately long for one optional boolean on a 3-parameter tool, which keeps it from a 5.

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 no output schema, the description does supply the key return values, and it names the authentication prerequisite. However, for a stateful, open-world session opener, it does not cover what happens when the profile is absent or already in use, and two of three parameters remain undocumented.

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 0%, so the description must carry parameter meaning. It explains the optional screenshots flag thoroughly (default off, overridden by ASSERTIFY_SCREENSHOTS=1, when to enable), but leaves profile and url entirely undefined beyond their names, so it only partially compensates.

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?

States a specific verb and resource: 'Open a headless browser already logged in as the saved profile', plus what it returns (session id, page snapshot). It does not differentiate from lookalike siblings such as open_sessions or start_login, so it falls short of a 5.

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 context is only implied via the no-argument premise that a saved profile exists. The only explicit when-to guidance is for the screenshots flag ('Turn it on when the user wants to watch'), with no statement of when to prefer this over open_sessions, switch_tab, or start_login.

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