Skip to main content
Glama

List Cypress specs

cypress_list_specs
Read-only

Lists Cypress spec files with their test counts by reading files statically, so nothing runs. Optionally include each test's full title and list every monorepo project's specs.

Instructions

List spec files with their test counts, read statically (nothing runs). titles: true adds each test's full title, the text testName matches. In a monorepo, lists every project's specs.

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

Input Schema

NameRequiredDescriptionDefault
titlesNoInclude test titles
patternNoGlob relative to the project root. Default: the project's specPattern
projectNoMonorepos: one project folder. Default: every project

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. Changed5 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"
    • changedInput schema / properties / pattern / description
      Previous value: -"Glob pattern to filter specs"New value: +"Glob relative to the project root. Default: the project's specPattern"
    • addedInput schema / properties / project
      Added value: +{
      +  "description": "Monorepos: one project folder. Default: every project",
      +  "type": "string"
      +}
    • addedInput schema / properties / titles
      Added value: +{
      +  "description": "Include test titles",
      +  "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": {
      +            "pattern": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "specs": {
      +              "items": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "file": {
      +                    "type": "string"
      +                  },
      +                  "tests": {
      +                    "type": "number"
      +                  },
      +                  "titles": {
      +                    "items": {
      +                      "type": "string"
      +                    },
      +                    "type": "array"
      +                  }
      +                },
      +                "required": [
      +                  "file",
      +                  "tests"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "total": {
      +              "description": "Number of specs",
      +              "type": "number"
      +            },
      +            "totalTests": {
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "pattern",
      +            "total",
      +            "totalTests",
      +            "specs"
      +          ],
      +          "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. Changed1 schema field changedv0.2.1
    • removedInput schema / additionalProperties
      Removed value: -false
  3. First observedv0.1.1

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description does add real behavioral context on top of that — static parsing with nothing executed, and monorepo-wide aggregation — but says nothing about cost, ordering, or limits on large trees.

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?

Three short sentences, front-loaded with the core action and the static-read guarantee before parameter nuance. The clause 'titles: true adds each test's full title, the text testName matches' is slightly compressed but every sentence carries information.

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?

With only three optional parameters, full schema coverage, and an output schema covering return values, the description supplies what's needed to invoke correctly. The only shortfall is the absence of explicit sibling routing against cypress_run and cypress_get_failure.

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 coverage is 100%, so all three parameters are already documented, establishing the baseline of 3. The description does add a little beyond the schema by tying `titles: true` to the text that `testName` matches and noting monorepo-wide listing, but it does not deepen `pattern` or `project` semantics beyond their schema text.

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?

The description gives a specific verb and resource ('List spec files with their test counts') and immediately scopes it as 'read statically (nothing runs)', which implicitly separates it from cypress_run. It never names a sibling outright, so routing relies on the reader inferring the contrast rather than being told explicitly.

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: the static/no-execution framing suggests 'use this to survey specs without running them', but there is no explicit when-to-use statement, no when-not-to-use, and no named alternative. An agent can infer the case but must do the work itself.

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