agent.json
{
"id": "agentrove.test-report-analyst",
"name": "Test Report Analyst",
"version": "0.1.2",
"license": "MIT",
"summary": "Reads JUnit XML, TAP, Jest/Vitest JSON and lcov files in your project folder: pass/fail/skip per suite, slowest tests, failures with their first message lines, run-to-run comparison with flaky candidates, and coverage by file. Read-only; runs nothing.",
"description": "Analyses test result and coverage files that your own test runs produced; it never runs tests, commands or code and makes no network requests. XML is read with a small built-in parser that refuses DOCTYPE and ENTITY declarations, so no entity is expanded and nothing external is loaded. Files are read only inside the workspace folder (AGENTROVE_TEST_REPORTS_ROOT, or the folder the CLI / MCP server starts in) with the same path, link and size rules as workflow-automation. Failure messages are data: they are shown truncated and quoted, never followed. The one write is write_report, which creates a single new .md/.txt/.json report file in reports/ after confirm: true, never replaces an existing file and never uses an instruction or configuration file name. Without AGENTROVE_TEST_REPORTS_ROOT, the start folder is used only if it looks like a project; home, system and root folders are refused.",
"sdk_import": "../../../sdk/index.js",
"entry": {
"module": "src/index.js",
"cli": "bin/cli.js",
"mcp": "bin/mcp.js"
},
"tools": [
{
"name": "summarize_results",
"description": "Summarises one test run from JUnit XML, TAP or Jest/Vitest JSON reporter files (paths or globs inside the workspace, and/or results_text): overall status, totals, pass/fail/error/skip per suite, slowest tests, failures with the first lines of their messages, tests that passed only after a retry, per-file parse status and a Markdown report. Files that cannot be read are listed and make the result incomplete.",
"side_effects": "none",
"requires_confirmation": false,
"input_schema": {
"type": "object",
"additionalProperties": false,
"properties": {
"paths": {
"type": "array",
"minItems": 1,
"maxItems": 200,
"items": {
"type": "string",
"maxLength": 400
},
"description": "Result files or globs relative to the workspace, e.g. [\"reports/junit/*.xml\"]."
},
"results_text": {
"type": "string",
"maxLength": 20000000,
"description": "Test results passed as text (for example pasted TAP output or another tool's output)."
},
"format": {
"type": "string",
"enum": [
"auto",
"junit",
"tap",
"jest"
],
"description": "Default auto (by extension, then content)."
},
"label": {
"type": "string",
"maxLength": 100
},
"title": {
"type": "string",
"maxLength": 200,
"description": "Heading of the Markdown report."
},
"slowest": {
"type": "integer",
"minimum": 0,
"maximum": 100,
"description": "How many slowest tests to list. Default 10."
},
"max_failures": {
"type": "integer",
"minimum": 0,
"maximum": 500,
"description": "Failures listed in full. Default 50."
},
"message_lines": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"description": "First lines of each failure message to keep. Default 5."
},
"max_file_bytes": {
"type": "integer",
"minimum": 1024,
"maximum": 52428800,
"description": "Per-file size limit. Default 20 MB, at most 50 MB."
}
}
},
"output_schema": {
"type": "object",
"required": [
"workspace",
"status",
"complete",
"totals",
"suites",
"suites_total",
"slowest",
"failures",
"failures_total",
"flaky_in_run",
"files",
"warnings",
"report"
],
"properties": {
"workspace": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"passed",
"failed",
"no_tests"
]
},
"complete": {
"type": "boolean"
},
"totals": {
"type": "object",
"required": [
"tests",
"passed",
"failed",
"errors",
"skipped",
"todo",
"duration_ms",
"with_duration"
]
},
"suites": {
"type": "array",
"items": {
"type": "object",
"required": [
"suite",
"tests",
"passed",
"failed",
"errors",
"skipped"
]
}
},
"suites_total": {
"type": "integer",
"minimum": 0
},
"slowest": {
"type": "array",
"items": {
"type": "object",
"required": [
"suite",
"name",
"duration_ms",
"status"
]
}
},
"failures": {
"type": "array",
"items": {
"type": "object",
"required": [
"suite",
"name",
"status",
"message_lines"
]
}
},
"failures_total": {
"type": "integer",
"minimum": 0
},
"flaky_in_run": {
"type": "array",
"items": {
"type": "object",
"required": [
"suite",
"name",
"reason"
]
}
},
"files": {
"type": "array",
"items": {
"type": "object",
"required": [
"path",
"status"
]
}
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
},
"report": {
"type": "string"
}
}
}
},
{
"name": "compare_runs",
"description": "Compares two test runs (base and head, each from files/globs or results_text): new failures, fixed tests, still failing, new and removed tests, tests that got much slower, and flaky candidates: tests whose status changed although changed_files says no files changed between the runs (pass []), or that passed and failed within one run (retries, reruns). Tests are matched by suite and name, with a file-name fallback for reports made on different machines.",
"side_effects": "none",
"requires_confirmation": false,
"input_schema": {
"type": "object",
"required": [
"base",
"head"
],
"additionalProperties": false,
"properties": {
"base": {
"type": "object",
"additionalProperties": false,
"description": "The earlier run.",
"properties": {
"paths": {
"type": "array",
"minItems": 1,
"maxItems": 200,
"items": {
"type": "string",
"maxLength": 400
}
},
"results_text": {
"type": "string",
"maxLength": 20000000
},
"format": {
"type": "string",
"enum": [
"auto",
"junit",
"tap",
"jest"
]
},
"label": {
"type": "string",
"maxLength": 100
}
}
},
"head": {
"type": "object",
"additionalProperties": false,
"description": "The later run.",
"properties": {
"paths": {
"type": "array",
"minItems": 1,
"maxItems": 200,
"items": {
"type": "string",
"maxLength": 400
}
},
"results_text": {
"type": "string",
"maxLength": 20000000
},
"format": {
"type": "string",
"enum": [
"auto",
"junit",
"tap",
"jest"
]
},
"label": {
"type": "string",
"maxLength": 100
}
}
},
"changed_files": {
"type": "array",
"maxItems": 10000,
"items": {
"type": "string",
"maxLength": 400
},
"description": "Files changed between the two runs (for example from your version control). An empty list means nothing changed, so any pass/fail flip is a flaky candidate. Omit when unknown."
},
"message_lines": {
"type": "integer",
"minimum": 1,
"maximum": 50
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 1000,
"description": "Rows per list. Default 100."
},
"max_file_bytes": {
"type": "integer",
"minimum": 1024,
"maximum": 52428800
}
}
},
"output_schema": {
"type": "object",
"required": [
"workspace",
"base",
"head",
"matched",
"new_failures",
"fixed",
"still_failing",
"new_tests",
"removed_tests",
"flaky_candidates",
"slower",
"counts",
"changed_files_known",
"base_files",
"head_files",
"warnings",
"report"
],
"properties": {
"workspace": {
"type": "string"
},
"base": {
"type": "object",
"required": [
"status",
"complete",
"totals"
]
},
"head": {
"type": "object",
"required": [
"status",
"complete",
"totals"
]
},
"matched": {
"type": "integer",
"minimum": 0
},
"new_failures": {
"type": "array",
"items": {
"type": "object",
"required": [
"suite",
"name",
"base_status",
"head_status",
"flaky_candidate"
]
}
},
"fixed": {
"type": "array",
"items": {
"type": "object",
"required": [
"suite",
"name",
"base_status",
"head_status",
"flaky_candidate"
]
}
},
"still_failing": {
"type": "array",
"items": {
"type": "object",
"required": [
"suite",
"name"
]
}
},
"new_tests": {
"type": "array",
"items": {
"type": "object",
"required": [
"suite",
"name",
"status"
]
}
},
"removed_tests": {
"type": "array",
"items": {
"type": "object",
"required": [
"suite",
"name",
"status"
]
}
},
"flaky_candidates": {
"type": "array",
"items": {
"type": "object",
"required": [
"suite",
"name",
"reason"
]
}
},
"slower": {
"type": "array",
"items": {
"type": "object",
"required": [
"suite",
"name",
"base_ms",
"head_ms"
]
}
},
"counts": {
"type": "object",
"required": [
"new_failures",
"fixed",
"still_failing",
"new_tests",
"removed_tests",
"flaky_candidates"
]
},
"changed_files_known": {
"type": "boolean"
},
"base_files": {
"type": "array",
"items": {
"type": "object",
"required": [
"path",
"status"
]
}
},
"head_files": {
"type": "array",
"items": {
"type": "object",
"required": [
"path",
"status"
]
}
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
},
"report": {
"type": "string"
}
}
}
},
{
"name": "coverage_report",
"description": "Coverage by file from lcov files (lcov.info; paths or globs inside the workspace, or results_text): line, function and branch coverage, uncovered-line counts and ranges, files below an optional threshold, totals and a Markdown report. Records for the same file (several test runs) are merged.",
"side_effects": "none",
"requires_confirmation": false,
"input_schema": {
"type": "object",
"additionalProperties": false,
"properties": {
"paths": {
"type": "array",
"minItems": 1,
"maxItems": 200,
"items": {
"type": "string",
"maxLength": 400
},
"description": "lcov files or globs relative to the workspace, e.g. [\"coverage/lcov.info\"]."
},
"results_text": {
"type": "string",
"maxLength": 20000000
},
"format": {
"type": "string",
"enum": [
"auto",
"lcov"
]
},
"label": {
"type": "string",
"maxLength": 100
},
"sort": {
"type": "string",
"enum": [
"uncovered",
"coverage",
"path"
],
"description": "Default uncovered (most uncovered lines first)."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 1000,
"description": "Files listed. Default 50."
},
"threshold": {
"type": "number",
"minimum": 0,
"maximum": 100,
"description": "Line coverage percentage; files below it are listed in below_threshold."
},
"include_lines": {
"type": "boolean",
"description": "Also return every uncovered line number (up to 5000 per file)."
},
"max_file_bytes": {
"type": "integer",
"minimum": 1024,
"maximum": 52428800
}
}
},
"output_schema": {
"type": "object",
"required": [
"workspace",
"totals",
"files",
"files_total",
"threshold",
"below_threshold",
"sources",
"complete",
"warnings",
"report"
],
"properties": {
"workspace": {
"type": "string"
},
"totals": {
"type": "object",
"required": [
"files",
"lines_found",
"lines_hit",
"uncovered_lines"
]
},
"files": {
"type": "array",
"items": {
"type": "object",
"required": [
"path",
"lines_found",
"lines_hit",
"uncovered_lines",
"uncovered_ranges"
]
}
},
"files_total": {
"type": "integer",
"minimum": 0
},
"threshold": {
"type": [
"number",
"null"
]
},
"below_threshold": {
"type": "array",
"items": {
"type": "string"
}
},
"sources": {
"type": "array",
"items": {
"type": "object",
"required": [
"path",
"status"
]
}
},
"complete": {
"type": "boolean"
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
},
"report": {
"type": "string"
}
}
}
},
{
"name": "write_report",
"description": "Saves a report (for example the report field of another tool) as ONE new .md, .markdown, .txt or .json file inside the workspace's reports/ folder. Requires confirm: true. Never replaces an existing file (if_exists: \"suffix\" picks name-2.md and so on), never uses a name that AI assistants or tools read as instructions or configuration (CLAUDE.md, AGENTS.md, package.json, .claude/ and similar), never writes through links, deletes nothing.",
"side_effects": "writes_local_files",
"requires_confirmation": true,
"input_schema": {
"type": "object",
"required": [
"path",
"content"
],
"additionalProperties": false,
"properties": {
"path": {
"type": "string",
"minLength": 1,
"maxLength": 400,
"description": "Path inside reports/, such as reports/test-summary.md."
},
"content": {
"type": "string",
"maxLength": 5000000,
"description": "Text to save, e.g. the report from summarize_results, compare_runs or coverage_report."
},
"if_exists": {
"type": "string",
"enum": [
"error",
"suffix"
],
"description": "Default error (nothing is written)."
},
"create_folders": {
"type": "boolean",
"description": "Default true."
},
"confirm": {
"type": "boolean",
"description": "Must be true; set it only after the user approved the path and content."
}
}
},
"output_schema": {
"type": "object",
"required": [
"workspace",
"path",
"bytes",
"sha256",
"created_folders",
"written"
],
"properties": {
"workspace": {
"type": "string"
},
"path": {
"type": "string"
},
"renamed_from": {
"type": [
"string",
"null"
]
},
"bytes": {
"type": "integer",
"minimum": 0
},
"sha256": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"created_folders": {
"type": "array",
"items": {
"type": "string"
}
},
"written": {
"type": "boolean"
}
}
}
}
],
"permissions": {
"filesystem": "read_write",
"network": [],
"credentials": [],
"notes": "No network, no credentials, no processes. summarize_results, compare_runs and coverage_report only read files inside the workspace folder (AGENTROVE_TEST_REPORTS_ROOT; otherwise the start folder, only if it looks like a project: .git, package.json, pyproject.toml, .agentrove-workspace and similar). Drive roots, the home folder itself and system folders are refused. Hidden entries and links leading outside are refused. write_report (confirm: true) creates one new report file in reports/, never with an instruction or configuration name, and never replaces or deletes anything. AGENTROVE_TEST_REPORTS_ROOT is optional configuration, not a secret."
},
"io": {
"inputs": [
{
"name": "results_text",
"type": "text"
},
{
"name": "content",
"type": "markdown_document"
}
],
"outputs": [
{
"name": "report",
"type": "markdown_document"
}
]
},
"runtimes": [
{
"id": "node",
"version": ">=20",
"tested": true,
"notes": "Tested with Node.js 24 on Windows 11 (NTFS) using synthetic report files; macOS and Linux not yet verified."
},
{
"id": "claude-code",
"tested": false,
"notes": "MCP stdio server; not yet verified in Claude Code by AgentRove"
}
],
"external_costs": "None. Runs locally on report files you already have; no network access, no API keys, no AI model calls, no test execution."
}