Skip to main content
Glama
Repo Test Architect

Repo Test Architect

Generate Test Plan

generate_test_plan
Read-onlyIdempotent

Create a deterministic test plan for one project from an existing audit or repo/project roots, optionally returning one exact plan item. It does not execute tests or write test code.

Instructions

Create a deterministic plan/v1 for one project, optionally selecting one exact plan item; use generate_project_test_plan for multiple audited projects. Pass an existing audit/v1 artifact, or pass repoRoot plus projectRoot to audit that project deterministically. Does not execute tests or generate or write test code.

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

Input Schema

NameRequiredDescriptionDefault
auditNoAn audit/v1 artifact; or pass repoRoot plus projectRoot instead.
itemIdNoOptional exact plan item id to return; omit it to return the complete deterministic plan.
goTargetNo
repoRootNoRepository root to audit instead of passing audit; requires projectRoot.
projectRootNoProject root relative to repoRoot as detected, such as . or packages/api.
changedPathsNoOptional repository-relative source paths to limit target selection.

Output Schema

NameRequiredDescriptionDefault
itemsYes
summaryYes
blockersYes
schemaVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv1.2.0
    • changedInput schema / properties / audit / description
      Previous value: -"The audit/v1 object returned by audit_repo or contained in projectAudits.audits[].audit; pass the artifact itself, not a file path."New value: +"An audit/v1 artifact; or pass repoRoot plus projectRoot instead."
    • addedInput schema / properties / changedPaths
      Added value: +{
      +  "description": "Optional repository-relative source paths to limit target selection.",
      +  "items": {
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / goTarget
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "goarch": {
      +      "description": "Explicit GOARCH for bounded Go build-constraint evaluation.",
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "goos": {
      +      "description": "Explicit GOOS for bounded Go build-constraint evaluation.",
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "tags": {
      +      "description": "Optional custom Go build tags passed to the target-aware verification command.",
      +      "items": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "goos",
      +    "goarch"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / projectRoot
      Added value: +{
      +  "description": "Project root relative to repoRoot as detected, such as . or packages/api.",
      +  "type": "string"
      +}
    • addedInput schema / properties / repoRoot
      Added value: +{
      +  "description": "Repository root to audit instead of passing audit; requires projectRoot.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "audit"
      -]New value: +[]
  2. Changed9 schema fields changedv1.1.0
    • removedOutput schema / $id
      Removed value: -"https://repo-test-architect.local/schemas/plan-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/plan-v1.schema.json in the published package."
    • removedOutput schema / properties / blockers / items
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / items / items
      Removed value: -{
      -  "additionalProperties": false,
      -  "properties": {
      -    "action": {
      -      "enum": [
      -        "add-test",
      -        "extend-test",
      -        "defer"
      -      ]
      -    },
      -    "existingTestEvidence": {
      -      "items": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "kind": {
      -            "type": "string"
      -          },
      -          "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"
      -    },
      -    "maintenanceCost": {
      -      "maximum": 10,
      -      "minimum": 0,
      -      "type": "integer"
      -    },
      -    "path": {
      -      "type": "string"
      -    },
      -    "priority": {
      -      "type": "integer"
      -    },
      -    "rationale": {
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "riskReductionScore": {
      -      "maximum": 10,
      -      "minimum": 0,
      -      "type": "integer"
      -    },
      -    "sourceSignals": {
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "target": {
      -      "type": "string"
      -    },
      -    "targetId": {
      -      "type": "string"
      -    },
      -    "testLevel": {
      -      "enum": [
      -        "unit",
      -        "integration",
      -        "component",
      -        "ui",
      -        "none"
      -      ]
      -    }
      -  },
      -  "required": [
      -    "id",
      -    "action",
      -    "targetId",
      -    "target",
      -    "path",
      -    "testLevel",
      -    "priority",
      -    "riskReductionScore",
      -    "maintenanceCost",
      -    "rationale",
      -    "sourceSignals",
      -    "existingTestPaths"
      -  ],
      -  "type": "object"
      -}
    • removedOutput schema / properties / summary / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / summary / properties
      Removed value: -{
      -  "addTestCount": {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  "blockerCount": {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  "confidence": {
      -    "enum": [
      -      "low",
      -      "medium",
      -      "high"
      -    ]
      -  },
      -  "deferredCount": {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  "extendTestCount": {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  "verificationCommand": {
      -    "type": "string"
      -  }
      -}
    • removedOutput schema / properties / summary / required
      Removed value: -[
      -  "confidence",
      -  "blockerCount",
      -  "addTestCount",
      -  "extendTestCount",
      -  "deferredCount"
      -]
    • removedOutput schema / title
      Removed value: -"Repo Test Architect Test Plan"
  3. Changed3 schema fields changedv1.0.0
    • changedInput schema / properties / audit / description
      Previous value: -"An audit/v1 artifact."New value: +"The audit/v1 object returned by audit_repo or contained in projectAudits.audits[].audit; pass the artifact itself, not a file path."
    • changedInput schema / properties / itemId / description
      Previous value: -"Optional stable plan item id to select."New value: +"Optional exact plan item id to return; omit it to return the complete deterministic plan."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$id": "https://repo-test-architect.local/schemas/plan-v1.schema.json",
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": false,
      +  "properties": {
      +    "blockers": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "items": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "action": {
      +            "enum": [
      +              "add-test",
      +              "extend-test",
      +              "defer"
      +            ]
      +          },
      +          "existingTestEvidence": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "kind": {
      +                  "type": "string"
      +                },
      +                "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"
      +          },
      +          "maintenanceCost": {
      +            "maximum": 10,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "path": {
      +            "type": "string"
      +          },
      +          "priority": {
      +            "type": "integer"
      +          },
      +          "rationale": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "riskReductionScore": {
      +            "maximum": 10,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "sourceSignals": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "target": {
      +            "type": "string"
      +          },
      +          "targetId": {
      +            "type": "string"
      +          },
      +          "testLevel": {
      +            "enum": [
      +              "unit",
      +              "integration",
      +              "component",
      +              "ui",
      +              "none"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "action",
      +          "targetId",
      +          "target",
      +          "path",
      +          "testLevel",
      +          "priority",
      +          "riskReductionScore",
      +          "maintenanceCost",
      +          "rationale",
      +          "sourceSignals",
      +          "existingTestPaths"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "schemaVersion": {
      +      "const": "plan/v1"
      +    },
      +    "summary": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "addTestCount": {
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "blockerCount": {
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "confidence": {
      +          "enum": [
      +            "low",
      +            "medium",
      +            "high"
      +          ]
      +        },
      +        "deferredCount": {
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "extendTestCount": {
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "verificationCommand": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "confidence",
      +        "blockerCount",
      +        "addTestCount",
      +        "extendTestCount",
      +        "deferredCount"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "schemaVersion",
      +    "summary",
      +    "blockers",
      +    "items"
      +  ],
      +  "title": "Repo Test Architect Test Plan",
      +  "type": "object"
      +}
  4. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so safety is covered; the description usefully adds that output is deterministic and planning-only, countering the misleading "generate" verb. Gaps remain, such as what happens if both audit and repoRoot/projectRoot are supplied, or how conflicting inputs are resolved.

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 sentences, front-loaded with the core action and the sibling disambiguation, followed by input modes and then negative scope. No filler; every sentence adds routing or constraint information.

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?

This is a six-parameter tool with a nested goTarget object and an output schema, so return values need not be described. The description covers input modes and negative scope adequately, but leaves the nested goTarget contract (GOOS/GOARCH build-constraint evaluation) entirely to the 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?

With 83% schema coverage the baseline is 3, and the description earns extra credit by explaining the relationship between audit and repoRoot/projectRoot (pass one or the other) and that itemId optionally narrows to one exact plan item. It still says nothing about goTarget or changedPaths, which the schema carries alone.

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?

The description opens with a specific verb and resource ("Create a deterministic plan/v1 for one project") and immediately delimits scope against a named sibling ("use generate_project_test_plan for multiple audited projects"). An agent can distinguish this from the multi-project variant and from the execution/selection tools 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?

It states the selecting alternative explicitly (generate_project_test_plan for multiple audited projects) and enumerates the two mutually exclusive input modes: an existing audit/v1 artifact, or repoRoot plus projectRoot to audit deterministically. It also names what the tool does not do ("Does not execute tests or generate or write test code"), which is the key routing boundary against generate_selected_test.

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