Skip to main content
Glama

tabs_groups_query

Lists tab groups and their IDs across Firefox windows or with filters, helping you find a group ID required by other tab-group actions.

Instructions

List tab groups with their IDs, in every window or filtered

Requires Firefox 139+. tabs_group reports a group's ID only when it creates the group, so this is how to find the ID of any other group.

profile_id is required: obtain it from profiles_list. All object IDs are local to that profile; never reuse them in another profile.

Input Schema

NameRequiredDescriptionDefault
colorNoOnly groups of this colour.
titleNoOnly groups with exactly this title.
collapsedNoOnly collapsed (True) or expanded (False) groups.
window_idNoOnly groups in this window (optional, accepts int or string).
profile_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.0

TDQS

A4.4/5.0
Behavior4/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 mostly succeeds: it discloses the Firefox 139+ version gate, the mandatory profile_id, and that object IDs are profile-local and must never be reused elsewhere — a real correctness hazard. It doesn't cover ordering, scale, or whether results span private/container windows, which is why it isn't a 5.

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?

Purpose is front-loaded in the first line, followed by the differentiator against tabs_group and the prerequisite note. Four short sentences with no filler; the stray line break inside the first paragraph is cosmetic only.

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?

An output schema exists, so return values don't need explaining, and the remaining description covers the two things that matter for a query tool: the version prerequisite and the profile-scoping of IDs. Filter capabilities are delegated to the schema, which is a reasonable split.

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

Parameters5/5

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

Schema coverage is already 80%, so the baseline is 3; the description earns extra by explaining why profile_id is required, where to source it (profiles_list), and the critical semantic that all returned IDs are scoped to that profile. That profile-scoping rule is nowhere in the schema and directly changes how callers chain parameters.

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?

States a specific verb and resource ('List tab groups with their IDs') plus scope ('in every window or filtered'), which immediately separates it from create/mutate siblings like tabs_group and tabs_groups_update. It also explains the tool's raison d'être relative to tabs_group, so an agent can distinguish it without opening schemas.

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

Usage Guidelines4/5

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

Gives explicit routing logic: use this when you need a group ID that tabs_group did not return. Prerequisites are spelled out ('profile_id is required: obtain it from profiles_list'). It stops short of naming exclusions (e.g. 'do not use to modify groups — see tabs_groups_update'), so not quite a 5.

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