Metis · Data Guardian — Validate Pipeline Stage
validate_pipeline_stageValidates sub-agent output before the next pipeline stage, rejecting results with missing or empty required keys to prevent flawed data from propagating.
Instructions
M5.7.4 — Validate a sub-agent output before passing to the next pipeline stage.
Treats sub-agent output with the same suspicion as external tool output.
Rejects if any required keys are missing or empty.
Args:
output_json: JSON string of the sub-agent output dict.
required_keys: Comma-separated list of required keys (e.g., "title,summary,agent_slug").
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"output_json": "<output_json>",
"required_keys": "<required_keys>"
},
"name": "validate_pipeline_stage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output_json | Yes | ||
| required_keys | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |