Skip to main content
Glama

Check the Cypress setup

cypress_doctor
Read-only

Checks Cypress config, install, specs, support file, and Cloud settings to diagnose why a test run cannot start. Starts Cypress once to load config unless quick mode checks files only.

Instructions

Check the Cypress setup: config file, Cypress install, specs, support file, failure context, Cloud settings. Starts Cypress once to load the config (about 15 s) unless quick is true. Use it when a run cannot start, not before every session.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "cypress_doctor"
  }
}

Input Schema

NameRequiredDescriptionDefault
quickNoSkip starting Cypress; check files and install only
projectNoMonorepos: the project folder to check

Output Schema

NameRequiredDescriptionDefault
okYesfalse when the tool could not do its job (not when tests fail)
dataYes
toolYes
runIdNo
summaryYes
nextActionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.5.2
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / project
      Added value: +{
      +  "description": "Monorepos: the project folder to check",
      +  "type": "string"
      +}
    • addedInput schema / properties / quick
      Added value: +{
      +  "description": "Skip starting Cypress; check files and install only",
      +  "type": "boolean"
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": false,
      +  "properties": {
      +    "data": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "checks": {
      +              "items": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "check": {
      +                    "type": "string"
      +                  },
      +                  "detail": {
      +                    "type": "string"
      +                  },
      +                  "status": {
      +                    "enum": [
      +                      "ok",
      +                      "warn",
      +                      "fail"
      +                    ],
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "check",
      +                  "status",
      +                  "detail"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "healthy": {
      +              "type": "boolean"
      +            },
      +            "launched": {
      +              "description": "Whether Cypress was started to check the config",
      +              "type": "boolean"
      +            }
      +          },
      +          "required": [
      +            "healthy",
      +            "launched",
      +            "checks"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "additionalProperties": {},
      +          "properties": {
      +            "code": {
      +              "type": "string"
      +            },
      +            "error": {
      +              "type": "string"
      +            },
      +            "suggestion": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "code",
      +            "error"
      +          ],
      +          "type": "object"
      +        }
      +      ]
      +    },
      +    "nextActions": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "ok": {
      +      "description": "false when the tool could not do its job (not when tests fail)",
      +      "type": "boolean"
      +    },
      +    "runId": {
      +      "type": "string"
      +    },
      +    "summary": {
      +      "type": "string"
      +    },
      +    "tool": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "ok",
      +    "tool",
      +    "summary",
      +    "data",
      +    "nextActions"
      +  ],
      +  "type": "object"
      +}
  2. First observedv0.1.1

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, and the description adds the non-obvious behavioral cost that it starts Cypress once to load config (~15 s) unless quick is true. That is genuine value beyond the structured fields, since an agent budgeting time would not learn it from annotations. It stops short of saying what happens when a check fails, though the presence of an output schema covers the report itself.

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?

Three short sentences, front-loaded with the purpose, then the cost caveat, then the usage rule. Every clause carries information: the check list, the timing, the quick escape hatch, and the when/when-not guidance.

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 read-only diagnostic tool with an output schema, the description covers what is checked, the runtime cost, and the selection rule, which is enough to call it correctly. The only unaddressed piece is failure behavior, which the output schema is positioned to carry.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3, but the description adds real meaning for 'quick' by explaining it skips the ~15 s Cypress startup and that the default path loads the config, which is more than the schema's terse 'Skip starting Cypress'. The 'project' parameter is left entirely to its schema description, so it is not fully compensated.

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?

States a specific verb ('Check') plus the resource ('Cypress setup') and then enumerates exactly what is inspected: config file, install, specs, support file, failure context, Cloud settings. That enumeration makes it clearly distinct from cypress_run, cypress_list_specs and cypress_get_failure without needing to open any schema.

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?

Gives both sides of the routing decision: 'Use it when a run cannot start' (the trigger condition) and 'not before every session' (an explicit exclusion). An agent knows both when to call it and when to skip it, which is rare.

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