Skip to main content
Glama
WebTrace MCP Server

WebTrace MCP Server

by kings0527

page_state

Retrieves complete state information from a target browser tab, using the active tab by default, to help inspect JavaScript behavior during reverse engineering.

Instructions

获取目标标签页的完整状态信息,默认使用当前活跃标签页。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "page_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNo目标标签页 URL,可传完整 URL 或前缀。
tabIdNo目标标签页 ID。省略时使用当前活跃标签页。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

没有提供注解,因此描述需要承担全部行为说明负担。动词“获取”正确暗示了安全的只读操作,但这并未被明确说明,而且描述没有说明返回的状态包含哪些方面(URL、标题、加载状态等)。对于这个简单工具,整体上可以接受,但内容单薄。

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?

一个紧凑的句子,没有任何多余措辞,并且提前说明了默认作用域。它简洁得比较合理,但在简洁的同时过于单薄。

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?

对于简单、无参数风险的工具来说,已经够用,而且模式已完整说明输入。由于没有输出模式,描述本应说明“完整状态”返回什么,但并未说明,因此调用方无法在不调用该工具的情况下预知响应结构。

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?

模式覆盖率已达 100%,两个参数都已在模式中完整说明,包括“省略 tabId 时 → 当前活跃标签页”的默认行为。描述重复了该默认行为,但没有补充关于 URL 前缀匹配如何工作的额外信息;按照规则,3 分是合适的基线分。

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?

使用具体动词“获取”和具体资源“目标标签页的完整状态信息”,并说明了默认作用域(当前活跃标签页)。它与 list_tabs 或 dom_snapshot 的区别是隐含的,但并未明确说明,而且“完整状态”具体指什么也留待读者理解。

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?

唯一的使用指引是默认行为——若省略目标,则使用当前活跃标签页。对于读取标签页状态与 dom_snapshot、list_tabs 或 query_dom 之间的选择,既没有给出何时使用的指引,也没有说明何时不应使用。

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