Skip to main content
Glama

tabs

List, open (with optional URL), select, and close browser pages so later actions apply to the chosen current page.

Instructions

管理标签页:list 列出全部;new 新建(可带 url);select 切换到指定标签页;close 关闭(默认关闭当前)。之后的操作都作用于"当前标签页"。

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": {
      "action": "<action>"
    },
    "name": "tabs"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo标签页 ID,如 t2(select/close 用)
urlNonew 时打开的网址
actionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and openWorldHint=true, so mutation and external reach are known. The description adds two genuinely useful behaviors beyond that: close defaults to the current tab, and state changes affect which tab later operations target. It does not say what happens when closing the last tab or when an id is invalid, so the added context is real but not thorough.

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?

A single dense sentence front-loads the resource, maps each action to its meaning, and ends with the stateful caveat. No filler and nothing redundant with the schema.

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 small 3-parameter tool with no output schema, all actions and both optional parameters are covered, plus the cross-call state implication. Edge cases (invalid id, last-tab close) and any indication of what list returns are absent, keeping it short of complete.

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 67% and the action enum itself has no inline description, so the description must carry it — and it does, defining all four enum values. It also clarifies that url applies to new and id to select/close, complementing rather than repeating the schema's field notes.

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?

The description names the resource (标签页) and enumerates all four operations with specific verbs: list, new, select, close. An agent immediately knows this tool manages tabs rather than page content. It does not explicitly distinguish itself from siblings such as navigate, though the closing remark about "current tab" implies the relationship.

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

Usage Guidelines4/5

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

Each action is given a clear when-to-use mapping, including the important default that close with no id closes the current tab. The final sentence warns that all subsequent operations apply to the current tab, which steers correct sequencing. There are no explicit exclusions or named alternatives (e.g., use navigate instead of new with a URL), so it falls short of a 5.

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