Skip to main content
Glama

Close browser session

browser_session_close
DestructiveIdempotent

Close a session as soon as the work is done, freeing its slot. Without session_id it closes your only session; closing an ended one, or having none, succeeds.

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": "browser_session_close"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_idNoOnly with several sessions.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so safety and repeatability are known. The description adds value beyond them by spelling out the concrete no-op success cases ('closing an ended one, or having none, succeeds') and the slot-reclamation effect, which an agent needs in order to decide when to call.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tightly packed sentences with no filler; the action and its benefit are front-loaded and the defaulting/error-tolerance behavior follows immediately.

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 single-parameter destructive teardown tool with annotations covering idempotency and destructiveness, the description covers timing, defaulting, and no-op outcomes. No output schema exists and none is needed for a close operation, so the remaining gap is minimal.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the one parameter is documented as 'Only with several sessions.' The description still adds meaning the schema lacks: that omitting session_id closes the caller's only session, which is the key defaulting behavior.

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?

The description gives a specific verb+resource ('Close a session') plus a consequence ('freeing its slot'), which separates it from browser_session_create and the rest of the session siblings. It stops short of naming an alternative explicitly, so it is clear rather than routing-grade.

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

Usage Guidelines4/5

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

'as soon as the work is done' tells the agent the triggering condition, and the second sentence gives the conditions under which calling is safe or unnecessary (already ended, none open). No explicit when-not-to-use beyond that, but the operational context is clear.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.