Skip to main content
Glama

firefox_close

Close a specified Firefox or Zen tab by tab ID to manage open browser tabs during automated workflows. Use only on tabs you opened unless the user requests otherwise.

Instructions

Close a tab. Only close tabs you opened, unless the user asked.

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

Input Schema

NameRequiredDescriptionDefault
tabIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and openWorldHint=true, so the mutating/non-reversible nature is partially covered. The description adds a useful behavioral constraint about tab ownership, but says nothing about what happens to unsaved state, what error occurs for a stale or foreign tabId, or whether the closed tab can be restored.

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, action first, guardrail second, with no filler. Every clause carries information.

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

Completeness3/5

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

For a simple no-output-schema tool this is close to sufficient, and the annotations carry the safety profile. The remaining gap is how to obtain a valid tabId, which is material for an agent trying to invoke it correctly.

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

Parameters2/5

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

Schema description coverage is 0% and the single required parameter tabId is undocumented in both schema and description. The description never explains where a tabId comes from (presumably a listing tool such as firefox_tabs) or its format, so it fails to compensate for the coverage gap.

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?

"Close a tab" gives a specific verb and resource, immediately distinguishable from siblings such as firefox_open and firefox_tabs. It stops short of stating scope (e.g., whether it works on background tabs or only the active one), so it is clear but not maximally precise.

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?

The sentence "Only close tabs you opened, unless the user asked" is an explicit use/no-use condition and a genuine ownership guardrail an agent would otherwise lack. It does not point to an alternative tool or describe prerequisites, but the when-to-use condition is stated directly.

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