Skip to main content
Glama

close

DestructiveIdempotent

End a Browsa browser session and stop its billing; specify the browser ID or use the last browser by default.

Instructions

Close a browser and stop its billing.

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

Input Schema

NameRequiredDescriptionDefault
browser_idNoDefault: the last browser used.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.3

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already supply destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is covered. The description adds genuinely new context by disclosing the billing side effect, but says nothing about what is lost on close (session state, open pages, cookies) or whether the action is reversible — meaningful omissions for a destructive tool.

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?

A single short sentence with zero filler, front-loading the core action and appending the cost consequence. Nothing could be removed without losing information.

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-optional-parameter destructive tool with no output schema, the definition covers purpose and cost impact but leaves an agent unaware of what state is destroyed on close. Adequate, but a short warning about losing the browser session would make it complete.

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 browser_id is documented there, including its default to the last used browser. The description adds no meaning beyond that, so the baseline 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?

"Close a browser" is a specific verb+resource pairing that is immediately distinguishable from the open/handoff siblings, and the added "stop its billing" clause names a concrete consequence. It stops short of explicitly naming the counterpart tool, but the purpose is unambiguous.

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 billing clause implicitly signals when to call it (when the browser is no longer needed and cost should cease), but there is no explicit when-to-use/when-not framing and no named alternative such as handoff for continuing work elsewhere.

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

Deploy Server

Other Tools