Skip to main content
Glama

Scan diagnostics

scan_diagnostics
Read-onlyIdempotent

Lists errors and warnings found while reading test files to show why tests are missing or not run, including parse failures, unresolved imports, undefined tags, and files no config runs.

Instructions

Lists the problems test-inventory found while reading the test files: level error means tests may be missing from the other answers (a file that failed to parse, an import it could not follow), or that the runner fails the file or the run (a Vitest tag the config does not define, a .only that forbidOnly fails); level warning means a value is missing or approximate (a title built at run time, a config value computed at run time, a file no config runs). They are about reading the code, not test failures. Use it when another tool reports scanErrors, or to check why a test is missing or notLoaded. Answers are paged: follow nextCursor. Example: {"levels": ["error"]}.

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

Input Schema

NameRequiredDescriptionDefault
pathNoKeeps problems in this file, or in the files under this folder, relative to `directory`.
codesNoKeeps problems with these codes.
limitNoThe most items to return.
cursorNonextCursor from the previous answer, for the next page. Keep the other arguments the same.
levelsNoKeeps problems of these levels.
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.
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.

Output Schema

NameRequiredDescriptionDefault
hintYes
totalYesAll matching items, on every page.
frameworkYes
nextCursorYes
diagnosticsYesOne page of problems, in file order.
frameworkVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.12.2
    • changedInput schema / properties / codes / items / enum
      Previous value: -[
      -  "unresolved-test-import",
      -  "parse-error",
      -  "read-error",
      -  "framework-mismatch",
      -  "unresolved-tag",
      -  "unresolved-annotation",
      -  "unresolved-cases",
      -  "cases-not-expanded",
      -  "test-in-loop",
      -  "dynamic-title",
      -  "duplicate-title",
      -  "duplicate-id",
      -  "internal-error",
      -  "invalid-chain",
      -  "skip-without-body",
      -  "test-without-body",
      -  "describe-not-called",
      -  "async-describe",
      -  "describe-throws",
      -  "nested-test",
      -  "tag-without-at",
      -  "removed-api",
      -  "invalid-fixture-argument",
      -  "only-in-skipped-describe",
      -  "config-may-change-state",
      -  "undefined-tag",
      -  "symlink-ignored",
      -  "invalid-import",
      -  "globals-not-enabled",
      -  "unknown-framework-version",
      -  "unsupported-framework-version",
      -  "local-test-object",
      -  "state-in-helper",
      -  "unresolved-option",
      -  "dynamic-reason",
      -  "no-files-matched",
      -  "unsupported-file",
      -  "approximate-framework-version",
      -  "test-in-function",
      -  "empty-title",
      -  "bench-outside-benchmark-file",
      -  "config-value-unknown",
      -  "file-not-run",
      -  "forbidden-only",
      -  "dependency-not-followed"
      -]New value: +[
      +  "unresolved-test-import",
      +  "parse-error",
      +  "read-error",
      +  "framework-mismatch",
      +  "unresolved-tag",
      +  "unresolved-annotation",
      +  "unresolved-cases",
      +  "cases-not-expanded",
      +  "test-in-loop",
      +  "dynamic-title",
      +  "duplicate-title",
      +  "duplicate-id",
      +  "internal-error",
      +  "invalid-hook",
      +  "invalid-chain",
      +  "skip-without-body",
      +  "test-without-body",
      +  "describe-not-called",
      +  "async-describe",
      +  "describe-throws",
      +  "nested-test",
      +  "tag-without-at",
      +  "removed-api",
      +  "invalid-fixture-argument",
      +  "only-in-skipped-describe",
      +  "config-may-change-state",
      +  "undefined-tag",
      +  "symlink-ignored",
      +  "invalid-import",
      +  "globals-not-enabled",
      +  "unknown-framework-version",
      +  "unsupported-framework-version",
      +  "local-test-object",
      +  "state-in-helper",
      +  "unresolved-option",
      +  "dynamic-reason",
      +  "no-files-matched",
      +  "unsupported-file",
      +  "approximate-framework-version",
      +  "test-in-function",
      +  "empty-title",
      +  "bench-outside-benchmark-file",
      +  "config-value-unknown",
      +  "file-not-run",
      +  "forbidden-only",
      +  "dependency-not-followed"
      +]
    • changedOutput schema / definitions / DiagnosticCode / anyOf
      Previous value: -[
      -  {
      -    "enum": [
      -      "unresolved-test-import",
      -      "parse-error",
      -      "read-error",
      -      "framework-mismatch",
      -      "unresolved-tag",
      -      "unresolved-annotation",
      -      "unresolved-cases",
      -      "cases-not-expanded",
      -      "test-in-loop",
      -      "dynamic-title",
      -      "duplicate-title",
      -      "duplicate-id",
      -      "internal-error",
      -      "invalid-chain",
      -      "skip-without-body",
      -      "test-without-body",
      -      "describe-not-called",
      -      "async-describe",
      -      "describe-throws",
      -      "nested-test",
      -      "tag-without-at",
      -      "removed-api",
      -      "invalid-fixture-argument",
      -      "only-in-skipped-describe",
      -      "config-may-change-state",
      -      "undefined-tag",
      -      "symlink-ignored",
      -      "invalid-import",
      -      "globals-not-enabled",
      -      "unknown-framework-version",
      -      "unsupported-framework-version",
      -      "local-test-object",
      -      "state-in-helper",
      -      "unresolved-option",
      -      "dynamic-reason",
      -      "no-files-matched",
      -      "unsupported-file",
      -      "approximate-framework-version",
      -      "test-in-function",
      -      "empty-title",
      -      "bench-outside-benchmark-file",
      -      "config-value-unknown",
      -      "file-not-run",
      -      "forbidden-only",
      -      "dependency-not-followed"
      -    ],
      -    "type": "string"
      -  },
      -  {
      -    "type": "string"
      -  }
      -]New value: +[
      +  {
      +    "enum": [
      +      "unresolved-test-import",
      +      "parse-error",
      +      "read-error",
      +      "framework-mismatch",
      +      "unresolved-tag",
      +      "unresolved-annotation",
      +      "unresolved-cases",
      +      "cases-not-expanded",
      +      "test-in-loop",
      +      "dynamic-title",
      +      "duplicate-title",
      +      "duplicate-id",
      +      "internal-error",
      +      "invalid-hook",
      +      "invalid-chain",
      +      "skip-without-body",
      +      "test-without-body",
      +      "describe-not-called",
      +      "async-describe",
      +      "describe-throws",
      +      "nested-test",
      +      "tag-without-at",
      +      "removed-api",
      +      "invalid-fixture-argument",
      +      "only-in-skipped-describe",
      +      "config-may-change-state",
      +      "undefined-tag",
      +      "symlink-ignored",
      +      "invalid-import",
      +      "globals-not-enabled",
      +      "unknown-framework-version",
      +      "unsupported-framework-version",
      +      "local-test-object",
      +      "state-in-helper",
      +      "unresolved-option",
      +      "dynamic-reason",
      +      "no-files-matched",
      +      "unsupported-file",
      +      "approximate-framework-version",
      +      "test-in-function",
      +      "empty-title",
      +      "bench-outside-benchmark-file",
      +      "config-value-unknown",
      +      "file-not-run",
      +      "forbidden-only",
      +      "dependency-not-followed"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "string"
      +  }
      +]
  2. Changed1 schema field changedv0.9.0
    • addedInput schema / additionalProperties
      Added value: +false
  3. Changed6 schema fields changedv0.7.0
    • changedInput schema / properties / codes / items / enum
      Previous value: -[
      -  "unresolved-test-import",
      -  "parse-error",
      -  "read-error",
      -  "framework-mismatch",
      -  "unresolved-tag",
      -  "unresolved-annotation",
      -  "unresolved-cases",
      -  "test-in-loop",
      -  "dynamic-title",
      -  "duplicate-title",
      -  "duplicate-id",
      -  "internal-error",
      -  "invalid-chain",
      -  "skip-without-body",
      -  "test-without-body",
      -  "describe-not-called",
      -  "async-describe",
      -  "nested-test",
      -  "tag-without-at",
      -  "removed-api",
      -  "only-in-skipped-describe",
      -  "config-may-change-state",
      -  "undefined-tag",
      -  "symlink-ignored",
      -  "invalid-import",
      -  "globals-not-enabled",
      -  "unknown-framework-version",
      -  "unsupported-framework-version",
      -  "local-test-object",
      -  "state-in-helper",
      -  "unresolved-option",
      -  "dynamic-reason",
      -  "no-files-matched",
      -  "unsupported-file",
      -  "approximate-framework-version",
      -  "test-in-function",
      -  "empty-title",
      -  "bench-outside-benchmark-file",
      -  "config-value-unknown",
      -  "file-not-run",
      -  "forbidden-only",
      -  "dependency-not-followed"
      -]New value: +[
      +  "unresolved-test-import",
      +  "parse-error",
      +  "read-error",
      +  "framework-mismatch",
      +  "unresolved-tag",
      +  "unresolved-annotation",
      +  "unresolved-cases",
      +  "cases-not-expanded",
      +  "test-in-loop",
      +  "dynamic-title",
      +  "duplicate-title",
      +  "duplicate-id",
      +  "internal-error",
      +  "invalid-chain",
      +  "skip-without-body",
      +  "test-without-body",
      +  "describe-not-called",
      +  "async-describe",
      +  "describe-throws",
      +  "nested-test",
      +  "tag-without-at",
      +  "removed-api",
      +  "invalid-fixture-argument",
      +  "only-in-skipped-describe",
      +  "config-may-change-state",
      +  "undefined-tag",
      +  "symlink-ignored",
      +  "invalid-import",
      +  "globals-not-enabled",
      +  "unknown-framework-version",
      +  "unsupported-framework-version",
      +  "local-test-object",
      +  "state-in-helper",
      +  "unresolved-option",
      +  "dynamic-reason",
      +  "no-files-matched",
      +  "unsupported-file",
      +  "approximate-framework-version",
      +  "test-in-function",
      +  "empty-title",
      +  "bench-outside-benchmark-file",
      +  "config-value-unknown",
      +  "file-not-run",
      +  "forbidden-only",
      +  "dependency-not-followed"
      +]
    • 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 / 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 / DiagnosticCode / anyOf
      Previous value: -[
      -  {
      -    "enum": [
      -      "unresolved-test-import",
      -      "parse-error",
      -      "read-error",
      -      "framework-mismatch",
      -      "unresolved-tag",
      -      "unresolved-annotation",
      -      "unresolved-cases",
      -      "test-in-loop",
      -      "dynamic-title",
      -      "duplicate-title",
      -      "duplicate-id",
      -      "internal-error",
      -      "invalid-chain",
      -      "skip-without-body",
      -      "test-without-body",
      -      "describe-not-called",
      -      "async-describe",
      -      "nested-test",
      -      "tag-without-at",
      -      "removed-api",
      -      "only-in-skipped-describe",
      -      "config-may-change-state",
      -      "undefined-tag",
      -      "symlink-ignored",
      -      "invalid-import",
      -      "globals-not-enabled",
      -      "unknown-framework-version",
      -      "unsupported-framework-version",
      -      "local-test-object",
      -      "state-in-helper",
      -      "unresolved-option",
      -      "dynamic-reason",
      -      "no-files-matched",
      -      "unsupported-file",
      -      "approximate-framework-version",
      -      "test-in-function",
      -      "empty-title",
      -      "bench-outside-benchmark-file",
      -      "config-value-unknown",
      -      "file-not-run",
      -      "forbidden-only",
      -      "dependency-not-followed"
      -    ],
      -    "type": "string"
      -  },
      -  {
      -    "type": "string"
      -  }
      -]New value: +[
      +  {
      +    "enum": [
      +      "unresolved-test-import",
      +      "parse-error",
      +      "read-error",
      +      "framework-mismatch",
      +      "unresolved-tag",
      +      "unresolved-annotation",
      +      "unresolved-cases",
      +      "cases-not-expanded",
      +      "test-in-loop",
      +      "dynamic-title",
      +      "duplicate-title",
      +      "duplicate-id",
      +      "internal-error",
      +      "invalid-chain",
      +      "skip-without-body",
      +      "test-without-body",
      +      "describe-not-called",
      +      "async-describe",
      +      "describe-throws",
      +      "nested-test",
      +      "tag-without-at",
      +      "removed-api",
      +      "invalid-fixture-argument",
      +      "only-in-skipped-describe",
      +      "config-may-change-state",
      +      "undefined-tag",
      +      "symlink-ignored",
      +      "invalid-import",
      +      "globals-not-enabled",
      +      "unknown-framework-version",
      +      "unsupported-framework-version",
      +      "local-test-object",
      +      "state-in-helper",
      +      "unresolved-option",
      +      "dynamic-reason",
      +      "no-files-matched",
      +      "unsupported-file",
      +      "approximate-framework-version",
      +      "test-in-function",
      +      "empty-title",
      +      "bench-outside-benchmark-file",
      +      "config-value-unknown",
      +      "file-not-run",
      +      "forbidden-only",
      +      "dependency-not-followed"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "string"
      +  }
      +]
    • 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"
      +  }
      +]
  4. Changed3 schema fields changedv0.4.1
    • changedInput schema / properties / codes / items / enum
      Previous value: -[
      -  "unresolved-test-import",
      -  "parse-error",
      -  "read-error",
      -  "framework-mismatch",
      -  "unresolved-tag",
      -  "unresolved-annotation",
      -  "unresolved-cases",
      -  "test-in-loop",
      -  "dynamic-title",
      -  "duplicate-title",
      -  "duplicate-id",
      -  "internal-error",
      -  "invalid-chain",
      -  "skip-without-body",
      -  "test-without-body",
      -  "describe-not-called",
      -  "async-describe",
      -  "nested-test",
      -  "tag-without-at",
      -  "removed-api",
      -  "only-in-skipped-describe",
      -  "config-may-change-state",
      -  "symlink-ignored",
      -  "invalid-import",
      -  "globals-not-enabled",
      -  "unknown-framework-version",
      -  "unsupported-framework-version",
      -  "local-test-object",
      -  "state-in-helper",
      -  "unresolved-option",
      -  "dynamic-reason",
      -  "no-files-matched",
      -  "unsupported-file",
      -  "approximate-framework-version",
      -  "test-in-function",
      -  "empty-title",
      -  "bench-outside-benchmark-file"
      -]New value: +[
      +  "unresolved-test-import",
      +  "parse-error",
      +  "read-error",
      +  "framework-mismatch",
      +  "unresolved-tag",
      +  "unresolved-annotation",
      +  "unresolved-cases",
      +  "test-in-loop",
      +  "dynamic-title",
      +  "duplicate-title",
      +  "duplicate-id",
      +  "internal-error",
      +  "invalid-chain",
      +  "skip-without-body",
      +  "test-without-body",
      +  "describe-not-called",
      +  "async-describe",
      +  "nested-test",
      +  "tag-without-at",
      +  "removed-api",
      +  "only-in-skipped-describe",
      +  "config-may-change-state",
      +  "undefined-tag",
      +  "symlink-ignored",
      +  "invalid-import",
      +  "globals-not-enabled",
      +  "unknown-framework-version",
      +  "unsupported-framework-version",
      +  "local-test-object",
      +  "state-in-helper",
      +  "unresolved-option",
      +  "dynamic-reason",
      +  "no-files-matched",
      +  "unsupported-file",
      +  "approximate-framework-version",
      +  "test-in-function",
      +  "empty-title",
      +  "bench-outside-benchmark-file",
      +  "config-value-unknown",
      +  "file-not-run",
      +  "forbidden-only",
      +  "dependency-not-followed"
      +]
    • 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."
    • changedOutput schema / definitions / DiagnosticCode / anyOf
      Previous value: -[
      -  {
      -    "enum": [
      -      "unresolved-test-import",
      -      "parse-error",
      -      "read-error",
      -      "framework-mismatch",
      -      "unresolved-tag",
      -      "unresolved-annotation",
      -      "unresolved-cases",
      -      "test-in-loop",
      -      "dynamic-title",
      -      "duplicate-title",
      -      "duplicate-id",
      -      "internal-error",
      -      "invalid-chain",
      -      "skip-without-body",
      -      "test-without-body",
      -      "describe-not-called",
      -      "async-describe",
      -      "nested-test",
      -      "tag-without-at",
      -      "removed-api",
      -      "only-in-skipped-describe",
      -      "config-may-change-state",
      -      "symlink-ignored",
      -      "invalid-import",
      -      "globals-not-enabled",
      -      "unknown-framework-version",
      -      "unsupported-framework-version",
      -      "local-test-object",
      -      "state-in-helper",
      -      "unresolved-option",
      -      "dynamic-reason",
      -      "no-files-matched",
      -      "unsupported-file",
      -      "approximate-framework-version",
      -      "test-in-function",
      -      "empty-title",
      -      "bench-outside-benchmark-file"
      -    ],
      -    "type": "string"
      -  },
      -  {
      -    "type": "string"
      -  }
      -]New value: +[
      +  {
      +    "enum": [
      +      "unresolved-test-import",
      +      "parse-error",
      +      "read-error",
      +      "framework-mismatch",
      +      "unresolved-tag",
      +      "unresolved-annotation",
      +      "unresolved-cases",
      +      "test-in-loop",
      +      "dynamic-title",
      +      "duplicate-title",
      +      "duplicate-id",
      +      "internal-error",
      +      "invalid-chain",
      +      "skip-without-body",
      +      "test-without-body",
      +      "describe-not-called",
      +      "async-describe",
      +      "nested-test",
      +      "tag-without-at",
      +      "removed-api",
      +      "only-in-skipped-describe",
      +      "config-may-change-state",
      +      "undefined-tag",
      +      "symlink-ignored",
      +      "invalid-import",
      +      "globals-not-enabled",
      +      "unknown-framework-version",
      +      "unsupported-framework-version",
      +      "local-test-object",
      +      "state-in-helper",
      +      "unresolved-option",
      +      "dynamic-reason",
      +      "no-files-matched",
      +      "unsupported-file",
      +      "approximate-framework-version",
      +      "test-in-function",
      +      "empty-title",
      +      "bench-outside-benchmark-file",
      +      "config-value-unknown",
      +      "file-not-run",
      +      "forbidden-only",
      +      "dependency-not-followed"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "string"
      +  }
      +]
  5. Changed2 schema fields changedv0.2.0
    • changedInput schema / properties / codes / items / enum
      Previous value: -[
      -  "unresolved-test-import",
      -  "parse-error",
      -  "read-error",
      -  "framework-mismatch",
      -  "unresolved-tag",
      -  "unresolved-annotation",
      -  "unresolved-cases",
      -  "test-in-loop",
      -  "dynamic-title",
      -  "duplicate-title",
      -  "duplicate-id",
      -  "internal-error",
      -  "invalid-chain",
      -  "skip-without-body",
      -  "test-without-body",
      -  "describe-not-called",
      -  "async-describe",
      -  "nested-test",
      -  "tag-without-at",
      -  "removed-api",
      -  "only-in-skipped-describe",
      -  "config-may-change-state",
      -  "symlink-ignored",
      -  "invalid-import",
      -  "globals-not-enabled",
      -  "unknown-framework-version",
      -  "unsupported-framework-version",
      -  "local-test-object",
      -  "state-in-helper",
      -  "unresolved-option",
      -  "dynamic-reason",
      -  "no-files-matched",
      -  "unsupported-file",
      -  "approximate-framework-version",
      -  "test-in-function"
      -]New value: +[
      +  "unresolved-test-import",
      +  "parse-error",
      +  "read-error",
      +  "framework-mismatch",
      +  "unresolved-tag",
      +  "unresolved-annotation",
      +  "unresolved-cases",
      +  "test-in-loop",
      +  "dynamic-title",
      +  "duplicate-title",
      +  "duplicate-id",
      +  "internal-error",
      +  "invalid-chain",
      +  "skip-without-body",
      +  "test-without-body",
      +  "describe-not-called",
      +  "async-describe",
      +  "nested-test",
      +  "tag-without-at",
      +  "removed-api",
      +  "only-in-skipped-describe",
      +  "config-may-change-state",
      +  "symlink-ignored",
      +  "invalid-import",
      +  "globals-not-enabled",
      +  "unknown-framework-version",
      +  "unsupported-framework-version",
      +  "local-test-object",
      +  "state-in-helper",
      +  "unresolved-option",
      +  "dynamic-reason",
      +  "no-files-matched",
      +  "unsupported-file",
      +  "approximate-framework-version",
      +  "test-in-function",
      +  "empty-title",
      +  "bench-outside-benchmark-file"
      +]
    • changedOutput schema / definitions / DiagnosticCode / anyOf
      Previous value: -[
      -  {
      -    "enum": [
      -      "unresolved-test-import",
      -      "parse-error",
      -      "read-error",
      -      "framework-mismatch",
      -      "unresolved-tag",
      -      "unresolved-annotation",
      -      "unresolved-cases",
      -      "test-in-loop",
      -      "dynamic-title",
      -      "duplicate-title",
      -      "duplicate-id",
      -      "internal-error",
      -      "invalid-chain",
      -      "skip-without-body",
      -      "test-without-body",
      -      "describe-not-called",
      -      "async-describe",
      -      "nested-test",
      -      "tag-without-at",
      -      "removed-api",
      -      "only-in-skipped-describe",
      -      "config-may-change-state",
      -      "symlink-ignored",
      -      "invalid-import",
      -      "globals-not-enabled",
      -      "unknown-framework-version",
      -      "unsupported-framework-version",
      -      "local-test-object",
      -      "state-in-helper",
      -      "unresolved-option",
      -      "dynamic-reason",
      -      "no-files-matched",
      -      "unsupported-file",
      -      "approximate-framework-version",
      -      "test-in-function"
      -    ],
      -    "type": "string"
      -  },
      -  {
      -    "type": "string"
      -  }
      -]New value: +[
      +  {
      +    "enum": [
      +      "unresolved-test-import",
      +      "parse-error",
      +      "read-error",
      +      "framework-mismatch",
      +      "unresolved-tag",
      +      "unresolved-annotation",
      +      "unresolved-cases",
      +      "test-in-loop",
      +      "dynamic-title",
      +      "duplicate-title",
      +      "duplicate-id",
      +      "internal-error",
      +      "invalid-chain",
      +      "skip-without-body",
      +      "test-without-body",
      +      "describe-not-called",
      +      "async-describe",
      +      "nested-test",
      +      "tag-without-at",
      +      "removed-api",
      +      "only-in-skipped-describe",
      +      "config-may-change-state",
      +      "symlink-ignored",
      +      "invalid-import",
      +      "globals-not-enabled",
      +      "unknown-framework-version",
      +      "unsupported-framework-version",
      +      "local-test-object",
      +      "state-in-helper",
      +      "unresolved-option",
      +      "dynamic-reason",
      +      "no-files-matched",
      +      "unsupported-file",
      +      "approximate-framework-version",
      +      "test-in-function",
      +      "empty-title",
      +      "bench-outside-benchmark-file"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "string"
      +  }
      +]
  6. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the bar is lower, and the description still adds substantive context: it defines what error vs. warning mean, clarifies these are read-time code problems rather than test failures, and discloses pagination ("Answers are paged: follow nextCursor"). It does not discuss cost/latency on large inventories, which is the only notable omission.

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?

Purpose and level semantics are front-loaded and no sentence is filler, but the opening sentence is a single ~70-word run with nested parentheticals that is harder to parse than it needs to be. Bullet-style separation of error vs. warning would have been tighter.

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?

With 9 optional parameters, 44 diagnostic codes, and an output schema present, the description covers the things structure cannot: the meaning of the levels, the paging contract, and the linkage trigger from other tools. Return-value shape is correctly left to the output schema.

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 a baseline of 3 applies; the description still contributes the worked example {"levels": ["error"]} and the cursor reuse rule ("Keep the other arguments the same"). Most of its per-parameter meaning lives in the schema, so it does not exceed what a strong description could add.

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?

"Lists the problems test-inventory found while reading the test files" gives a specific verb and resource, and the following clause draws the crucial line between scan problems (parse/import/config issues) and actual test failures. An agent can tell this apart from test_summary or get_tests without opening 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 Guidelines4/5

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

It names concrete trigger conditions: "Use it when another tool reports scanErrors, or to check why a test is missing or notLoaded." That is real when-to-use guidance tied to sibling outputs. It stops short of stating when not to use it or naming an alternative tool for the adjacent need.

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