Skip to main content
Glama
RepoAssay

Repo Test Architect

Rank Project Test Candidates

rank_project_candidates
Read-onlyIdempotent

Ranks candidates from a project-audits/v1 artifact while preserving project identity. Call this to compare projects; analyze_repository already includes this result.

Instructions

Rank candidates from an existing project-audits/v1 artifact while preserving project identity. analyze_repository already includes this result.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectAuditsYesA project-audits/v1 artifact.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
rootYes
summaryYes
candidatesYes
schemaVersionYes
unsupportedProjectsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.0.0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$id": "project-candidate-ranking-v1.schema.json",
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": false,
      +  "properties": {
      +    "candidates": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "adapterId": {
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "category": {
      +            "enum": [
      +              "untested",
      +              "covered-but-risky"
      +            ]
      +          },
      +          "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"
      +          },
      +          "kind": {
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "maintenanceCost": {
      +            "maximum": 10,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "path": {
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "priority": {
      +            "type": "integer"
      +          },
      +          "projectId": {
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "projectRoot": {
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "projectTargetId": {
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "rationale": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "riskReductionScore": {
      +            "maximum": 10,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "signals": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "target": {
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "targetId": {
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "testLevel": {
      +            "enum": [
      +              "unit",
      +              "integration",
      +              "component",
      +              "ui",
      +              "none"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "projectRoot",
      +          "adapterId",
      +          "projectTargetId",
      +          "targetId",
      +          "target",
      +          "path",
      +          "category",
      +          "kind",
      +          "testLevel",
      +          "priority",
      +          "riskReductionScore",
      +          "maintenanceCost",
      +          "signals",
      +          "rationale",
      +          "existingTestPaths"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "root": {
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "schemaVersion": {
      +      "const": "project-candidate-ranking/v1"
      +    },
      +    "summary": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "auditCoverage": {
      +          "enum": [
      +            "complete",
      +            "partial",
      +            "none"
      +          ]
      +        },
      +        "auditedProjectCount": {
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "candidateCount": {
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "projectCount": {
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "unsupportedProjectCount": {
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "unsupportedReasons": {
      +          "items": {
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "type": "array",
      +          "uniqueItems": true
      +        }
      +      },
      +      "required": [
      +        "projectCount",
      +        "auditedProjectCount",
      +        "unsupportedProjectCount",
      +        "auditCoverage",
      +        "unsupportedReasons",
      +        "candidateCount"
      +      ],
      +      "type": "object"
      +    },
      +    "unsupportedProjects": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "adapterMatches": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "adapterId": {
      +                  "minLength": 1,
      +                  "type": "string"
      +                },
      +                "matchedEcosystems": {
      +                  "items": {
      +                    "minLength": 1,
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                },
      +                "matchedLanguages": {
      +                  "items": {
      +                    "minLength": 1,
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                },
      +                "maturity": {
      +                  "enum": [
      +                    "supported",
      +                    "experimental",
      +                    "planned"
      +                  ]
      +                }
      +              },
      +              "required": [
      +                "adapterId",
      +                "maturity",
      +                "matchedEcosystems",
      +                "matchedLanguages"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "ecosystems": {
      +            "items": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "languages": {
      +            "items": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "projectId": {
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "projectRoot": {
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "reason": {
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "supportStatusReason": {
      +            "minLength": 1,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "projectRoot",
      +          "reason",
      +          "ecosystems",
      +          "languages",
      +          "adapterMatches",
      +          "supportStatusReason"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "schemaVersion",
      +    "root",
      +    "summary",
      +    "unsupportedProjects",
      +    "candidates"
      +  ],
      +  "title": "Project Candidate Ranking Artifact",
      +  "type": "object"
      +}
  2. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds that it operates on an existing artifact and preserves project identity, which is a useful trait, but says nothing about what ranking means or how ties/ordering are handled.

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?

Two short sentences, front-loaded with the core action, no redundant filler. It is slightly terse on the substantive behavior, but 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 the read-only annotations cover the safety dimension. The description is adequate for a single-artifact read tool, though what 'candidates' and 'rank' concretely mean is left implicit.

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?

Only one parameter with 100% schema description coverage, so the schema does the documenting. The description adds no format or structure detail about the projectAudits artifact beyond the schema, giving a baseline 3.

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?

States a specific verb (rank) and resource (candidates from a project-audits/v1 artifact), and notes the identity-preservation scope. It does not fully disambiguate from the sibling rank_test_candidates, so it falls short of a 5.

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?

Explicitly tells the agent that analyze_repository already includes this result, which is an actionable when-not-to-use signal. However it doesn't state the positive condition under which calling this standalone tool is preferred, so it isn't a full 5.

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