Skip to main content
Glama

tab_close

Close a Chrome tab by its tab ID to free resources and reduce clutter, optionally targeting a specific browser profile.

Instructions

Close a tab.

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": {
      "tabId": "<tabId>"
    },
    "name": "tab_close"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabIdYes
profileNoChrome profile: folder ("Profile 3"), nickname, or unique display name. Omit to use the current profile.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

C2.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden of disclosure for a destructive operation, and it discloses essentially nothing. It does not say whether the page state is lost permanently, what happens to the last remaining tab, whether closing requires an active session, or how an invalid tabId is handled.

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

Conciseness3/5

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

The single sentence is front-loaded and free of waste, but at four words it is under-specified rather than concise; the size is driven by omission, not by tight editing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter destructive tool with no annotations and no output schema, the definition leaves too much unexplained: neither parameter is interpreted, side effects are unstated, and there is no return or error behavior. The schema's coverage of profile is the only reason this is not lower.

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

Parameters2/5

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

Schema coverage is 50%: profile is documented in the schema while tabId has no description anywhere, and the tool description adds no meaning to either. It never explains that tabId identifies the tab to close or how to obtain one (e.g., from tab_new or a tabs list), which is the key missing semantic for a required parameter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Close a tab" names a specific verb and resource, so the basic action is unambiguous and clearly distinct from tab_new/tab_select by verb alone. It stops there: no indication of scope (current tab vs. a background tab identified by tabId) or of what distinguishes it from other tab-lifecycle siblings.

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 when-to-use guidance, no prerequisites, and no mention of alternatives such as batch or the profile-scoped behavior implied by the profile parameter. An agent must infer from the sibling list alone when to reach for this tool.

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