Skip to main content
Glama

tabs_close

Close one or more specified browser tabs and receive per-tab error reporting.

Instructions

Close specified tabs, reporting individual errors.

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": {
      "tabIds": "<tabIds>"
    },
    "name": "tabs_close"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabIdsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.0

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does add one meaningful behavioral fact — per-tab errors are reported individually, implying partial success is possible. It says nothing about whether closed tabs are recoverable, what happens when closing the active or last tab, or what the per-error report looks like.

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?

One short sentence with the action front-loaded and no filler. Its brevity is efficient, though it borders on under-specification for a destructive operation.

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

Completeness2/5

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

The tool is simple (one required array parameter), but with no annotations, no output schema, and no parameter documentation, the description should compensate for the gaps in ID sourcing, failure-mode behavior, and irreversibility. Only the error-reporting hint is supplied.

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?

Schema description coverage is 0% and the single tabIds parameter is undocumented in both schema and description. "Specified tabs" does not clarify that these are integer IDs rather than indices or titles, nor where to obtain valid values.

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?

"Close specified tabs" gives a specific verb (close) and resource (tabs), which an agent can distinguish from tabs_open and tabs_activate by name. It does not explicitly contrast itself with any sibling, but the operation is unambiguous.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, and no indication of the prerequisite step (obtaining tab IDs, presumably via tabs_list). The agent must infer the workflow entirely from the tool name.

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