Skip to main content
Glama

switch_target_page

Rebind the automation target to a browser tab matching a URL substring and lock it. Use when the current test page is closed or you need to operate on another system page.

Instructions

显式切换/重绑 MCP 操作目标标签页(按 URL 子串匹配)并锁定。默认机制:首次调用自动锁定一个标签页,后续操作固定作用于该页,不受新开/切换标签页影响;测试页被误关或需操作另一系统页面时用本工具重绑。返回新目标页 URL/标题。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
url_patternYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations provided, the description carries the burden of behavioral disclosure. It transparently explains the stateful nature: first call auto-locks a tab, subsequent operations stay fixed, and this tool changes that binding. It also mentions the return value (new target URL/title), but does not discuss error cases or potential side effects, hence a 4 rather than 5.

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 a single dense sentence but covers purpose, usage context, behavioral detail, and return value efficiently. It is not excessively long, but the information is packed together with semicolons, making it slightly harder to parse than if it were split into separate sentences.

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?

Given the tool's stateful complexity, the description covers the essential aspects: what it does, when to use it, how it behaves, and what it returns. The presence of an output schema covers return format details. It lacks explicit mention of error handling if no tab matches, but overall it is complete enough for an agent to use correctly.

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 description coverage is 0% and there is one required parameter, url_pattern. The description adds the key semantic that this is a URL substring matcher, which is essential for understanding the parameter. However, it omits details like case sensitivity or whether the pattern must be a full URL, so slightly less than a 5.

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 verb ('显式切换/重绑' = explicitly switch/re-bind) and the resource ('MCP 操作目标标签页' = MCP operation target tab). It also specifies the matching method (by URL substring) and the locking behavior, making it distinct from sibling tools like analyze_current_page or export_session.

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?

The description provides clear context: it explains the default automatic tab-locking behavior and specifies when to use this tool (when test page is accidentally closed or another system page needs to be operated). It does not explicitly name alternative tools, but no sibling tool serves this exact tab-rebinding purpose.

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/hooplus1ce/qa-automation-mcp-plugin'

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