Skip to main content
Glama

browser_close

Close a browser session by session ID to save its named profile and release resources.

Instructions

Close a browser session, saving its named profile and releasing 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": "browser_close"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

No annotations exist, so the description carries the full behavioral burden, and it does disclose two real traits: the named profile is persisted and resources are released, implying the session becomes unusable afterward. It does not state whether any unsaved page state is discarded, whether the saved profile can be reopened later, or what a failed close looks like. That leaves material gaps for an irreversible operation.

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, no filler, and the primary action is front-loaded ahead of the side effects. The only shortfall is that its brevity comes partly from omitting information rather than from tight editing.

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 no output schema, the description covers the action and its two consequences, which is close to the minimum an agent needs. The missing piece is any statement of failure behavior or of what the call returns, which matters for a terminating operation.

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

Parameters1/5

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

Schema description coverage is 0% and the single parameter is the required `session` identifier, yet the description never mentions it or explains its `^s\d+$` form. The phrase 'its named profile' describes the session's content, not the parameter, so the reader learns nothing about how to supply the argument.

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 names a specific verb and resource, 'Close a browser session', and adds the key side effects of saving the named profile and releasing resources. An agent can tell this is a teardown operation at a glance. It stops short of distinguishing itself from siblings such as browser_handoff or browser_save, which also deal with session persistence.

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?

There is no guidance on when to close versus hand off or save a session, no prerequisites, and no exclusions. The only usage signal is the implicit one carried by the verb 'close'. An agent that wants to preserve a session for a user must infer on its own that browser_handoff is the better route.

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