Skip to main content
Glama

close-session

Close a browser session and all its tabs to end automation cleanly. Specify a session ID or use the default session.

Instructions

Close the browser session and all its tabs.

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": "close-session"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionIdNoBrowser session ID. Defaults to 'default'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. The clause 'and all its tabs' usefully discloses that child tabs are destroyed along with the session, but it doesn't say whether the action is reversible, whether in-flight page state or auth state is lost, or what happens to the 'default' session.

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?

One short sentence with no wasted words, and the destructive scope is front-loaded. It is arguably too terse for a mutation tool, but there is no filler.

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?

For a one-parameter tool with full schema coverage and no output schema, the description covers the essential fact an agent needs: the session and its tabs are closed. The main remaining gap is the absence of any note on irreversibility or state loss, which matters more because there are no annotations.

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 100% and the single optional sessionId parameter already documents its format and its 'default' fallback. The description adds no meaning beyond that, so the baseline of 3 applies.

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 ('Close the browser session') and clarifies the scope with 'and all its tabs'. An agent can tell what it does without opening the schema, though it never names a sibling (e.g. list-sessions or create-session) to contrast against.

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?

No when-to-use guidance, no prerequisites, and no alternatives. It doesn't say whether this is cleanup at the end of a workflow, what happens if the session is in use, or how to reopen a session afterward.

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