Skip to main content
Glama

Close Browser Tab

browser_close_tab
Destructive

Close an unneeded browser tab to recover from page-specific failures or remove pages during full-profile workflows. Note: discards unsaved in-memory state.

Instructions

Use when a full-profile workflow must remove an unneeded page or recover from a page-specific failure. Preconditions: identify the intended page and stop any trace that must retain its final events. Next: list tabs or inspect state to confirm which page remains active. Sensitivity: closing a tab discards its unsaved in-memory state.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageIdNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
errorNo
resultNo
Behavior4/5

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

The description warns that closing a tab discards unsaved in-memory state, which adds value beyond the destructiveHint annotation. It also specifies preconditions to mitigate risks. However, it does not detail the exact consequences (e.g., whether the tab is immediately removed or requires confirmation), so slightly incomplete.

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

Conciseness4/5

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

The description is concise (three sentences) and front-loaded with the primary use case. Every sentence adds information. However, the term 'full-profile workflow' could be clarified. Overall well-structured.

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 destructive tool, the description covers purpose, preconditions, consequences, and next steps. The presence of an output schema reduces the need to describe return values. Missing: handling of invalid pageId or when no such tab exists. But overall adequate.

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?

The schema provides no description for pageId. The description implies it is the identifier for the tab to close, but does not explicitly define it or specify how to obtain it (e.g., from list_tabs). This leaves ambiguity.

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 clearly states the tool's role: 'remove an unneeded page or recover from a page-specific failure.' This distinguishes it from sibling tools like browser_close (which closes the entire browser) and navigation tools. The title reinforces purpose.

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?

The description provides explicit when-to-use guidance ('Use when a full-profile workflow must remove an unneeded page...') and preconditions about identifying the page and stopping traces. It also gives next steps. This helps the agent decide when to invoke this tool over alternatives.

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

Install Server

Other Tools

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/ss26367098/rawtrace-mcp'

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