Skip to main content
Glama

Find tests

find_tests
Read-onlyIdempotent

Lists and filters a project's tests from source files without running them, revealing skip reasons, tags, .only usage, and tests affected by changed files.

Instructions

Lists a project's tests that match filters, read from the test files without running them: each with its id, full name, file and line, state, skip reason and condition, and tags by default. Use it for questions such as which tests are skipped and why, which tests carry @smoke, where a .only was left in, or which tests a change can affect (related, the changed files); use test_summary for counts and get_tests for every key of a few ids. projects keeps the tests one of the named projects runs, after each project's grep, leaving out tests whose projects the scan cannot tell. Filters combine with AND; a list matches any of its values. fields picks other keys of the test records (id is always there). Answers are paged: follow nextCursor, or narrow the filters. Example: {"states": ["skip"], "withoutReason": true}.

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": "find_tests"
  }
}

Input Schema

NameRequiredDescriptionDefault
grepNoKeeps tests whose fullName (describe titles and title joined with " > ") matches this regular expression, ignoring case.
onlyNotrue keeps tests that use .only, or are in a describe that does.
tagsNoKeeps tests with one of these tags, written as in the titles, such as "@smoke".
limitNoThe most items to return.
cursorNonextCursor from the previous answer, for the next page. Keep the other arguments the same.
fieldsNoKeys of each test record to return, besides id. Default: fullName, relativeFilePath, lineStart, state, reason, condition, tags.
statesNoKeeps tests in one of these states.
relatedNoChanged files, relative to the project root as `git diff --name-only` writes them, such as ["pages/order-ticket.ts"]. Keeps tests that list a changed dependency, match a changed file through dependencyGlobs (including new or deleted files), or have hasUnfollowedDependencies.
patternsNoGlobs of the test files, relative to `directory`, such as ["tests/**/*.spec.ts"]. Default: the ones the server was started with, or without them the files the configs in `directory` and below it run.
projectsNoKeeps tests that one of these projects runs, named as in the configs test_summary lists.
directoryNoA folder inside the project to scan, relative to its root, such as "packages/web". Default: the root.
frameworkNoThe test runner. Default: the one the server was started with, otherwise the one the project in `directory` uses.
expandCasesNoLists each case of a .each or .for table and each pass of a loop as its own test, with the name the runner gives it and caseIndex, as the runner registers them. Ids differ from those without it, so pass the same value to get_tests. Default: false, one test per declaration with caseCount.
withoutReasonNotrue keeps non-active tests without a reason, including expected failures; excludes notLoaded.

Output Schema

