Skip to main content
Glama
RepoAssay

Repo Test Architect

Audit Repository

audit_repo
Read-onlyIdempotent

Audit a single, user-selected project root for test architecture issues. Returns deterministic evidence-backed findings and blockers for the chosen adapter.

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 or complete repository review, use analyze_repository.

Input Schema

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

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
risksYes
profileYes
skippedYes
recommendedYes
schemaVersionYes
coveredButRiskyYes
untestedCandidatesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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"
      +}
  2. 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 declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world, so the safety profile is handled. The description adds real context beyond that: the audit/v1 return format, the single-project-boundary scope, and the adapterId javascript default. It does not discuss limits of what gets audited, but the added facts are substantive.

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?

Three short sentences with zero filler, and the scope constraint plus output format are front-loaded before the sibling routing clause. Every sentence earns its place.

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?

An output schema exists, so return values need not be explained, and annotations cover the safety profile; the description handles tool selection and the key default. It is nearly complete, with only parameter-level guidance for changedPaths/goTarget left implicit in the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 75%, so the schema documents most parameters itself. The description reinforces repoRoot scoping ('one explicitly selected project root') and repeats the adapterId javascript default that the schema already states; changedPaths and goTarget are left entirely to the schema, so no meaning is added beyond it.

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

Purpose5/5

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

States a specific verb and resource ('Audit one explicitly selected project root'), plus the output contract ('return audit/v1'). It explicitly contrasts with the sibling analyze_repository, so an agent can separate the two 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 Guidelines5/5

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

'Use only when the caller selected a single adapter or project boundary' gives an explicit precondition, and 'For an unfamiliar or complete repository review, use analyze_repository' names the alternative and the condition that selects it. Both when-to-use and when-not-to-use are present.

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