Skip to main content
Glama

close_tab

Close the browser tab at a specified index to remove an unwanted page and keep the Clearcote session tidy. Use the index returned by list_tabs to target the correct tab.

Instructions

Close the tab at index (from list_tabs).

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": {
      "index": "<index>"
    },
    "name": "close_tab"
  }
}

Input Schema

NameRequiredDescriptionDefault
indexYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false and openWorldHint=true, so the agent knows this is a mutating action. The description adds nothing beyond that: it does not say whether the close is irreversible, what happens to unsaved state, or what occurs when the last tab is closed. With annotations covering the safety flag only, the behavioral picture stays thin.

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?

One short sentence, front-loaded with the action and scoped by the parameter reference. No wasted wording.

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 one-parameter mutating tool with no output schema this is minimal but callable. Missing are the failure/edge behaviors (stale index, last tab, unsaved changes) that an agent cannot infer from the bare integer schema.

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?

Schema description coverage is 0% for the single 'index' parameter, so the description must compensate. It usefully ties the value to list_tabs output, which is real added meaning, but says nothing about indexing base, whether indices shift after closures, or how invalid indices are handled.

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?

States a specific verb and resource ('Close the tab') and immediately scopes the target to a tab index, which separates it cleanly from siblings like new_tab, list_tabs, and navigate. It stops short of naming any sibling explicitly, so it is clear but not fully differentiated.

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 parenthetical '(from list_tabs)' implies the workflow -- obtain an index via list_tabs, then close it -- but usage is only implied. There is no statement of when not to use it (e.g., closing the last tab) or which alternative applies.

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