Skip to main content
Glama

browser_diagnose

Identify root causes of browser errors by analyzing console, network, element, and JS execution states, returning a diagnostic report with root cause, confidence, suggested fixes, and affected elements.

Instructions

自动诊断浏览器错误根因。分析控制台错误、页面错误、网络错误、元素状态、JS执行状态,定位问题根源(如元素未加载、JS未执行、网络超时、权限不足等)。返回诊断报告含 rootCause、confidence、suggestedFixes、affectedElements。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
selectorNo目标元素选择器,诊断该元素相关的错误(可选,不传则诊断整个页面)
errorTypeNo聚焦诊断的错误类型:all(全部)、js(JS错误)、network(网络错误)、element(元素问题)、interaction(交互失败)all
includeStackTraceNo是否包含JS错误堆栈分析,默认true
Behavior3/5

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

No annotations are present, so the description carries full burden. It describes analysis of errors and return of a report, but does not disclose whether the tool is read-only, triggers side effects, or requires specific permissions. The behavioral disclosure is adequate but not exhaustive.

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 concise (two sentences) and front-loaded with the main purpose. It efficiently conveys the tool's action and output, though the first sentence is somewhat dense.

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 complexity (diagnostic with 3 parameters, no output schema), the description adequately covers the return structure and analysis scope. It lacks details on edge cases or interpretation of confidence, but is sufficient for agent use.

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?

All three parameters have schema descriptions (100% coverage). The description adds value by listing the return fields (rootCause, confidence, etc.), which goes beyond schema details and helps the agent understand diagnostic output.

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 tool diagnoses browser error root causes by analyzing various error types and returns a report with specific fields. It distinguishes from sibling tools like browser_errors_aggregate by focusing on root cause analysis.

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?

The description implies use for error diagnosis but does not explicitly state when to use this tool versus alternatives like browser_errors_aggregate or browser_network_detail. No when-not-to-use guidance is provided.

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/validpilot/ai-verify-mcp'

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