Agent rules-file scanner
scan_rulesRules-file scanner: checks CLAUDE.md, AGENTS.md, .cursorrules, .cursor/rules, copilot-instructions.md, GEMINI.md, .windsurfrules, .clinerules, .mcp.json and .claude/settings.json for hidden Unicode instructions (the rules-file backdoor), hidden comments, remote-code and data-leak commands, safety bypasses, planted scripts, risky URLs and leaked secrets; up to 20 files per call. Use before trusting or committing an agent instruction or config file you did not write: a cloned repo's CLAUDE.md or AGENTS.md, a .cursorrules from a template site, a shared .mcp.json or .claude/settings.json, or a pull request that edits one. Pass text (+ path) for one file, files[] {path, text} for up to 20, or url for a raw file. Ordinary rules-file content is expected and not flagged; only hidden text, data leaks, curl|sh, skip-permission flags, credential access, planted tags, silent changes, risky URLs (webhook collectors, tunnels, paste sites, shorteners, raw IPs) and secrets are. Returns verdict (clean, review, dangerous), score 0-100 (higher is riskier), files[] {path, fileType, verdict, score, findings[] {rule, severity, message, evidence, line, location}, hidden, urls[], secrets, clean (the text with invisible characters removed)} and summary. Nothing is stored. Price: $0.002 per call from Exepal credit; not charged if the call fails. Includes free daily calls.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "scan_rules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Instead of text: a public raw file URL, e.g. https://raw.githubusercontent.com/owner/repo/main/CLAUDE.md | |
| path | No | Its file name or path, e.g. CLAUDE.md, AGENTS.md, .cursorrules, .cursor/rules/style.mdc, .github/copilot-instructions.md, .mcp.json or .claude/settings.json; picks the file type | |
| text | No | Content of one rules or agent-config file (up to 500,000 characters) | |
| files | No | Instead of text: up to 20 files {path, text}, e.g. every agent file in a repo (2,000,000 characters in total) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Present when a url was fetched | |
| files | No | One entry per file, in input order | |
| score | No | Highest file score, 0-100, higher is riskier | |
| summary | No | ||
| verdict | No | Worst verdict across files: clean, review or dangerous | |
| finalUrl | No |