NameRequiredDescriptionDefault
hintYes
testsYesOne page of matching tests, in file and line order.
totalYesAll matching items, on every page.
frameworkYes
nextCursorYes
scanErrorsYesProblems of level error in the scan, which may leave tests out of the answer.
frameworkVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.11.0
    • changedInput schema / properties / fields / items / enum
      Previous value: -[
      -  "id",
      -  "bodyHash",
      -  "dependencyHash",
      -  "dependencies",
      -  "hasUnfollowedDependencies",
      -  "unfollowedDependencies",
      -  "suiteId",
      -  "parentTestId",
      -  "suitePath",
      -  "relativeFilePath",
      -  "fileName",
      -  "lineStart",
      -  "lineEnd",
      -  "columnStart",
      -  "columnEnd",
      -  "declaredAt",
      -  "title",
      -  "titleWithoutTags",
      -  "hasDynamicTitle",
      -  "fullName",
      -  "isTypeTest",
      -  "state",
      -  "isActive",
      -  "isSkipped",
      -  "isFixme",
      -  "isTodo",
      -  "isExpectedToFail",
      -  "isNotLoaded",
      -  "isOnly",
      -  "isConditional",
      -  "condition",
      -  "reason",
      -  "hasDynamicReason",
      -  "stateSource",
      -  "stateLine",
      -  "isParallel",
      -  "isSerial",
      -  "tags",
      -  "annotations",
      -  "comments",
      -  "locks",
      -  "meta",
      -  "hooks",
      -  "timeout",
      -  "isSlow",
      -  "slowCondition",
      -  "retries",
      -  "retryDelay",
      -  "retryCondition",
      -  "repeats",
      -  "timeoutSource",
      -  "retriesSource",
      -  "repeatsSource",
      -  "timeoutConfigText",
      -  "retriesConfigText",
      -  "repeatsConfigText",
      -  "fixtures",
      -  "expectCount",
      -  "expectedAssertions",
      -  "expectsAssertions",
      -  "hasEmptyBody",
      -  "steps",
      -  "isBenchmark",
      -  "isParameterized",
      -  "caseCount",
      -  "caseIndex",
      -  "isInLoop",
      -  "isInCondition",
      -  "isInFunction",
      -  "projects"
      -]New value: +[
      +  "id",
      +  "bodyHash",
      +  "dependencyHash",
      +  "dependencies",
      +  "hasUnfollowedDependencies",
      +  "dependencyGlobs",
      +  "unfollowedDependencies",
      +  "suiteId",
      +  "parentTestId",
      +  "suitePath",
      +  "relativeFilePath",
      +  "fileName",
      +  "lineStart",
      +  "lineEnd",
      +  "columnStart",
      +  "columnEnd",
      +  "declaredAt",
      +  "title",
      +  "titleWithoutTags",
      +  "hasDynamicTitle",
      +  "fullName",
      +  "isTypeTest",
      +  "state",
      +  "isActive",
      +  "isSkipped",
      +  "isFixme",
      +  "isTodo",
      +  "isExpectedToFail",
      +  "isNotLoaded",
      +  "isOnly",
      +  "isConditional",
      +  "condition",
      +  "reason",
      +  "hasDynamicReason",
      +  "stateSource",
      +  "stateLine",
      +  "isParallel",
      +  "isSerial",
      +  "tags",
      +  "annotations",
      +  "comments",
      +  "locks",
      +  "meta",
      +  "hooks",
      +  "timeout",
      +  "isSlow",
      +  "slowCondition",
      +  "retries",
      +  "retryDelay",
      +  "retryCondition",
      +  "repeats",
      +  "timeoutSource",
      +  "retriesSource",
      +  "repeatsSource",
      +  "timeoutConfigText",
      +  "retriesConfigText",
      +  "repeatsConfigText",
      +  "fixtures",
      +  "expectCount",
      +  "expectedAssertions",
      +  "expectsAssertions",
      +  "hasEmptyBody",
      +  "steps",
      +  "isBenchmark",
      +  "isParameterized",
      +  "caseCount",
      +  "caseIndex",
      +  "isInLoop",
      +  "isInCondition",
      +  "isInFunction",
      +  "projects"
      +]
    • changedInput schema / properties / related / description
      Previous value: -"Changed files, relative to the project root as `git diff --name-only` writes them, such as [\"pages/order-ticket.ts\"]. Keeps the tests a change to one of them can affect: those whose dependencies include it, and those that reach code the scan can't follow (hasUnfollowedDependencies)."New value: +"Changed files, relative to the project root as `git diff --name-only` writes them, such as [\"pages/order-ticket.ts\"]. Keeps tests that list a changed dependency, match a changed file through dependencyGlobs (including new or deleted files), or have hasUnfollowedDependencies."
    • addedOutput schema / properties / tests / items / properties / dependencyGlobs
      Added value: +{
      +  "description": "Root-relative Vite module patterns, grouped by call. Within each group a leading ! excludes matching paths.",
      +  "items": {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  "type": "array"
      +}
  2. Changed3 schema fields changedv0.10.0
    • changedInput schema / properties / fields / items / enum
      Previous value: -[
      -  "id",
      -  "bodyHash",
      -  "dependencyHash",
      -  "dependencies",
      -  "hasUnfollowedDependencies",
      -  "suiteId",
      -  "parentTestId",
      -  "suitePath",
      -  "relativeFilePath",
      -  "fileName",
      -  "lineStart",
      -  "lineEnd",
      -  "columnStart",
      -  "columnEnd",
      -  "declaredAt",
      -  "title",
      -  "titleWithoutTags",
      -  "hasDynamicTitle",
      -  "fullName",
      -  "isTypeTest",
      -  "state",
      -  "isActive",
      -  "isSkipped",
      -  "isFixme",
      -  "isTodo",
      -  "isExpectedToFail",
      -  "isNotLoaded",
      -  "isOnly",
      -  "isConditional",
      -  "condition",
      -  "reason",
      -  "hasDynamicReason",
      -  "stateSource",
      -  "stateLine",
      -  "isParallel",
      -  "isSerial",
      -  "tags",
      -  "annotations",
      -  "comments",
      -  "locks",
      -  "meta",
      -  "hooks",
      -  "timeout",
      -  "isSlow",
      -  "slowCondition",
      -  "retries",
      -  "retryDelay",
      -  "retryCondition",
      -  "repeats",
      -  "timeoutSource",
      -  "retriesSource",
      -  "repeatsSource",
      -  "timeoutConfigText",
      -  "retriesConfigText",
      -  "repeatsConfigText",
      -  "fixtures",
      -  "expectCount",
      -  "expectedAssertions",
      -  "expectsAssertions",
      -  "hasEmptyBody",
      -  "steps",
      -  "isBenchmark",
      -  "isParameterized",
      -  "caseCount",
      -  "caseIndex",
      -  "isInLoop",
      -  "isInCondition",
      -  "isInFunction",
      -  "projects"
      -]New value: +[
      +  "id",
      +  "bodyHash",
      +  "dependencyHash",
      +  "dependencies",
      +  "hasUnfollowedDependencies",
      +  "unfollowedDependencies",
      +  "suiteId",
      +  "parentTestId",
      +  "suitePath",
      +  "relativeFilePath",
      +  "fileName",
      +  "lineStart",
      +  "lineEnd",
      +  "columnStart",
      +  "columnEnd",
      +  "declaredAt",
      +  "title",
      +  "titleWithoutTags",
      +  "hasDynamicTitle",
      +  "fullName",
      +  "isTypeTest",
      +  "state",
      +  "isActive",
      +  "isSkipped",
      +  "isFixme",
      +  "isTodo",
      +  "isExpectedToFail",
      +  "isNotLoaded",
      +  "isOnly",
      +  "isConditional",
      +  "condition",
      +  "reason",
      +  "hasDynamicReason",
      +  "stateSource",
      +  "stateLine",
      +  "isParallel",
      +  "isSerial",
      +  "tags",
      +  "annotations",
      +  "comments",
      +  "locks",
      +  "meta",
      +  "hooks",
      +  "timeout",
      +  "isSlow",
      +  "slowCondition",
      +  "retries",
      +  "retryDelay",
      +  "retryCondition",
      +  "repeats",
      +  "timeoutSource",
      +  "retriesSource",
      +  "repeatsSource",
      +  "timeoutConfigText",
      +  "retriesConfigText",
      +  "repeatsConfigText",
      +  "fixtures",
      +  "expectCount",
      +  "expectedAssertions",
      +  "expectsAssertions",
      +  "hasEmptyBody",
      +  "steps",
      +  "isBenchmark",
      +  "isParameterized",
      +  "caseCount",
      +  "caseIndex",
      +  "isInLoop",
      +  "isInCondition",
      +  "isInFunction",
      +  "projects"
      +]
    • changedOutput schema / properties / tests / items / properties / bodyHash / description
      Previous value: -"Hash of the test body, ignoring whitespace and comments; null when the test has no body."New value: +"Hash of the test body, ignoring whitespace and comments: the test function, one passed by name, or the one a wrapper call receives; null when the test has none of these."
    • addedOutput schema / properties / tests / items / properties / unfollowedDependencies
      Added value: +{
      +  "description": "Where the test reaches what couldn't be followed: the file and line of each place, as `support/venues.ts:2`, sorted; empty when `hasUnfollowedDependencies` is false. A `dependency-not-followed` warning at the place says what it is.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  3. Changed2 schema fields changedv0.9.1
    • addedOutput schema / properties / tests / items / properties / isActive / description
      Added value: +"True only for state active; false does not establish that the test never executes."
    • changedOutput schema / properties / tests / items / properties / retries / description
      Previous value: -"How many times the runner retries the test when it fails; null when the file sets none."New value: +"Effective retry count from the test, suite, file or config; null when absent or unknown. See retriesSource."
  4. Changed4 schema fields changedv0.9.0
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / withoutReason / description
      Previous value: -"true keeps tests that don't run and give no reason."New value: +"true keeps non-active tests without a reason, including expected failures; excludes notLoaded."
    • changedOutput schema / properties / tests / items / properties / isNotLoaded / description
      Previous value: -"The runner refuses to load the file; a diagnostic at `stateLine` says why."New value: +"The runner did not load this test, possibly because its describe failed; a diagnostic at `stateLine` says why."
    • changedOutput schema / properties / tests / items / properties / isOnly / description
      Previous value: -"The test or a describe around it uses `.only`."New value: +"The test is selected by a `.only`, following the runner's focus rules."
  5. Changed11 schema fields changedv0.7.0
    • addedInput schema / properties / expandCases
      Added value: +{
      +  "description": "Lists each case of a .each or .for table and each pass of a loop as its own test, with the name the runner gives it and caseIndex, as the runner registers them. Ids differ from those without it, so pass the same value to get_tests. Default: false, one test per declaration with caseCount.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / fields / items / enum
      Previous value: -[
      -  "id",
      -  "bodyHash",
      -  "dependencyHash",
      -  "dependencies",
      -  "hasUnfollowedDependencies",
      -  "suiteId",
      -  "suitePath",
      -  "relativeFilePath",
      -  "fileName",
      -  "lineStart",
      -  "lineEnd",
      -  "columnStart",
      -  "columnEnd",
      -  "declaredAt",
      -  "title",
      -  "titleWithoutTags",
      -  "hasDynamicTitle",
      -  "fullName",
      -  "isTypeTest",
      -  "state",
      -  "isActive",
      -  "isSkipped",
      -  "isFixme",
      -  "isTodo",
      -  "isExpectedToFail",
      -  "isNotLoaded",
      -  "isOnly",
      -  "isConditional",
      -  "condition",
      -  "reason",
      -  "hasDynamicReason",
      -  "stateSource",
      -  "stateLine",
      -  "isParallel",
      -  "isSerial",
      -  "tags",
      -  "annotations",
      -  "comments",
      -  "locks",
      -  "meta",
      -  "hooks",
      -  "timeout",
      -  "isSlow",
      -  "slowCondition",
      -  "retries",
      -  "retryDelay",
      -  "retryCondition",
      -  "repeats",
      -  "timeoutSource",
      -  "retriesSource",
      -  "repeatsSource",
      -  "timeoutConfigText",
      -  "retriesConfigText",
      -  "repeatsConfigText",
      -  "fixtures",
      -  "expectCount",
      -  "expectedAssertions",
      -  "expectsAssertions",
      -  "hasEmptyBody",
      -  "steps",
      -  "isBenchmark",
      -  "isParameterized",
      -  "caseCount",
      -  "isInLoop",
      -  "isInCondition",
      -  "isInFunction",
      -  "projects"
      -]New value: +[
      +  "id",
      +  "bodyHash",
      +  "dependencyHash",
      +  "dependencies",
      +  "hasUnfollowedDependencies",
      +  "suiteId",
      +  "parentTestId",
      +  "suitePath",
      +  "relativeFilePath",
      +  "fileName",
      +  "lineStart",
      +  "lineEnd",
      +  "columnStart",
      +  "columnEnd",
      +  "declaredAt",
      +  "title",
      +  "titleWithoutTags",
      +  "hasDynamicTitle",
      +  "fullName",
      +  "isTypeTest",
      +  "state",
      +  "isActive",
      +  "isSkipped",
      +  "isFixme",
      +  "isTodo",
      +  "isExpectedToFail",
      +  "isNotLoaded",
      +  "isOnly",
      +  "isConditional",
      +  "condition",
      +  "reason",
      +  "hasDynamicReason",
      +  "stateSource",
      +  "stateLine",
      +  "isParallel",
      +  "isSerial",
      +  "tags",
      +  "annotations",
      +  "comments",
      +  "locks",
      +  "meta",
      +  "hooks",
      +  "timeout",
      +  "isSlow",
      +  "slowCondition",
      +  "retries",
      +  "retryDelay",
      +  "retryCondition",
      +  "repeats",
      +  "timeoutSource",
      +  "retriesSource",
      +  "repeatsSource",
      +  "timeoutConfigText",
      +  "retriesConfigText",
      +  "repeatsConfigText",
      +  "fixtures",
      +  "expectCount",
      +  "expectedAssertions",
      +  "expectsAssertions",
      +  "hasEmptyBody",
      +  "steps",
      +  "isBenchmark",
      +  "isParameterized",
      +  "caseCount",
      +  "caseIndex",
      +  "isInLoop",
      +  "isInCondition",
      +  "isInFunction",
      +  "projects"
      +]
    • changedInput schema / properties / framework / description
      Previous value: -"The test runner. Default: the one the server was started with."New value: +"The test runner. Default: the one the server was started with, otherwise the one the project in `directory` uses."
    • changedInput schema / properties / framework / enum
      Previous value: -[
      -  "playwright",
      -  "vitest"
      -]New value: +[
      +  "playwright",
      +  "vitest",
      +  "jest",
      +  "mocha",
      +  "jasmine",
      +  "cypress",
      +  "webdriverio",
      +  "node",
      +  "bun"
      +]
    • changedOutput schema / definitions / Framework / anyOf
      Previous value: -[
      -  {
      -    "enum": [
      -      "playwright",
      -      "vitest"
      -    ],
      -    "type": "string"
      -  },
      -  {
      -    "type": "string"
      -  }
      -]New value: +[
      +  {
      +    "enum": [
      +      "playwright",
      +      "vitest",
      +      "jest",
      +      "mocha",
      +      "jasmine",
      +      "cypress",
      +      "webdriverio",
      +      "node",
      +      "bun"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "string"
      +  }
      +]
    • changedOutput schema / properties / tests / items / properties / caseCount / description
      Previous value: -"How many times the runner repeats the test: the cases of its own table times those of each describe table around it. Null when a table is not written out in the file, or the test is not parameterized."New value: +"How many times the runner repeats the test: the cases of its own table times those of each describe table and the passes of each loop around it. Null when the scan can't work out a table or a loop's values, or the test is neither parameterized nor in a loop."
    • addedOutput schema / properties / tests / items / properties / caseIndex
      Added value: +{
      +  "anyOf": [
      +    {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "With `expandCases`, which case of its own table, or pass of the innermost loop around it inside its describe, the test is, from 0, as Vitest's `%#` counts; null without `expandCases`, or when the test isn't one of several. The case of a describe table or loop around the describe is the describe's `caseIndex`."
      +}
    • addedOutput schema / properties / tests / items / properties / parentTestId
      Added value: +{
      +  "anyOf": [
      +    {
      +      "pattern": "^[0-9a-f]{16}$",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The test whose body declares this one as a subtest, which `node:test` runs while it runs that test; null for every other test."
      +}
    • changedOutput schema / properties / tests / items / properties / repeats / description
      Previous value: -"How many times the runner runs the test again after the first run: Vitest's `repeats`, or Playwright's `repeatEach` from the config less one."New value: +"How many times the runner runs the test again after the first run: Vitest's or Bun's `repeats`, or Playwright's `repeatEach` from the config less one."
    • changedOutput schema / properties / tests / items / properties / retryDelay / description
      Previous value: -"Vitest only: milliseconds between retries, from the `retry` object (4.1)."New value: +"Milliseconds between retries: Vitest's from the `retry` object (4.1), Jest's from `waitBeforeRetry` of `jest.retryTimes()` (30.0); null otherwise."
    • changedOutput schema / properties / tests / items / properties / suitePath / description
      Previous value: -"Titles of the describes around the test, outermost first."New value: +"Titles of the describes around the test, and of the tests a subtest is declared in, outermost first."
  6. Changed19 schema fields changedv0.4.1
    • changedInput schema / properties / fields / items / enum
      Previous value: -[
      -  "id",
      -  "bodyHash",
      -  "suiteId",
      -  "suitePath",
      -  "relativeFilePath",
      -  "fileName",
      -  "lineStart",
      -  "lineEnd",
      -  "columnStart",
      -  "columnEnd",
      -  "declaredAt",
      -  "title",
      -  "titleWithoutTags",
      -  "hasDynamicTitle",
      -  "fullName",
      -  "isTypeTest",
      -  "state",
      -  "isActive",
      -  "isSkipped",
      -  "isFixme",
      -  "isTodo",
      -  "isExpectedToFail",
      -  "isNotLoaded",
      -  "isOnly",
      -  "isConditional",
      -  "condition",
      -  "reason",
      -  "hasDynamicReason",
      -  "stateSource",
      -  "stateLine",
      -  "isParallel",
      -  "isSerial",
      -  "tags",
      -  "annotations",
      -  "comments",
      -  "locks",
      -  "meta",
      -  "hooks",
      -  "timeout",
      -  "isSlow",
      -  "slowCondition",
      -  "retries",
      -  "retryDelay",
      -  "retryCondition",
      -  "repeats",
      -  "fixtures",
      -  "expectCount",
      -  "expectedAssertions",
      -  "expectsAssertions",
      -  "hasEmptyBody",
      -  "steps",
      -  "isBenchmark",
      -  "isParameterized",
      -  "caseCount",
      -  "isInLoop",
      -  "isInCondition",
      -  "isInFunction"
      -]New value: +[
      +  "id",
      +  "bodyHash",
      +  "dependencyHash",
      +  "dependencies",
      +  "hasUnfollowedDependencies",
      +  "suiteId",
      +  "suitePath",
      +  "relativeFilePath",
      +  "fileName",
      +  "lineStart",
      +  "lineEnd",
      +  "columnStart",
      +  "columnEnd",
      +  "declaredAt",
      +  "title",
      +  "titleWithoutTags",
      +  "hasDynamicTitle",
      +  "fullName",
      +  "isTypeTest",
      +  "state",
      +  "isActive",
      +  "isSkipped",
      +  "isFixme",
      +  "isTodo",
      +  "isExpectedToFail",
      +  "isNotLoaded",
      +  "isOnly",
      +  "isConditional",
      +  "condition",
      +  "reason",
      +  "hasDynamicReason",
      +  "stateSource",
      +  "stateLine",
      +  "isParallel",
      +  "isSerial",
      +  "tags",
      +  "annotations",
      +  "comments",
      +  "locks",
      +  "meta",
      +  "hooks",
      +  "timeout",
      +  "isSlow",
      +  "slowCondition",
      +  "retries",
      +  "retryDelay",
      +  "retryCondition",
      +  "repeats",
      +  "timeoutSource",
      +  "retriesSource",
      +  "repeatsSource",
      +  "timeoutConfigText",
      +  "retriesConfigText",
      +  "repeatsConfigText",
      +  "fixtures",
      +  "expectCount",
      +  "expectedAssertions",
      +  "expectsAssertions",
      +  "hasEmptyBody",
      +  "steps",
      +  "isBenchmark",
      +  "isParameterized",
      +  "caseCount",
      +  "isInLoop",
      +  "isInCondition",
      +  "isInFunction",
      +  "projects"
      +]
    • changedInput schema / properties / patterns / description
      Previous value: -"Globs of the test files, relative to `directory`, such as [\"tests/**/*.spec.ts\"]. Default: the ones the server was started with."New value: +"Globs of the test files, relative to `directory`, such as [\"tests/**/*.spec.ts\"]. Default: the ones the server was started with, or without them the files the configs in `directory` and below it run."
    • addedInput schema / properties / projects
      Added value: +{
      +  "description": "Keeps tests that one of these projects runs, named as in the configs test_summary lists.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "minItems": 1,
      +  "type": "array"
      +}
    • addedInput schema / properties / related
      Added value: +{
      +  "description": "Changed files, relative to the project root as `git diff --name-only` writes them, such as [\"pages/order-ticket.ts\"]. Keeps the tests a change to one of them can affect: those whose dependencies include it, and those that reach code the scan can't follow (hasUnfollowedDependencies).",
      +  "items": {
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / definitions / SettingSource
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "test",
      +        "suite",
      +        "file",
      +        "config"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "string"
      +    }
      +  ],
      +  "description": "Where a test's run setting comes from: the test, a describe around it, the file, or the config its file uses. Other values may be added in later releases."
      +}
    • changedOutput schema / definitions / StateSource / anyOf
      Previous value: -[
      -  {
      -    "enum": [
      -      "test",
      -      "suite",
      -      "file"
      -    ],
      -    "type": "string"
      -  },
      -  {
      -    "type": "string"
      -  }
      -]New value: +[
      +  {
      +    "enum": [
      +      "test",
      +      "suite",
      +      "file",
      +      "config"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "string"
      +  }
      +]
    • changedOutput schema / definitions / StateSource / description
      Previous value: -"Where a test's state is set: on the test, on a describe around it, or at file level. Other values may be added in later releases."New value: +"Where a test's state is set: on the test, on a describe around it, at file level, or by a Vitest tag the config defines. Other values may be added in later releases."
    • addedOutput schema / properties / tests / items / properties / dependencies
      Added value: +{
      +  "description": "The files that went into `dependencyHash`, the test's own included, sorted, with `/` separators.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / tests / items / properties / dependencyHash
      Added value: +{
      +  "description": "Hash of everything the test runs in the project: its call, the hooks, options and code of the file and of every describe around it, and the functions, classes, constants and modules these use, followed through imports. Ignores whitespace and comments. Installed packages are not in it.",
      +  "pattern": "^[0-9a-f]{16}$",
      +  "type": "string"
      +}
    • addedOutput schema / properties / tests / items / properties / hasUnfollowedDependencies
      Added value: +{
      +  "description": "Something the test reaches couldn't be followed, so a change there doesn't change `dependencyHash`.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / tests / items / properties / projects
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Names of the projects that run the test, of the config its file uses, after each project's files and Playwright's `grep` and `grepInvert`. `[]` when no project runs it; null when there is no config, or the scan can't tell."
      +}
    • changedOutput schema / properties / tests / items / properties / repeats / description
      Previous value: -"Vitest only: how many times the runner runs the test again after the first run."New value: +"How many times the runner runs the test again after the first run: Vitest's `repeats`, or Playwright's `repeatEach` from the config less one."
    • addedOutput schema / properties / tests / items / properties / repeatsConfigText
      Added value: +{
      +  "description": "The config's source text for `repeats`, Playwright's `repeatEach`, read as `timeoutConfigText` is.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / tests / items / properties / repeatsSource
      Added value: +{
      +  "anyOf": [
      +    {
      +      "$ref": "#/definitions/SettingSource"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Where `repeats` comes from, read as `timeoutSource` is."
      +}
    • addedOutput schema / properties / tests / items / properties / retriesConfigText
      Added value: +{
      +  "description": "The config's source text for `retries`, read as `timeoutConfigText` is.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / tests / items / properties / retriesSource
      Added value: +{
      +  "anyOf": [
      +    {
      +      "$ref": "#/definitions/SettingSource"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Where `retries`, `retryDelay` and `retryCondition` come from, read as `timeoutSource` is."
      +}
    • changedOutput schema / properties / tests / items / properties / timeout / description
      Previous value: -"In milliseconds: the last `test.setTimeout()` in the body or a `beforeEach`, otherwise the nearest describe or file that sets one. Null when the file sets none, so the config's timeout applies."New value: +"In milliseconds: the last `test.setTimeout()` in the body or a `beforeEach`, otherwise the nearest describe or file that sets one, otherwise the config. Null when none sets it, so the runner's default applies."
    • addedOutput schema / properties / tests / items / properties / timeoutConfigText
      Added value: +{
      +  "description": "The config's source text for `timeout` when the config sets it under a condition, as in `process.env.CI ? 60_000 : 30_000`, shortened when long; null otherwise.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / tests / items / properties / timeoutSource
      Added value: +{
      +  "anyOf": [
      +    {
      +      "$ref": "#/definitions/SettingSource"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Where `timeout` comes from; null when nothing sets it. A null `timeout` from the config means the config sets it, but its projects set different values or the value depends on a condition, as in `process.env.CI ? 2 : 0`."
      +}
  7. Changed18 schema fields changedv0.2.0
    • changedInput schema / properties / fields / items / enum
      Previous value: -[
      -  "id",
      -  "bodyHash",
      -  "suiteId",
      -  "suitePath",
      -  "relativeFilePath",
      -  "fileName",
      -  "lineStart",
      -  "lineEnd",
      -  "columnStart",
      -  "columnEnd",
      -  "declaredAt",
      -  "title",
      -  "titleWithoutTags",
      -  "hasDynamicTitle",
      -  "fullName",
      -  "isTypeTest",
      -  "state",
      -  "isActive",
      -  "isSkipped",
      -  "isFixme",
      -  "isTodo",
      -  "isExpectedToFail",
      -  "isNotLoaded",
      -  "isOnly",
      -  "isConditional",
      -  "condition",
      -  "reason",
      -  "hasDynamicReason",
      -  "stateSource",
      -  "stateLine",
      -  "isParallel",
      -  "isSerial",
      -  "tags",
      -  "annotations",
      -  "comments",
      -  "locks",
      -  "meta",
      -  "isParameterized",
      -  "caseCount",
      -  "isInLoop",
      -  "isInCondition",
      -  "isInFunction"
      -]New value: +[
      +  "id",
      +  "bodyHash",
      +  "suiteId",
      +  "suitePath",
      +  "relativeFilePath",
      +  "fileName",
      +  "lineStart",
      +  "lineEnd",
      +  "columnStart",
      +  "columnEnd",
      +  "declaredAt",
      +  "title",
      +  "titleWithoutTags",
      +  "hasDynamicTitle",
      +  "fullName",
      +  "isTypeTest",
      +  "state",
      +  "isActive",
      +  "isSkipped",
      +  "isFixme",
      +  "isTodo",
      +  "isExpectedToFail",
      +  "isNotLoaded",
      +  "isOnly",
      +  "isConditional",
      +  "condition",
      +  "reason",
      +  "hasDynamicReason",
      +  "stateSource",
      +  "stateLine",
      +  "isParallel",
      +  "isSerial",
      +  "tags",
      +  "annotations",
      +  "comments",
      +  "locks",
      +  "meta",
      +  "hooks",
      +  "timeout",
      +  "isSlow",
      +  "slowCondition",
      +  "retries",
      +  "retryDelay",
      +  "retryCondition",
      +  "repeats",
      +  "fixtures",
      +  "expectCount",
      +  "expectedAssertions",
      +  "expectsAssertions",
      +  "hasEmptyBody",
      +  "steps",
      +  "isBenchmark",
      +  "isParameterized",
      +  "caseCount",
      +  "isInLoop",
      +  "isInCondition",
      +  "isInFunction"
      +]
    • addedOutput schema / definitions / HookCounts
      Added value: +{
      +  "description": "How many hooks of each kind are registered, including by helper functions called there.",
      +  "properties": {
      +    "afterAll": {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "afterEach": {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "aroundAll": {
      +      "description": "Vitest only.",
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "aroundEach": {
      +      "description": "Vitest only.",
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "beforeAll": {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "beforeEach": {
      +      "minimum": 0,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "beforeAll",
      +    "beforeEach",
      +    "afterEach",
      +    "afterAll",
      +    "aroundEach",
      +    "aroundAll"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / definitions / Step
      Added value: +{
      +  "properties": {
      +    "depth": {
      +      "description": "0 for a step directly in the test, 1 for a step inside it, and so on.",
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "hasDynamicTitle": {
      +      "type": "boolean"
      +    },
      +    "isSkipped": {
      +      "description": "Declared with `test.step.skip()`.",
      +      "type": "boolean"
      +    },
      +    "lineStart": {
      +      "minimum": 1,
      +      "type": "integer"
      +    },
      +    "title": {
      +      "description": "The title, or its source text when it can't be worked out.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "title",
      +    "hasDynamicTitle",
      +    "lineStart",
      +    "depth",
      +    "isSkipped"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / tests / items / properties / expectCount
      Added value: +{
      +  "description": "Calls of `expect()`, `expect.soft()` and `expect.poll()` written in the body, each counted once.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / tests / items / properties / expectedAssertions
      Added value: +{
      +  "anyOf": [
      +    {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Vitest `expect.assertions(n)` in the body."
      +}
    • addedOutput schema / properties / tests / items / properties / expectsAssertions
      Added value: +{
      +  "description": "Vitest `expect.hasAssertions()` in the body.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / tests / items / properties / fixtures
      Added value: +{
      +  "description": "Names the test function takes from its context, then those of the `beforeEach`, `afterEach` and `aroundEach` hooks around it, once each. Vitest's own context keys, such as `expect` and `task`, are left out.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / tests / items / properties / hasEmptyBody
      Added value: +{
      +  "description": "The test function has no statements, comments aside.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / tests / items / properties / hooks
      Added value: +{
      +  "$ref": "#/definitions/HookCounts",
      +  "description": "Every hook that runs around the test: those of the file and of each describe around it."
      +}
    • addedOutput schema / properties / tests / items / properties / isBenchmark
      Added value: +{
      +  "description": "Vitest 5 benchmark: in a benchmark file, or using the `bench` fixture. Plain `vitest` doesn't run it.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / tests / items / properties / isSlow
      Added value: +{
      +  "description": "Playwright `test.slow()` applies: the runner triples the timeout.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / tests / items / properties / repeats
      Added value: +{
      +  "anyOf": [
      +    {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Vitest only: how many times the runner runs the test again after the first run."
      +}
    • addedOutput schema / properties / tests / items / properties / retries
      Added value: +{
      +  "anyOf": [
      +    {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "How many times the runner retries the test when it fails; null when the file sets none."
      +}
    • addedOutput schema / properties / tests / items / properties / retryCondition
      Added value: +{
      +  "description": "Vitest only: source text of the `retry` object's `condition`, a RegExp or a function.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / tests / items / properties / retryDelay
      Added value: +{
      +  "anyOf": [
      +    {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Vitest only: milliseconds between retries, from the `retry` object (4.1)."
      +}
    • addedOutput schema / properties / tests / items / properties / slowCondition
      Added value: +{
      +  "description": "Source text of the condition of the `test.slow()` that applies; null when unconditional or not slow.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / tests / items / properties / steps
      Added value: +{
      +  "description": "Playwright `test.step()` and `test.step.skip()` calls in the body, in source order.",
      +  "items": {
      +    "$ref": "#/definitions/Step"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / tests / items / properties / timeout
      Added value: +{
      +  "anyOf": [
      +    {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "In milliseconds: the last `test.setTimeout()` in the body or a `beforeEach`, otherwise the nearest describe or file that sets one. Null when the file sets none, so the config's timeout applies."
      +}
  8. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, not destructive, closed-world), so the description goes beyond: it discloses that tests are read statically without execution, that answers are paged with nextCursor or must be narrowed, that projects filtering occurs after each project's grep while omitting undeterminable projects, and that filter predicates combine with AND while list values match any.

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?

Front-loaded with purpose, then usage, alternatives, filter semantics, paging, and an example — every sentence carries information rather than filler. The prose is heavily compressed with nested parentheticals, which costs some readability for an otherwise well-ordered definition.

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?

For a 14-parameter, all-optional tool with rich annotations and an output schema, the description covers what the schema cannot: default returned keys, pagination protocol, filter logic, and the projects/scan limitation. Return value shapes are left to the output schema, so nothing an agent needs to call this correctly is missing.

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 the baseline is 3; the description earns extra by stating cross-parameter semantics the schema cannot express — AND combination across filters, any-of matching within a list, and that id is always returned regardless of fields. It also provides a worked example of states plus withoutReason, though it does not explain several other filters such as directory/framework interplay.

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 and resource ("Lists a project's tests that match filters") plus a crucial scope qualifier: read from the test files without running them. It also names the two sibling tools it is not (test_summary for counts, get_tests for every key of a few ids), so an agent can pick correctly without opening schemas.

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 concrete motivating questions (which tests are skipped and why, which carry @smoke, where a .only was left, which tests a change affects) and explicitly routes counting and full-record lookups to test_summary and get_tests. Both when-to-use and when-not-to-use are present.

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