Skip to main content
Glama
WebTrace MCP Server

WebTrace MCP Server

by kings0527

activate_tab

Activates a browser tab by its tabId and optionally focuses the window containing it, letting agents bring a specific traced page to the foreground before analysis.

Instructions

激活指定 tabId 的标签页,并可聚焦其所在窗口。

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": {
      "tabId": "<tabId>"
    },
    "name": "activate_tab"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabIdYes要激活的标签页 ID。
focusWindowNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses the window-focus side effect, which is the key extra behavior, but is silent on whether the tab is brought to the foreground, whether OS-level focus may interrupt the user, what happens with an invalid tabId, and what the call returns.

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?

A single front-loaded sentence with no filler; the primary action comes before the optional behavior. It is perhaps too terse for a tool with no annotations, but nothing is wasted.

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 simple two-parameter, no-annotation, no-output-schema tool, the description covers the core action and the optional window focus. It leaves out error behavior for an invalid or closed tabId and any indication of what state the call returns, which an agent would need when deciding whether follow-up calls are necessary.

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 coverage is 50%: tabId is documented in the schema, while focusWindow has no schema description. The phrase '并可聚焦其所在窗口' implicitly maps to focusWindow and adds some meaning, but it does not state the false-case behavior explicitly or note anything beyond the schema's own default of true.

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 gives a specific verb and resource ('激活指定 tabId 的标签页') plus the secondary window-focus effect, so the operation is unmistakable. It does not distinguish itself from siblings such as list_tabs or navigate, so it falls short of a 5.

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?

Usage is implied by the action itself — an agent can infer this brings an existing tab to the foreground. There is no explicit when-to-use, when-not-to-use, or routing to an alternative (for example navigate when the target tab does not yet exist).

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