sparkforensics-mcp
v0.1.0MCP server for diagnosing Apache Spark event-log performance issues and comparing runs.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
diagnose_run
Diagnose a Spark run: thresholded findings with remediation text, an impact-ranked fix recommendation rollup, and clean-check status.
| Parameter | Type | Description |
|---|---|---|
format | string | |
impactBand | array | |
include | array | |
redact | boolean | |
runId | string | |
source | ||
stageId | integer | |
type | array |
get_run_summary
App/stage/job/sql counts and duration for a run, no findings.
| Parameter | Type | Description |
|---|---|---|
redact | boolean | |
runId | string | |
source |
compare_runs
Compare two runs: categorized findings delta and metric deltas.
| Parameter | Type | Description |
|---|---|---|
format | string | |
redact | boolean | |
runIdA | string | |
runIdB | string | |
sourceA | ||
sourceB |
evaluate_budgets
Evaluate a run (optionally against a second run for regression budgets) against pass/fail thresholds.
| Parameter | Type | Description |
|---|---|---|
failOnIntroduced | string | |
maxFailedTaskRatePct | number | |
maxRegressionPct | number | |
maxRuntimeMs | number | |
maxSkewRatio | number | |
maxSpillGb | number | |
minEfficiencyPct | number | |
regressionMetric | string | |
runId | string | Same as `source`, referencing an already-resolved run by id. |
runIdB | string | Same as `sourceB`, referencing an already-resolved run by id. |
source | The run to evaluate. Also the regression baseline when sourceB/runIdB is given. | |
sourceB | Optional candidate run, compared against source/runId as the regression baseline (maxRegressionPct/failOnIntroduced). |
get_finding_evidence
Raw evidence bundle backing one finding, for drill-down after diagnose_run.
| Parameter | Type | Description |
|---|---|---|
findingId * | string | |
runId * | string | |
redact | boolean |