Skip to main content
Glama

generate_puppeteer_test

Generate a Puppeteer + Jest test: smoke checks (status, title, page errors, failed requests) plus your steps as real code; optional screenshots

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "testName": "<testName>",
      "url": "<url>"
    },
    "name": "generate_puppeteer_test"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes
actionsNoSteps: actions goto /path · click <sel> · fill <sel> <value> · select <sel> <value> · check <sel> · hover <sel> · press <key> · wait <sel>; assertions visible <sel> · hidden <sel> · text <sel> <text> · url <part> · title <text> · count <sel> <n> · value <sel> <value>
testNameYes
assertionsNo
screenshotsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / actions / description
      Added value: +"Steps: actions goto /path · click <sel> · fill <sel> <value> · select <sel> <value> · check <sel> · hover <sel> · press <key> · wait <sel>; assertions visible <sel> · hidden <sel> · text <sel> <text> · url <part> · title <text> · count <sel> <n> · value <sel> <value>"
    • addedInput schema / properties / assertions
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  2. First observed

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations and no output schema, the description carries the full burden of behavioral disclosure. It mentions included smoke checks and optional screenshots, but does not say whether generated code is returned or written to a file, what happens on overwrite, what dependencies are assumed, or how errors are handled.

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 a single front-loaded sentence with little wasted wording. However, it compresses multiple ideas into one long clause and leaves some phrases such as 'your steps as real code' vague.

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

Completeness2/5

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

For a code-generation tool with five parameters, no annotations, and no output schema, the description is incomplete. It does not explain the generated artifact, file-writing behavior, return value, or enough parameter detail to call the tool confidently.

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

Parameters2/5

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

Schema description coverage is only 20%, so the description should compensate for undocumented parameters. It touches on 'your steps' and 'optional screenshots', but does not explain testName, url, or the separate assertions array, leaving most parameters without added semantic guidance.

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 and resource: 'Generate a Puppeteer + Jest test'. Naming Puppeteer + Jest distinguishes it from generic Jest and Playwright/browser automation siblings. It also specifies the generated contents as smoke checks plus user steps.

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

Usage Guidelines2/5

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

The description explains what is generated but gives no explicit when-to-use guidance, exclusions, or alternatives such as when to choose this over generate_playwright_test, generate_cypress_test, or generate_jest_test. The intended usage is only implied by the technology name.

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.