Skip to main content
Glama

Convert Playwright to k6

playwright_to_k6
Read-only

Convert Playwright API tests or page navigations to k6 load tests. Extracts HTTP calls and builds k6 equivalents.

Input Schema

NameRequiredDescriptionDefault
contextNoExplain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): "Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization."
test_typeNoTarget k6 test typeload
project_idNoProject to save converted script to
target_urlNoOverride target URL
playwright_codeYesPlaywright JavaScript/TypeScript test code

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior2/5

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

Annotations declare readOnlyHint=true, destructiveHint=false, openWorldHint=false, so safety is partially covered. The description adds the key mechanism ('extracts HTTP calls'), which hints the conversion is lossy for non-HTTP steps, but never says so outright, never states whether the converted script is returned, saved, or run, and never addresses conversion fidelity. Notably, the schema's project_id ('Project to save converted script to') implies persistence that readOnlyHint downplays.

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?

Two front-loaded sentences with no padding; the purpose arrives first and the mechanism second. Efficient, though the brevity veers into under-specification rather than being a model of compact completeness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Placeholder.

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 baseline is 3. The description adds nothing about the parameters themselves — not the target_url override, the test_type default, or the project-saving behavior — but the schema already carries that burden adequately.

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?

States a specific verb (Convert) and both source and target formats: Playwright API tests or page navigations → k6 load tests. The 'Extracts HTTP calls and builds k6 equivalents' clause clarifies the mechanism. It doesn't name-drop the lookalike siblings (gatling_to_k6, jmeter_to_k6, locust_to_k6, convert_qtml_to_playwright), though the source format makes it distinguishable in practice.

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?

Usage is only implied: an agent infers it should call this when it holds Playwright code. There is no explicit when-to-use/when-not, no statement of alternatives, and no mention that this is the right path versus k6_generate or k6_create_script for new scripts. The qualifier 'API tests or page navigations' is the one piece of scoping signal.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources