Appearance
Tool Schemas
Radar exposes four MCP tools.
ask
json
{
"paths": ["src/a.ts", "src/b.ts"],
"question": "How do these modules communicate?"
}Required:
paths: array of file paths.question: focused question about those files.
Validation:
pathsmust contain at least one non-empty path.questionmust be non-empty.- Extra properties are rejected.
search
json
{
"query": "RADAR_API_KEY",
"root": ".",
"glob": "*.ts",
"context": "Find where config is loaded"
}Required:
query: literal string or regex pattern.
Optional:
rootglobcontext
Validation:
- All provided string fields must be non-empty.
- Extra properties are rejected.
summarize
json
{
"path": "test-output.log",
"focus": "focus on failures"
}Provide either:
pathcontent
Optional:
focus
Validation:
- Provide exactly one of
pathorcontent. - All provided string fields must be non-empty.
- Extra properties are rejected.
write
json
{
"spec": "Generate a test file matching this reference",
"context": "test/config.test.ts",
"target": "test/new-config.test.ts",
"dryRun": true
}Required:
speccontexttarget
Optional:
dryRunupdateoverwrite
Validation:
spec,context, andtargetmust be non-empty.- Extra properties are rejected.