Skip to main content
Glama

Diff inventories

diff_inventories
Read-onlyIdempotent

Compare two saved JSON test inventories without running tests or changing files; report additions, removals, renames, moves, and code or dependency changes.

Instructions

Compares two complete saved JSON scans inside the project, without running tests or changing files. Reports additions, removals, renames, moves, code and dependency changes, states, tags and other metadata. Uses ids first, then unique body hashes and file, suite or dependency context; ambiguous matches remain added and removed. Use the same framework, root, patterns, filters and expandCases for both saved scans. Hash comparisons and rename matching are disabled across tool versions. Follow nextCursor for more changes. For Playwright, Vitest, Jest, Mocha, Jasmine, Cypress, WebdriverIO, node:test and Bun inventories. Example: {"before":"inventories/base.json","after":"inventories/head.json"}.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "before": "<before>",
      "after": "<after>"
    },
    "name": "diff_inventories"
  }
}

Input Schema

NameRequiredDescriptionDefault
afterYesThe new complete JSON inventory, relative to the project root; at most 128 MiB.
limitNoThe most items to return.
beforeYesThe old complete JSON inventory, relative to the project root; at most 128 MiB.
cursorNonextCursor from the previous answer, for the next page. Keep the other arguments the same.

Output Schema

NameRequiredDescriptionDefault
hintYes
toolYes
totalYesAll matching items, on every page.
changesYes
summaryYesCategory counts overlap; changed counts matched tests, while unchanged counts matches with no changes.
warningsYes
frameworkYes
nextCursorYes
schemaVersionYes
afterToolVersionYes
hashesComparableYes
beforeToolVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.11.0
    • changedOutput schema / definitions / TestChange / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "after": {
      -        "$ref": "#/definitions/TestRecord"
      -      },
      -      "before": {
      -        "$ref": "#/definitions/TestRecord"
      -      },
      -      "changedFields": {
      -        "description": "Changed record keys, excluding locations and ids. Hashes are included only when comparable.",
      -        "items": {
      -          "enum": [
      -            "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"
      -          ],
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "kinds": {
      -        "items": {
      -          "$ref": "#/definitions/ChangeKind"
      -        },
      -        "type": "array"
      -      },
      -      "match": {
      -        "$ref": "#/definitions/MatchMethod"
      -      }
      -    },
      -    "required": [
      -      "after",
      -      "before",
      -      "changedFields",
      -      "kinds",
      -      "match"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "after": {
      -        "type": "null"
      -      },
      -      "before": {
      -        "$ref": "#/definitions/TestRecord"
      -      },
      -      "changedFields": {
      -        "description": "Changed record keys, excluding locations and ids. Hashes are included only when comparable.",
      -        "items": {
      -          "enum": [
      -            "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"
      -          ],
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "kinds": {
      -        "items": {
      -          "$ref": "#/definitions/ChangeKind"
      -        },
      -        "type": "array"
      -      },
      -      "match": {
      -        "type": "null"
      -      }
      -    },
      -    "required": [
      -      "after",
      -      "before",
      -      "changedFields",
      -      "kinds",
      -      "match"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "after": {
      -        "$ref": "#/definitions/TestRecord"
      -      },
      -      "before": {
      -        "type": "null"
      -      },
      -      "changedFields": {
      -        "description": "Changed record keys, excluding locations and ids. Hashes are included only when comparable.",
      -        "items": {
      -          "enum": [
      -            "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"
      -          ],
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "kinds": {
      -        "items": {
      -          "$ref": "#/definitions/ChangeKind"
      -        },
      -        "type": "array"
      -      },
      -      "match": {
      -        "type": "null"
      -      }
      -    },
      -    "required": [
      -      "after",
      -      "before",
      -      "changedFields",
      -      "kinds",
      -      "match"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "after": {
      +        "$ref": "#/definitions/TestRecord"
      +      },
      +      "before": {
      +        "$ref": "#/definitions/TestRecord"
      +      },
      +      "changedFields": {
      +        "description": "Changed record keys, excluding locations and ids. Hashes are included only when comparable.",
      +        "items": {
      +          "enum": [
      +            "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"
      +          ],
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "kinds": {
      +        "items": {
      +          "$ref": "#/definitions/ChangeKind"
      +        },
      +        "type": "array"
      +      },
      +      "match": {
      +        "$ref": "#/definitions/MatchMethod"
      +      }
      +    },
      +    "required": [
      +      "after",
      +      "before",
      +      "changedFields",
      +      "kinds",
      +      "match"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "after": {
      +        "type": "null"
      +      },
      +      "before": {
      +        "$ref": "#/definitions/TestRecord"
      +      },
      +      "changedFields": {
      +        "description": "Changed record keys, excluding locations and ids. Hashes are included only when comparable.",
      +        "items": {
      +          "enum": [
      +            "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"
      +          ],
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "kinds": {
      +        "items": {
      +          "$ref": "#/definitions/ChangeKind"
      +        },
      +        "type": "array"
      +      },
      +      "match": {
      +        "type": "null"
      +      }
      +    },
      +    "required": [
      +      "after",
      +      "before",
      +      "changedFields",
      +      "kinds",
      +      "match"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "after": {
      +        "$ref": "#/definitions/TestRecord"
      +      },
      +      "before": {
      +        "type": "null"
      +      },
      +      "changedFields": {
      +        "description": "Changed record keys, excluding locations and ids. Hashes are included only when comparable.",
      +        "items": {
      +          "enum": [
      +            "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"
      +          ],
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "kinds": {
      +        "items": {
      +          "$ref": "#/definitions/ChangeKind"
      +        },
      +        "type": "array"
      +      },
      +      "match": {
      +        "type": "null"
      +      }
      +    },
      +    "required": [
      +      "after",
      +      "before",
      +      "changedFields",
      +      "kinds",
      +      "match"
      +    ],
      +    "type": "object"
      +  }
      +]
    • addedOutput schema / definitions / TestRecord / 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"
      +}
    • changedOutput schema / definitions / TestRecord / required
      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"
      +]
  2. Changed4 schema fields changedv0.10.0
    • changedOutput schema / definitions / TestChange / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "after": {
      -        "$ref": "#/definitions/TestRecord"
      -      },
      -      "before": {
      -        "$ref": "#/definitions/TestRecord"
      -      },
      -      "changedFields": {
      -        "description": "Changed record keys, excluding locations and ids. Hashes are included only when comparable.",
      -        "items": {
      -          "enum": [
      -            "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"
      -          ],
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "kinds": {
      -        "items": {
      -          "$ref": "#/definitions/ChangeKind"
      -        },
      -        "type": "array"
      -      },
      -      "match": {
      -        "$ref": "#/definitions/MatchMethod"
      -      }
      -    },
      -    "required": [
      -      "after",
      -      "before",
      -      "changedFields",
      -      "kinds",
      -      "match"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "after": {
      -        "type": "null"
      -      },
      -      "before": {
      -        "$ref": "#/definitions/TestRecord"
      -      },
      -      "changedFields": {
      -        "description": "Changed record keys, excluding locations and ids. Hashes are included only when comparable.",
      -        "items": {
      -          "enum": [
      -            "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"
      -          ],
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "kinds": {
      -        "items": {
      -          "$ref": "#/definitions/ChangeKind"
      -        },
      -        "type": "array"
      -      },
      -      "match": {
      -        "type": "null"
      -      }
      -    },
      -    "required": [
      -      "after",
      -      "before",
      -      "changedFields",
      -      "kinds",
      -      "match"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "after": {
      -        "$ref": "#/definitions/TestRecord"
      -      },
      -      "before": {
      -        "type": "null"
      -      },
      -      "changedFields": {
      -        "description": "Changed record keys, excluding locations and ids. Hashes are included only when comparable.",
      -        "items": {
      -          "enum": [
      -            "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"
      -          ],
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "kinds": {
      -        "items": {
      -          "$ref": "#/definitions/ChangeKind"
      -        },
      -        "type": "array"
      -      },
      -      "match": {
      -        "type": "null"
      -      }
      -    },
      -    "required": [
      -      "after",
      -      "before",
      -      "changedFields",
      -      "kinds",
      -      "match"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "after": {
      +        "$ref": "#/definitions/TestRecord"
      +      },
      +      "before": {
      +        "$ref": "#/definitions/TestRecord"
      +      },
      +      "changedFields": {
      +        "description": "Changed record keys, excluding locations and ids. Hashes are included only when comparable.",
      +        "items": {
      +          "enum": [
      +            "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"
      +          ],
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "kinds": {
      +        "items": {
      +          "$ref": "#/definitions/ChangeKind"
      +        },
      +        "type": "array"
      +      },
      +      "match": {
      +        "$ref": "#/definitions/MatchMethod"
      +      }
      +    },
      +    "required": [
      +      "after",
      +      "before",
      +      "changedFields",
      +      "kinds",
      +      "match"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "after": {
      +        "type": "null"
      +      },
      +      "before": {
      +        "$ref": "#/definitions/TestRecord"
      +      },
      +      "changedFields": {
      +        "description": "Changed record keys, excluding locations and ids. Hashes are included only when comparable.",
      +        "items": {
      +          "enum": [
      +            "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"
      +          ],
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "kinds": {
      +        "items": {
      +          "$ref": "#/definitions/ChangeKind"
      +        },
      +        "type": "array"
      +      },
      +      "match": {
      +        "type": "null"
      +      }
      +    },
      +    "required": [
      +      "after",
      +      "before",
      +      "changedFields",
      +      "kinds",
      +      "match"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "after": {
      +        "$ref": "#/definitions/TestRecord"
      +      },
      +      "before": {
      +        "type": "null"
      +      },
      +      "changedFields": {
      +        "description": "Changed record keys, excluding locations and ids. Hashes are included only when comparable.",
      +        "items": {
      +          "enum": [
      +            "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"
      +          ],
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "kinds": {
      +        "items": {
      +          "$ref": "#/definitions/ChangeKind"
      +        },
      +        "type": "array"
      +      },
      +      "match": {
      +        "type": "null"
      +      }
      +    },
      +    "required": [
      +      "after",
      +      "before",
      +      "changedFields",
      +      "kinds",
      +      "match"
      +    ],
      +    "type": "object"
      +  }
      +]
    • changedOutput schema / definitions / TestRecord / 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 / definitions / TestRecord / 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"
      +}
    • changedOutput schema / definitions / TestRecord / required
      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"
      +]
  3. Changed2 schema fields changedv0.9.1
    • addedOutput schema / definitions / TestRecord / properties / isActive / description
      Added value: +"True only for state active; false does not establish that the test never executes."
    • changedOutput schema / definitions / TestRecord / 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. Addedv0.9.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/non-destructive annotations, the description discloses the matching algorithm (ids first, then unique body hashes plus file, suite or dependency context, with ambiguous matches left as added and removed), the caveat that hash comparison and rename matching are disabled across tool versions, and the pagination contract. These are non-obvious behavioral traits an agent could not infer from annotations or schema.

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?

The purpose is front-loaded in the first clause, followed by output content, matching logic, constraints, pagination, supported frameworks and an example — a logical order with no filler. Some sentences are densely packed (the hash/context matching rule), but nothing is redundant enough to cut.

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 an output schema present, the description need not explain return values, and it still covers the hard parts: ambiguous-match policy, version-related degradation of hash/rename matching, and how to page results. Nothing an agent needs to call this correctly — preconditions, supported frameworks, example arguments — 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 schema already documents before, after, limit and cursor; the baseline would be 3. The description adds real meaning on top: that before/after are two halves of a comparable pair requiring matched framework/root/pattern/filter settings, and an example showing the relative-path format. It does not elaborate on limit, but the schema handles that.

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?

"Compares two complete saved JSON scans inside the project, without running tests or changing files" states a specific verb (compares), a specific resource (two saved JSON scans), and the scope boundary (no test execution). It is clearly distinct from siblings like find_tests, get_tests and scan_diagnostics, which locate or enumerate tests rather than diff saved inventories.

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 gives concrete preconditions for correct use: both scans must share the same framework, root, patterns, filters and expandCases, and pagination must continue via nextCursor while keeping other arguments constant. The trailing example shows a valid before/after pair. It stops short of naming an explicit alternative for when the agent should not diff (e.g., a live run comparison), so it is clear context without full routing.

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