Skip to main content
Glama
@aifirelab/mcp-pinchtab

@aifirelab/mcp-pinchtab

Official
by Ai-firelab

close_tab

Closes the current or specified browser tab by ID to remove unwanted tabs and keep headless browser automation sessions organized.

Instructions

Close the current or a specific tab.

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

Input Schema

NameRequiredDescriptionDefault
tabIdNoTab ID to close (default: current)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations, the description carries the full burden. It states the default target but does not disclose side effects such as losing tab state, whether the operation is reversible, focus behavior after closing, what happens when closing the last tab, or how invalid tab IDs are handled.

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?

The definition is a single front-loaded sentence with no wasted wording. It conveys the core action and target scope immediately.

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 one-parameter tool with full schema coverage, the description is minimally adequate. However, because this is a destructive browser action with no annotations, the lack of side-effect and failure-mode context leaves meaningful gaps.

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?

The single parameter has 100% schema description coverage, including its default. The prose repeats the default but adds no additional meaning beyond the schema, so the baseline 3 applies.

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?

The description uses the specific verb 'Close' with the resource 'tab' and states the scope as current or specific. It is clear enough to distinguish from siblings like list_tabs, though it does not explicitly name an alternative.

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?

Usage is strongly implied by the action of closing a tab, and the default-to-current behavior is stated. However, there is no explicit guidance on when to use this versus list_tabs or when not to close a tab.

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