Skip to main content
Glama

close_tabs

Close browser tabs by native tab ID or session ID, with ownership safeguards so only agent-created tabs are removed unless explicitly requested.

Instructions

Close one or more tabs by native tab id or composite session_id. Accepts a single identifier or a list; identifiers in one call must belong to the same browser. By default it closes only tabs created by this MCP task and requires the owner_id returned by open_new_tab; lifecycle generations are checked before removal. Set only_if_agent_owned=false only for an explicit operator request to close a user tab.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tab_idYes
owner_idNo
session_idNo
only_if_agent_ownedNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A5/5.0
Behavior5/5

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

With no annotations present, the description carries the full behavioral burden and does so thoroughly: it warns that identifiers must belong to the same browser, that lifecycle generations are checked before removal, and that the ownership bypass flag is reserved for explicit operator requests. These are non-obvious behaviors that substantially affect call success and safety.

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?

Three dense sentences cover purpose, multi-tab constraints, ownership rules, and the special flag condition with zero filler. The most important action and identifier forms are front-loaded, and each sentence contributes new, necessary information.

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

Completeness5/5

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

Given the tool's moderate complexity (multiple parameter combinations, ownership nuance) and the presence of an output schema, the description covers all decision-relevant aspects: what identifiers are accepted, the same-browser constraint, the default ownership guard, and the escape hatch for operator-requested closures. Nothing an agent needs to know before calling is missing.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must explain parameters on its own. It clarifies that tab_id can be a single identifier or a list, that session_id is an alternative composite identifier, that owner_id is required by default, and that only_if_agent_owned controls whether user tabs may be closed. This adds meaning far beyond the raw schema types.

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 opens with a specific verb and resource: 'Close one or more tabs by native tab id or composite session_id.' It precisely defines what the tool acts on and the two accepted identifier forms, making its purpose unmistakable even before reading the schema.

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

Usage Guidelines5/5

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

It explicitly explains the default ownership restriction ('closes only tabs created by this MCP task'), the requirement for owner_id, and the exact condition for using only_if_agent_owned=false ('only for an explicit operator request'). This tells the agent when it is safe to use the tool and when not to, without needing to infer policy.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/LinVireo/browsertap-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server