Validate Content
validate_contentValidate content with deterministic and heuristic checks: balanced brackets, valid JSON, TODO detection, and automatic secret scrubbing.
Instructions
Run multi-tier validation on content.
Tier 1 (Deterministic):
Balanced brackets/braces
Valid JSON structure
Non-empty content
Tier 2 (Heuristic):
TODO/FIXME detection in code
Console statement detection
Hardcoded URL detection
Line length checks
Also scrubs secrets automatically (can be disabled).
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": {
"content": "<content>"
},
"name": "validate_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Content to validate | |
| file_path | No | Optional file path for context | |
| content_type | No | Type of content for context-aware validation | raw_text |
| scrub_secrets | No | Enable secret scrubbing (default: true) |