Skip to main content
Glama

Close Browser Session

session_close
Destructive

Safely close a specified isolated browser session by its session ID to end it without affecting other automated browser tasks.

Instructions

Safely close a specific isolated browser session.

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": {
      "session_id": "<session_id>"
    },
    "name": "session_close"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_idYesSession ID to close safely

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.1

TDQS

B3.2/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and openWorldHint=false, so the safety profile is known from structured data. The description's only added context is the vague adverb 'safely' and the adjective 'isolated' — it never says what is lost on close (tabs, cookies, in-flight tasks), whether the session can be reopened, or whether other sessions are unaffected.

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 nine-word sentence that front-loads the verb and action, with no filler or redundancy. It is efficient, though the brevity edges toward under-specification rather than tightness.

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 one-parameter, no-output-schema tool this is close to adequate, and annotations carry the destructive flag. However, a destructive session-ending operation whose description omits what state is destroyed and whether the session is recoverable leaves a real gap an agent would want filled before invoking it.

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?

With a single required parameter and 100% schema description coverage, the schema already documents session_id as the 'Session ID to close safely.' The phrase 'specific isolated browser session' weakly reinforces that the ID must reference an existing session, but adds no format, sourcing, or error-handling detail beyond the schema.

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 ('close') and resource ('isolated browser session') with a scoping qualifier ('specific'), so an agent can tell it apart from session_create or session_switch by name alone. It falls short of 5 because it never explicitly contrasts itself with those siblings, relying on the agent's inference that 'close' is the inverse of 'create'.

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: 'close a specific isolated browser session' tells the agent the operation exists but not when it should be preferred over leaving a session open, nor whether it is required cleanup after a task. There are no conditions, no exclusions, and no named alternatives, so the agent must infer the trigger from the sibling names.

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