Skip to main content
Glama

Close tabs

qa_close_tab

Close one tab or several tabs after a test run, returning which IDs closed and which were already gone. Use it to tidy isolated logins from matrix runs.

Instructions

Close one tab or a list of them — how you tidy up the isolated logins when a matrix run is finished. Returns which ids closed and which were already gone. Requires the one-time “Agent control” confirmation in the panel; without it the extension answers consent-required and does nothing.

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

Input Schema

NameRequiredDescriptionDefault
tabIdNoA single tab to close
tabIdsNoSeveral tabs to close, e.g. every isolated login from qa_tabs

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.86.2

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden and does so well: it discloses the return semantics (which ids closed vs. which were already gone, i.e. idempotent behavior), a hard prerequisite (one-time 'Agent control' confirmation in the panel), and the exact failure mode (consent-required response, no action taken). These are precisely the behavioral facts an agent cannot get from the schema.

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?

Three sentences, front-loaded with the action and its scope. The middle sentence about tidying isolated logins is slightly conversational, but it earns its place by supplying the run-teardown context; nothing is redundant.

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 two-optional-parameter mutation tool with no annotations and no output schema, the description covers purpose, prerequisite, failure mode, and return shape. The remaining gap is the relationship between tabId and tabIds when both are supplied or neither is, which an agent would need to know before calling.

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%, so tabId and tabIds are already documented, including the pointer to qa_tabs. The description restates the single-vs-list distinction but does not clarify whether the two parameters are mutually exclusive, whether both may be supplied, or how duplicates are handled — so it adds little beyond the schema.

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 ('Close one tab or a list of them') plus the operational context in which it belongs (tidying isolated logins after a matrix run). The agent can distinguish this from qa_open_tab and qa_focus_tab purely from the description.

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 a clear when-to-use scenario ('when a matrix run is finished') and, via the schema text, points at qa_tabs as the source of the ids to pass. There is no explicit when-not or statement about what to use instead for other cleanup cases, which keeps it short of a 5.

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