Skip to main content
Glama

tabs_close

Closes a specified browser tab by ID, or the current tab when no ID is given; closing the last open tab also closes the browser.

Instructions

Close one tab. Closing the last tab closes the browser.

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

Input Schema

NameRequiredDescriptionDefault
tabIdYesTab ID to target. Omit to act on the current tab.

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 at all, the description carries the full burden and does disclose the single most important consequence: closing the last tab closes the browser. It says nothing about reversibility, what happens to the closed tab's session, or what is returned, so a mutation tool remains only partly documented.

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?

Two short sentences with no wasted words, and the destructive edge case is front-loaded as the second sentence where it will be read before invocation. Density is near-ideal for a single-parameter tool.

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 tool with no annotations and no output schema, the description covers what it does and the one dangerous side effect an agent must know. Only return-value and post-close state details are absent, which is minor at this complexity.

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%, so the schema already documents tabId including the 'omit for current tab' behavior, and the description adds nothing beyond it. Notably it does not reconcile the schema's 'omit' note with tabId being listed as required.

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 states a specific verb and resource ('Close one tab') with a stated scope limit, so an agent can tell it apart from tabs_create or tabs_select without opening the schema. It stops short of explicitly naming a sibling, but the action 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?

Usage is only implied by the action itself; there is no explicit statement of when to prefer this over tabs_select or browser_batch, nor any prerequisite such as the tab existing. The one real guideline is the warning that closing the final tab terminates the browser, which is a valuable conditional.

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