Skip to main content
Glama
nolanbaxter

Local Browser MCP

by nolanbaxter

close_tab

Close an open browser tab by its index, or close the active tab when no index is specified, then get the updated tab list.

Instructions

Close a tab by index, or the active tab if no index is given. Returns the updated tab list.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
indexNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.0

TDQS

A4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the behavioral burden. It does disclose the default behavior and the return value, which is helpful. However, it does not mention what happens on an invalid index, whether the operation is irreversible, or that closing the active tab may invalidate the current browsing context.

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 description is two short sentences with no filler. The core behavior is front-loaded and the return value is stated compactly.

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 simple one-parameter tool with no output schema or annotations, the description covers purpose, optional parameter semantics, default behavior, and return value. The main omissions are error behavior and index base, which are relatively minor for this tool.

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

Parameters4/5

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

Schema coverage is 0%, so the description must add meaning. It does: 'index' is optional and defaults to closing the active tab. It stops short of specifying zero-based indexing or accepted ranges, but for a single optional parameter this is reasonably complete.

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?

The description uses a specific verb ('Close') and resource ('tab'), and clarifies both modes: by index or the active tab by default. This clearly distinguishes it from sibling tools like new_tab, switch_tab, and tabs.

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 description implies when to use the tool: whenever a tab needs to be closed. It also gives guidance on parameter omission ('or the active tab if no index is given'), but it does not explicitly compare against alternatives or state when not to use it.

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