Detecting instructions hidden in fetched text, HTML or a URL, and returning a verdict an agent can branch on before it follows them.
The problem with "be careful"
Every agent reads untrusted text: issues, pages, emails, tool output. Some of that text contains instructions addressed to the model. Telling the model to ignore them is a policy, not a control — and the model is the thing being attacked.
What detection can honestly do
It can flag the shapes that carry injections: imperatives aimed at the assistant, role and system-prompt language, hidden or zero-width text, instructions to exfiltrate context or credentials, base64 blobs that decode to instructions, and HTML that hides text from a human reader but not from a parser.
It cannot prove a page is clean. A checker that claims otherwise is worse than none, because it moves the decision from "unknown" to "safe".
Design the verdict, not the score
A number out of 100 leaves the agent guessing. Use a small vocabulary with a defined action: pass continue, warn continue under the agent's normal approval policy, review show the evidence and ask a human, block stop. Findings carry the matched span and its offset, so the human review is a two-second read.
Call it before the content is used
Check at the boundary: when a fetch returns, when a ticket is read, when pasted text enters the context. check_prompt accepts text, HTML or a URL and returns the verdict plus findings. If the verdict is review, quote the finding to the user; if it is block, do not proceed.
Try it on a real call. The hosted MCP endpoint answers 50 calls per IP per day without a signup, then 0.01 USDC per call over x402 on Base.
Pricing and endpoint Repository
claude mcp add slf-guardian -- npx -y slf-guardian-mcp