Skip to main content
Glama

assert_run

Execute Playwright end-to-end tests by running saved scenarios or ad-hoc markdown scripts, returning a run ID for async status monitoring.

Instructions

Execute a test scenario and return a run ID. Accepts either a saved scenario_id or ad-hoc markdown. Runs are async — use assert_status to poll for completion.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scenario_idNoID of a saved scenario to run.
markdownNoOptional. Run an ad-hoc scenario without saving it first.
project_idNoOptional. Associate an ad-hoc markdown run with a project.
request_idNoOptional. Client-generated idempotency key. Retrying with the same ID returns the existing run.
Behavior4/5

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

With no annotations provided, the description carries full burden and does well by disclosing key behavioral traits: the operation is async (not immediate), returns a run ID for tracking, and requires polling with assert_status for completion. It doesn't mention error handling, timeout behavior, or authentication requirements, but covers the essential execution model.

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 perfectly concise with three sentences that each earn their place: states the purpose, explains the input options, and provides critical usage guidance about async behavior. No wasted words, front-loaded with core functionality.

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 complexity (async execution with polling), no annotations, and no output schema, the description does well by explaining the execution model and relationship to assert_status. It could be more complete by mentioning what the run ID represents or error cases, but covers the essential context for proper tool selection and invocation.

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 description coverage is 100%, so the schema already documents all parameters thoroughly. The description adds minimal value beyond the schema by mentioning the scenario_id/markdown alternatives and the async nature, but doesn't provide additional semantic context about parameter interactions or usage patterns.

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 specific action ('Execute a test scenario'), the resource ('test scenario'), and the outcome ('return a run ID'). It distinguishes from siblings by specifying this tool initiates runs while assert_status polls for completion and assert_list/assert_generate handle other operations.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly provides when-to-use guidance: use this tool to start a test run, and use assert_status to poll for completion. It also distinguishes between using saved scenarios (scenario_id) vs. ad-hoc markdown, though it doesn't explicitly mention when to choose between these alternatives.

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/Pixel-Funnel/assert-click-mcp'

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