Skip to main content
Glama

close_session

Closes a browser session and releases its resources to free memory and prevent orphaned browser processes.

Instructions

Closes a browser session and releases its resources.

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": "<session>"
    },
    "name": "close_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionYesThe session name to close

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden, and it does disclose the core effect: the session is terminated and resources released. It is silent on important behavior for a teardown operation — whether in-flight actions are cancelled, whether unsaved state is lost, whether the call is idempotent, and what happens if the session name is unknown.

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 sentence, front-loaded with the action and immediately followed by its effect, with no filler. It is efficient, though the terseness leaves no room for the behavioral detail noted above.

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 teardown tool with a fully documented schema and no output schema, the description covers the essential who/what. The remaining gap is the consequence and error behavior of closing a session, which matters more here than for a read-only tool.

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 coverage is 100% and the single 'session' parameter is already documented as 'The session name to close', so the description adds no semantics beyond the schema. Baseline 3 applies because the schema does the explanatory work.

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 and resource ('Closes a browser session') plus the effect ('releases its resources'), which clearly distinguishes it from open_session and the action/query siblings. It stops short of explicitly naming the counterpart tool, so differentiation is inferable rather than stated.

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?

The lifecycle pairing with open_session and the phrase 'releases its resources' imply when to call it, but there is no explicit when/when-not guidance, no note on calling it for a session that was never opened, and no mention of any alternative teardown paths.

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