Skip to main content
Glama

Get MCP tab context

tabs_context_mcp

Retrieve the tab IDs in an MCP-owned tab group first, optionally creating a background window or existing-window group when none exists so other tools can control those tabs.

Instructions

Get the tab IDs in the MCP-owned tab group. CALL THIS FIRST in a session. Pass createIfEmpty=true to create a background window + tab group without taking focus if none exists yet. An explicit createWindowId instead creates a new owned tab/group in that existing normal window; it never adopts user tabs or moves an existing group. Tools address tabs by tabId; switching is unnecessary for ordinary background work. Use tab_switch with bringToFront=true only when showing the window is needed. Only tabs in this group can be controlled by the other tools.

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

Input Schema

NameRequiredDescriptionDefault
incognitoNoCreate the new group in a separate background incognito window, without the user's normal sign-ins. Requires createIfEmpty and the user's "Allow in Incognito" setting for Tabai (otherwise INCOGNITO_UNAVAILABLE); cannot be combined with createWindowId.
createIfEmptyNoCreate a background window + MCP tab group if none exists
createWindowIdNoCreate the new owned group in this existing Chrome window. Requires createIfEmpty; never adopts existing tabs or moves a live group.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.24.1

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that createIfEmpty creates a background window without taking focus, that createWindowId never adopts user tabs or moves a live group, and that only tabs in this group are controllable. What it does not cover is failure behavior or whether an implicitly created group/window is later cleaned up, so it stops short of fully transparent.

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?

It is front-loaded with the core action and the 'CALL THIS FIRST' directive, and the remainder is a tight sequence of conditional guidance. The non-adoption caveat is stated twice (in the description and again in the createWindowId schema text), which is mild redundancy but not enough to hurt scanning.

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

Completeness5/5

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

For a 3-optional-parameter tool with no annotations and no output schema, the description covers everything an agent needs: what it returns (tab IDs), that it should be the first call, how IDs are used downstream, when to bring a window to the front, and the scope limit on controllable tabs. Optional creation paths are explained at the level of intent rather than syntax, which the schema supplies.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description genuinely adds meaning beyond the schema by explaining the focus implication of createIfEmpty ('without taking focus') and the non-adoption semantics of createWindowId. The incognito parameter's constraints are left to the schema alone, which is adequate but not enriched.

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

Purpose5/5

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

The first sentence gives a specific verb and resource ('Get the tab IDs in the MCP-owned tab group') and scopes it to an owned group rather than all browser tabs. It is clearly distinct from siblings like tabs_create_mcp or tab_switch, and the closing line states the boundary of what those IDs can control.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly says 'CALL THIS FIRST in a session' and then routes the agent away from tab_switch: switching is unnecessary for ordinary background work, and bringToFront=true is only needed when showing the window matters. It also frames when the optional creation params apply versus the plain read case, with no ambiguity left to inference.

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