Skip to main content
Glama

generate_cypress_test

Generate a Cypress spec: smoke checks that hold on any site (status, title, uncaught errors, links) plus your steps as real commands; optional cy.session login

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_cypress_test"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes
authNo
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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field 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>"
  2. First observed

TDQS

B3.1/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It usefully discloses baseline behavior (smoke checks always emitted for status, title, uncaught errors, links) and the opt-in login path via cy.session, but says nothing about whether a file is written to disk, its path/naming, overwrite behavior, or what is returned.

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?

A single dense sentence, front-loaded with the deliverable and then the guarantees and options. Semicolon-packed but each clause earns its place; no filler.

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 5-parameter generator with no annotations and no output schema, the description should say what the caller gets back or where the spec lands, and how assertions relate to actions. Neither is covered, leaving meaningful gaps for an agent trying to invoke it correctly.

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 coverage is only 20%, so the description must compensate, and it partly does: 'your steps as real commands' clarifies the actions array and 'optional cy.session login' maps to auth. However, testName, url, and assertions are never explained, and the description does not clarify why a separate assertions array exists when the actions DSL already documents assertion verbs — a real ambiguity for the caller.

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+resource (generate a Cypress spec) and names the concrete content produced: universal smoke checks plus user steps as real Cypress commands. The Cypress-specific framing (cy.session) separates it from the Playwright/Puppeteer/Selenium siblings without needing to name them, though no explicit sibling differentiation is written.

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?

Implies when to reach for it (you have a URL and a list of steps and want a Cypress spec), and signals that the smoke checks are automatic so the caller need not request them. There is no explicit when-not guidance or named alternative among the many generate_*_test siblings.

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.