Skip to main content
Glama

Close a tab in the MCP group

tabs_close_mcp

Close a specific tab in the MCP tab group by its ID. If it is the group’s last tab, Chrome removes the group automatically.

Instructions

Close a tab in the MCP tab group by its ID. If it is the group's last tab, Chrome removes the group.

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_mcp"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabIdYesTab ID to close (must be in the MCP group)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.24.1

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden: it usefully discloses the consequential side effect that closing the last tab destroys the group. It says nothing about what happens if the ID is not in the MCP group, whether the tab is recoverable, or whether elevated permissions are needed, leaving meaningful gaps for a mutation tool.

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

Conciseness5/5

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

Two short sentences, front-loaded with the action and followed immediately by the destructive edge case. Nothing is redundant or padded.

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 output schema and no annotations, the description covers what it does and the notable consequence of being the last tab. Only the failure mode for an out-of-group or stale tabId is unaddressed.

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% and the single tabId parameter is documented directly in the schema, so the description's 'by its ID' adds no meaning beyond it. Baseline 3 applies when the schema already does the parameter work.

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?

States a specific verb and resource ('Close a tab') plus a scope constraint ('in the MCP tab group'), which separates it from generic tab tooling like tabs_create_mcp or tab_reload. It stops short of naming an alternative sibling for non-MCP tabs, so it is clear but not fully differentiated.

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?

The scoping phrase 'in the MCP tab group' implies usage context, and the schema adds 'must be in the MCP group', but there is no explicit when-to-use or when-not-to-use guidance and no stated alternative for closing tabs outside that group.

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