Skip to main content
Glama

tabs_close

Closes a specified Firefox tab by ID, or the active tab when no ID is provided, through FoxBridge.

Instructions

Close a tab.

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 to act on. Omit for the active tab.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and fails to meet it. It does not say whether closing is reversible, what happens when the last tab is closed, whether unsaved state is lost, or whether navigation state changes afterward.

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

Conciseness3/5

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

The single short sentence is front-loaded and free of waste, but it is under-specified rather than genuinely concise. Brevity here costs information an agent needs before invoking a destructive action.

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

Completeness2/5

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

The tool is structurally simple with one fully documented parameter and no output schema, but with zero annotation coverage on a state-changing operation, the description should disclose irreversibility and post-close behavior. It discloses none of that.

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 tabId parameter is fully documented in the schema, including the default-to-active-tab behavior. The description adds nothing about the parameter, which is acceptable at this coverage level but earns only the baseline.

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

Purpose2/5

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

"Close a tab." restates the tool name (tabs_close) almost verbatim and adds no distinguishing information beyond what the name already conveys. It does identify a verb and resource, but with no scope, no sibling differentiation, and no detail it functions as a tautology rather than a purpose statement.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites, and no mention of alternatives such as tabs_select or tabs_create. An agent must infer entirely on its own that this is the teardown counterpart to tabs_create.

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