Skip to main content
Glama

browser_assert

Run standard assertions on browser pages to verify URL, text, element visibility, and error status, returning pass/fail details.

Instructions

对当前真实浏览器页面执行标准断言:URL、文本、元素可见/隐藏、本轮无错误。返回每条断言的通过/失败详情。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
timeoutNo读取页面文本的超时时间,默认 5000ms
noErrorsNo断言当前 checkpoint 后无统一错误
urlContainsNo断言当前 URL 包含该字符串
textContainsNo断言页面可见文本包含该内容
includeErrorsNo失败或输出时是否附带统一错误详情
selectorHiddenNo断言指定 CSS 选择器不可见
selectorVisibleNo断言指定 CSS 选择器可见
Behavior3/5

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

No annotations are provided, so the description bears the full burden. It states it operates on the current browser page and returns results, but does not explicitly disclose whether it is read-only or has side effects. For an assertion tool, this is minimally adequate.

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?

The description is a single sentence that effectively communicates the tool's purpose and return value. It is front-loaded and contains no superfluous information.

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 7 optional parameters covered by schema, and a simple assertion tool, the description summarizes the assertion types and return format adequately. It does not mention waiting or timeout behavior, but that is specified in the schema. Overall, it is sufficiently complete for its complexity.

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 100%, providing a baseline of 3. The description groups parameters into categories (URL, text, visibility, no errors) but adds no new information beyond what the schema already describes for each parameter.

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 performs standard assertions on the current browser page, covering URL, text, element visibility, and no errors. It returns pass/fail details, and is distinct from sibling tools like browser_click or browser_navigate.

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 usage for asserting page state but does not explicitly state when to use this tool versus alternatives. No exclusions or contextual 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