Skip to main content
Glama
Repo Test Architect

Repo Test Architect

Audit Repository

audit_repo
Read-onlyIdempotent

Audits one selected repository root against its adapter and returns audit/v1 evidence-backed findings and blockers, so you can verify test architecture without changing source files.

Instructions

Audit one explicitly selected project root and return audit/v1. Use only when the caller selected a single adapter or project boundary; adapterId defaults to javascript. For an unfamiliar repository or a general review, use review_repository.

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": {
      "repoRoot": "<repoRoot>"
    },
    "name": "audit_repo"
  }
}

Input Schema

NameRequiredDescriptionDefault
goTargetNo
repoRootYesRepository root path.
adapterIdNoOptional adapter id. Defaults to javascript.
changedPathsNoOptional repository-relative source paths to limit target selection.

Output Schema

NameRequiredDescriptionDefault
risksYes
profileYes
skippedYes
recommendedYes
schemaVersionYes
coveredButRiskyYes
untestedCandidatesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed13 schema fields changedv1.1.0
    • removedOutput schema / $defs
      Removed value: -{
      -  "auditTarget": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "existingTestEvidence": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "kind": {
      -              "enum": [
      -                "filename-convention",
      -                "direct-relative-import",
      -                "referenced-relative-reexport",
      -                "tsconfig-path-import",
      -                "package-entry-import",
      -                "bounded-dependency",
      -                "browser-route-match",
      -                "csharp-symbol-reference",
      -                "csharp-test-helper",
      -                "swift-symbol-reference",
      -                "python-module-import",
      -                "python-package-reexport",
      -                "python-pytest-fixture",
      -                "python-test-client-route",
      -                "jvm-symbol-reference",
      -                "go-symbol-reference",
      -                "go-source-dependency",
      -                "rust-symbol-reference",
      -                "ruby-constant-reference",
      -                "php-symbol-reference",
      -                "elixir-module-reference"
      -              ]
      -            },
      -            "strength": {
      -              "enum": [
      -                "naming",
      -                "direct",
      -                "referenced",
      -                "indirect"
      -              ]
      -            },
      -            "testPath": {
      -              "type": "string"
      -            },
      -            "usage": {
      -              "enum": [
      -                "called",
      -                "asserted"
      -              ]
      -            },
      -            "viaUsage": {
      -              "enum": [
      -                "called",
      -                "asserted"
      -              ]
      -            }
      -          },
      -          "required": [
      -            "testPath",
      -            "kind",
      -            "strength"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "existingTestPaths": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "id": {
      -        "type": "string"
      -      },
      -      "kind": {
      -        "type": "string"
      -      },
      -      "maintenanceCost": {
      -        "maximum": 10,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "name": {
      -        "type": "string"
      -      },
      -      "path": {
      -        "type": "string"
      -      },
      -      "reasons": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "recommendedTestLevel": {
      -        "enum": [
      -          "unit",
      -          "integration",
      -          "component",
      -          "ui",
      -          "none"
      -        ]
      -      },
      -      "risk": {
      -        "enum": [
      -          "low",
      -          "medium",
      -          "high"
      -        ]
      -      },
      -      "riskReductionScore": {
      -        "maximum": 10,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "signals": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "testability": {
      -        "enum": [
      -          "low",
      -          "medium",
      -          "high"
      -        ]
      -      }
      -    },
      -    "required": [
      -      "name",
      -      "id",
      -      "path",
      -      "kind",
      -      "signals",
      -      "risk",
      -      "testability",
      -      "recommendedTestLevel",
      -      "riskReductionScore",
      -      "maintenanceCost",
      -      "reasons",
      -      "existingTestPaths"
      -    ],
      -    "type": "object"
      -  },
      -  "skippedTarget": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "id": {
      -        "type": "string"
      -      },
      -      "kind": {
      -        "type": "string"
      -      },
      -      "maintenanceCost": {
      -        "maximum": 10,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "name": {
      -        "type": "string"
      -      },
      -      "path": {
      -        "type": "string"
      -      },
      -      "preferredCoveragePath": {
      -        "type": "string"
      -      },
      -      "reason": {
      -        "type": "string"
      -      },
      -      "riskReductionScore": {
      -        "maximum": 10,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "signals": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "name",
      -      "id",
      -      "path",
      -      "kind",
      -      "signals",
      -      "riskReductionScore",
      -      "maintenanceCost",
      -      "reason"
      -    ],
      -    "type": "object"
      -  }
      -}
    • removedOutput schema / $id
      Removed value: -"https://repo-test-architect.local/schemas/audit-v1.schema.json"
    • removedOutput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • addedOutput schema / description
      Added value: +"Top-level shape of this artifact. The complete contract is schemas/audit-v1.schema.json in the published package."
    • removedOutput schema / properties / coveredButRisky / items
      Removed value: -{
      -  "$ref": "#/$defs/auditTarget"
      -}
    • removedOutput schema / properties / profile / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / profile / properties
      Removed value: -{
      -  "architectures": {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  "blockers": {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  "confidence": {
      -    "enum": [
      -      "low",
      -      "medium",
      -      "high"
      -    ]
      -  },
      -  "detectedConventions": {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  "existingTestLocations": {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  "languages": {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  "packageManagers": {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  "root": {
      -    "type": "string"
      -  },
      -  "setupSignals": {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  "testCommand": {
      -    "type": "string"
      -  },
      -  "testFrameworks": {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  }
      -}
    • removedOutput schema / properties / profile / required
      Removed value: -[
      -  "root",
      -  "languages",
      -  "packageManagers",
      -  "testFrameworks",
      -  "architectures",
      -  "detectedConventions",
      -  "existingTestLocations",
      -  "setupSignals",
      -  "confidence",
      -  "blockers"
      -]
    • removedOutput schema / properties / recommended / items
      Removed value: -{
      -  "$ref": "#/$defs/auditTarget"
      -}
    • removedOutput schema / properties / risks / items
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / skipped / items
      Removed value: -{
      -  "$ref": "#/$defs/skippedTarget"
      -}
    • removedOutput schema / properties / untestedCandidates / items
      Removed value: -{
      -  "$ref": "#/$defs/auditTarget"
      -}
    • removedOutput schema / title
      Removed value: -"Repo Test Architect Audit"
  2. Changed1 schema field changedv1.0.0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "auditTarget": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "existingTestEvidence": {
      +          "items": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "kind": {
      +                "enum": [
      +                  "filename-convention",
      +                  "direct-relative-import",
      +                  "referenced-relative-reexport",
      +                  "tsconfig-path-import",
      +                  "package-entry-import",
      +                  "bounded-dependency",
      +                  "browser-route-match",
      +                  "csharp-symbol-reference",
      +                  "csharp-test-helper",
      +                  "swift-symbol-reference",
      +                  "python-module-import",
      +                  "python-package-reexport",
      +                  "python-pytest-fixture",
      +                  "python-test-client-route",
      +                  "jvm-symbol-reference",
      +                  "go-symbol-reference",
      +                  "go-source-dependency",
      +                  "rust-symbol-reference",
      +                  "ruby-constant-reference",
      +                  "php-symbol-reference",
      +                  "elixir-module-reference"
      +                ]
      +              },
      +              "strength": {
      +                "enum": [
      +                  "naming",
      +                  "direct",
      +                  "referenced",
      +                  "indirect"
      +                ]
      +              },
      +              "testPath": {
      +                "type": "string"
      +              },
      +              "usage": {
      +                "enum": [
      +                  "called",
      +                  "asserted"
      +                ]
      +              },
      +              "viaUsage": {
      +                "enum": [
      +                  "called",
      +                  "asserted"
      +                ]
      +              }
      +            },
      +            "required": [
      +              "testPath",
      +              "kind",
      +              "strength"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "existingTestPaths": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "id": {
      +          "type": "string"
      +        },
      +        "kind": {
      +          "type": "string"
      +        },
      +        "maintenanceCost": {
      +          "maximum": 10,
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "name": {
      +          "type": "string"
      +        },
      +        "path": {
      +          "type": "string"
      +        },
      +        "reasons": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "recommendedTestLevel": {
      +          "enum": [
      +            "unit",
      +            "integration",
      +            "component",
      +            "ui",
      +            "none"
      +          ]
      +        },
      +        "risk": {
      +          "enum": [
      +            "low",
      +            "medium",
      +            "high"
      +          ]
      +        },
      +        "riskReductionScore": {
      +          "maximum": 10,
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "signals": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "testability": {
      +          "enum": [
      +            "low",
      +            "medium",
      +            "high"
      +          ]
      +        }
      +      },
      +      "required": [
      +        "name",
      +        "id",
      +        "path",
      +        "kind",
      +        "signals",
      +        "risk",
      +        "testability",
      +        "recommendedTestLevel",
      +        "riskReductionScore",
      +        "maintenanceCost",
      +        "reasons",
      +        "existingTestPaths"
      +      ],
      +      "type": "object"
      +    },
      +    "skippedTarget": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "id": {
      +          "type": "string"
      +        },
      +        "kind": {
      +          "type": "string"
      +        },
      +        "maintenanceCost": {
      +          "maximum": 10,
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "name": {
      +          "type": "string"
      +        },
      +        "path": {
      +          "type": "string"
      +        },
      +        "preferredCoveragePath": {
      +          "type": "string"
      +        },
      +        "reason": {
      +          "type": "string"
      +        },
      +        "riskReductionScore": {
      +          "maximum": 10,
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "signals": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "required": [
      +        "name",
      +        "id",
      +        "path",
      +        "kind",
      +        "signals",
      +        "riskReductionScore",
      +        "maintenanceCost",
      +        "reason"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "$id": "https://repo-test-architect.local/schemas/audit-v1.schema.json",
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": false,
      +  "properties": {
      +    "coveredButRisky": {
      +      "items": {
      +        "$ref": "#/$defs/auditTarget"
      +      },
      +      "type": "array"
      +    },
      +    "profile": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "architectures": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "blockers": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "confidence": {
      +          "enum": [
      +            "low",
      +            "medium",
      +            "high"
      +          ]
      +        },
      +        "detectedConventions": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "existingTestLocations": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "languages": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "packageManagers": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "root": {
      +          "type": "string"
      +        },
      +        "setupSignals": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "testCommand": {
      +          "type": "string"
      +        },
      +        "testFrameworks": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "required": [
      +        "root",
      +        "languages",
      +        "packageManagers",
      +        "testFrameworks",
      +        "architectures",
      +        "detectedConventions",
      +        "existingTestLocations",
      +        "setupSignals",
      +        "confidence",
      +        "blockers"
      +      ],
      +      "type": "object"
      +    },
      +    "recommended": {
      +      "items": {
      +        "$ref": "#/$defs/auditTarget"
      +      },
      +      "type": "array"
      +    },
      +    "risks": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "schemaVersion": {
      +      "const": "audit/v1"
      +    },
      +    "skipped": {
      +      "items": {
      +        "$ref": "#/$defs/skippedTarget"
      +      },
      +      "type": "array"
      +    },
      +    "untestedCandidates": {
      +      "items": {
      +        "$ref": "#/$defs/auditTarget"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "schemaVersion",
      +    "profile",
      +    "untestedCandidates",
      +    "coveredButRisky",
      +    "recommended",
      +    "skipped",
      +    "risks"
      +  ],
      +  "title": "Repo Test Architect Audit",
      +  "type": "object"
      +}
  3. First observedv0.1.0

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is fully covered. The description adds the single-root scoping constraint and the audit/v1 contract name, but says nothing about cost, runtime, or what an audit includes — modest added value given the low bar.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the scoping constraint and followed by the alternative. Every clause carries information about scope, selection criteria, or defaults; nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With a rich output schema and full annotation coverage, the description need not explain return values. It covers selection scope, the alternative tool, and the adapter default; only the nature of the audit itself (what findings it produces, expected runtime) is left implicit, which is minor for this tool's complexity.

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?

The schema documents all four parameters at roughly 75% coverage, including nested goTarget fields with descriptions. The description adds the adapterId default in prose and frames repoRoot as "one explicitly selected project root", reinforcing the single-boundary constraint the schema alone does not convey.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Audit one explicitly selected project root and return audit/v1" gives a specific verb, a bounded scope, and a named output contract. It also distinguishes the tool from review_repository, though it never says what the audit actually checks, so the agent knows the shape but not the substance of the operation.

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?

Explicit both ways: use only when the caller selected a single adapter or project boundary, and use review_repository for an unfamiliar repository or general review. It also states the adapterId default, so there is no ambiguity about what happens when the parameter is omitted.

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