Skip to main content
Glama
seleniumbase

SeleniumBase MCP

Official

assert_exact_text

Verify that an element's text exactly matches the expected value, ignoring leading/trailing whitespace, within a specified timeout. Raises an exception on mismatch for precise UI assertions.

Instructions

Assert that the text matches the element's text exactly (with leading/trailing whitespace automatically ignored) in the given timeout (seconds). If no selector given, then it defaults to "html" (CSS selector). If no timeout given (0 or None), then SeleniumBase uses 7 seconds. Raises an exception if the element isn't found or assertion fails.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes
timeoutNo
selectorNohtml

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations are provided, so the description must carry the behavioral burden. It discloses whitespace normalization, default selector, 7-second timeout fallback, and exception behavior on missing elements or assertion failures. It does not fully clarify whether the tool polls/waits or whether it only considers visible text, but the coverage is quite strong.

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 front-loaded with the core purpose and then efficiently covers defaults and failure semantics. Each sentence contributes useful information, with only minor redundancy around the timeout explanation.

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?

For a simple three-parameter assertion tool with an output schema, the description covers essential behavior, defaults, and error semantics. It is adequately complete even without explicit alternative routing, which is a minor rather than critical omission.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Given 0% schema description coverage, the description compensates fully: 'text' is the expected exact content, 'selector' is a CSS selector defaulting to 'html', and 'timeout' is in seconds with 0/None mapped to 7 seconds. Every parameter receives meaningful context beyond the raw schema.

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 states a specific verb ('assert') and resource ('element's text'), and clearly defines that the match must be exact. The qualifier 'exactly' differentiates it from looser text assertions such as assert_text, making its purpose immediately identifiable.

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 through its exact-match assertion purpose and provides default selector/timeout behavior, but it does not explicitly state when to choose this tool over alternatives like assert_text or wait_for_text. The selection criteria are left largely to inference.

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/seleniumbase/SeleniumBase'

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