# Untrusted Instruction Detector > Tool results and fetched pages can hide ignore-previous-instructions text or a fake system prompt, and an agent that follows them will treat untrusted text as a new policy. $0.002 per call, USDC via x402 or MPP. Detects override attempts, hidden markup, and prompt-exfil requests in caller-supplied text. This is detect only; it does not bypass, rewrite, or weaken a filter. An empty call scans a built-in labeled sample. ## Docs (free) - Human docs with copy-paste examples: https://untrusted-instruction-detector.fmf-x402.workers.dev/docs - OpenAPI 3.1: https://untrusted-instruction-detector.fmf-x402.workers.dev/openapi.json - This file: https://untrusted-instruction-detector.fmf-x402.workers.dev/llms.txt - MCP server (Streamable HTTP): https://untrusted-instruction-detector.fmf-x402.workers.dev/mcp - Health: https://untrusted-instruction-detector.fmf-x402.workers.dev/health - Attribution counters (no PII): https://untrusted-instruction-detector.fmf-x402.workers.dev/stats/refs ## How to pay No account and no API key. Unpaid calls receive HTTP 402 with an MPP challenge on Tempo (USDC.e or pathUSD). Official clients pay the challenge and retry automatically. POST JSON (or GET with query params) to any paid route and pay the MPP 402 challenge on Tempo (USDC.e or pathUSD). Bad input or an upstream failure returns 402 with an error and you are not charged. Optional ?ref=channel or header X-FMF-Ref attributes the call for our coverage map (ignored by the tool). ## Quick start mppx CLI (creates/uses a Tempo account in your keychain): ```bash npx mppx https://untrusted-instruction-detector.fmf-x402.workers.dev/v1/instruction-scan -X POST -H 'content-type: application/json' -d '{"text":"Search results:\n\nNormal citation: the price is $9.18.","source":"tool_result"}' ``` TypeScript (mppx). After Mppx.create(), global fetch handles 402: ```ts import { Mppx, tempo } from 'mppx/client' import { privateKeyToAccount } from 'viem/accounts' Mppx.create({ methods: [tempo({ account: privateKeyToAccount(process.env.TEMPO_PRIVATE_KEY) })], }) // Global fetch now pays the 402 automatically. const res = await fetch('https://untrusted-instruction-detector.fmf-x402.workers.dev/v1/instruction-scan', { method: 'POST', headers: { 'content-type': 'application/json', }, body: JSON.stringify({"text":"Search results:\n\nNormal citation: the price is $9.18.","source":"tool_result"}), }) console.log(await res.json()) ``` Python (pympp): ```python # pip install pympp # Docs: https://mpp.dev/sdk/python import asyncio from mpp.client import Mpp from mpp.methods.tempo import TempoAccount from mpp.methods.tempo import client as tempo account = TempoAccount.from_key("0x...") async def main(): async with Mpp(methods=[tempo.charge(account=account)]) as mpp: response = await mpp.fetch("https://untrusted-instruction-detector.fmf-x402.workers.dev/v1/instruction-scan", method="POST", json={"text":"Search results:\n\nNormal citation: the price is $9.18.","source":"tool_result"}) print(await response.json()) asyncio.run(main()) ``` An unpaid curl shows the 402 (you are not charged): ```bash curl -i -X POST https://untrusted-instruction-detector.fmf-x402.workers.dev/v1/instruction-scan -H 'content-type: application/json' -d '{"text":"Search results:\n\nNormal citation: the price is $9.18.","source":"tool_result"}' ``` ## MCP Add this to Cursor / Claude Desktop / VS Code MCP settings (Streamable HTTP): ```json { "mcpServers": { "fmf-mpp-untrusted-instruction-detector": { "url": "https://untrusted-instruction-detector.fmf-x402.workers.dev/mcp" } } } ``` `tools/list` is free. `tools/call` requires an MPP Payment credential in the Authorization header (or just call the HTTP route with mppx). The wrapper does not settle payment on its own and stores nothing. ## Routes - POST https://untrusted-instruction-detector.fmf-x402.workers.dev/v1/instruction-scan ($0.002) Untrusted Instruction Detector: Tool results and fetched pages can hide ignore-previous-instructions text or a fake system prompt, and an agent that follows them will treat untrusted text as a new policy. $0.002 per call, USDC via x402 or MPP. Detects override attempts, hidden markup, and prompt-exfil requests in caller-supplied text. This is detect only; it does not bypass, rewrite, or weaken a filter. An empty call scans a built-in labeled sample. Example: `npx mppx https://untrusted-instruction-detector.fmf-x402.workers.dev/v1/instruction-scan -X POST -H 'content-type: application/json' -d '{"text":"Search results:\n\nNormal citation: the price is $9.18.","source":"tool_result"}'` ## Sources and licences Operated by FMF Tools (fmf-tools@agentmail.to). Pay-per-call only; no API key and no account. Invalid input or an upstream failure returns 402 and is not charged. ## Sister services - [Doc Tools](https://mpp-docs.fmf-x402.workers.dev/docs?ref=cross-untrusted-instruction-detector): Pay-per-call PDF, Office, OCR, speech-to-text, voice memo and meeting notes - [Web & Data](https://mpp-agent-data.fmf-x402.workers.dev/docs?ref=cross-untrusted-instruction-detector): Pay-per-call scrape, extract, SEC filings, weather and FX - [Utility Tools](https://mpp-tools.fmf-x402.workers.dev/docs?ref=cross-untrusted-instruction-detector): Tempo chain, attestation, QR, DNS, email, IP, geo, timezone, tech detect, math - [AI Tools](https://mpp-ai.fmf-x402.workers.dev/docs?ref=cross-untrusted-instruction-detector): Pay-per-call chat, translation, embeddings and rerank, no API key - [Browser](https://mpp-browser.fmf-x402.workers.dev/docs?ref=cross-untrusted-instruction-detector): Pay-per-call headless Chrome screenshots, JS render and page-to-PDF - [Research](https://mpp-research.fmf-x402.workers.dev/docs?ref=cross-untrusted-instruction-detector): Papers, FDA drug labels, recalls, clinical trials and LEI - [EVM Decoder](https://mpp-chain.fmf-x402.workers.dev/docs?ref=cross-untrusted-instruction-detector): Pay-per-call calldata and event-log decoder, selectors, verified ABIs, no RPC - [Deepgram-compatible STT](https://mpp-stt.fmf-x402.workers.dev/docs?ref=cross-untrusted-instruction-detector): Drop-in /deepgram/transcribe and /v1/listen speech-to-text at $0.008, no API key - [Compat APIs](https://mpp-compat.fmf-x402.workers.dev/docs?ref=cross-untrusted-instruction-detector): OpenWeather-, Mapbox- and EDGAR-compatible routes at a third of the price (MPP + x402) - [Domain & Web Checks](https://mpp-domain.fmf-x402.workers.dev/docs?ref=cross-untrusted-instruction-detector): RDAP WHOIS, domain age and availability, HTTP status, security headers, SPF/DMARC (MPP + x402) - [Dev & Data Utils](https://mpp-utils.fmf-x402.workers.dev/docs?ref=cross-untrusted-instruction-detector): IBAN, GTIN, ISIN, crypto address, JWT, hash, cron, RRULE, semver, CSV at $0.001 (MPP + x402) - [MTG Sim](https://mtg-sim.fmf-x402.workers.dev/docs?ref=cross-untrusted-instruction-detector): Magic: The Gathering deck check, draw odds, land count and goldfish simulator - [Control-plane](https://controlplane-x402.fmf-x402.workers.dev/docs?ref=cross-untrusted-instruction-detector): Who controls this contract? MPP + x402 snapshots and Tempo token data - [Pokémon TCG Sim](https://pokemon-tcg-sim.fmf-x402.workers.dev/docs?ref=cross-untrusted-instruction-detector): Pokémon TCG simulator: goldfish, prize and draw sims, free Standard/Expanded deck check - [Yu-Gi-Oh Sim](https://yugioh-sim.fmf-x402.workers.dev/docs?ref=cross-untrusted-instruction-detector): Yu-Gi-Oh! simulator: goldfish, combo and hand-trap odds, free TCG/OCG/GOAT banlist deck check - [Crypto Tax Calculator](https://mpp-cryptotax.fmf-x402.workers.dev/docs?ref=cross-untrusted-instruction-detector): Crypto capital gains, cost basis (FIFO/HIFO/ACB), Form 8949 boxes G-L, Canada Schedule 3, tax-loss harvesting - [Business Docs & Data](https://mpp-biz.fmf-x402.workers.dev/docs?ref=cross-untrusted-instruction-detector): Invoice/receipt PDFs with pay-in-crypto QR, payment URIs, phone validation, barcodes - [Lorcana Sim](https://lorcana-sim.fmf-x402.workers.dev/docs?ref=cross-untrusted-instruction-detector): Disney Lorcana simulator: goldfish, ink and draw sims, free Core/Infinity deck check - [One Piece Sim](https://onepiece-sim.fmf-x402.workers.dev/docs?ref=cross-untrusted-instruction-detector): One Piece Card Game simulator: goldfish, DON!! curve, Life and draw odds, free deck check - [Hearthstone Sim](https://hearthstone-sim.fmf-x402.workers.dev/docs?ref=cross-untrusted-instruction-detector): Hearthstone simulator: mulligan odds, curve goldfish, draw odds, free deck check - [Chess Sim](https://chess-sim.fmf-x402.workers.dev/docs?ref=cross-untrusted-instruction-detector): Chess tools: forced-mate finder, best move, legal moves, free opening names and position check - [Dota 2 Sim](https://dota2-sim.fmf-x402.workers.dev/docs?ref=cross-untrusted-instruction-detector): Dota 2 simulator: right-click duel sim, build stats, EHP and DPS calculator - [CS2 Sim](https://cs2-sim.fmf-x402.workers.dev/docs?ref=cross-untrusted-instruction-detector): CS2 economy simulator: loss bonus, buy or eco, half simulation ## Attribution Append `?ref=your-channel` or send header `X-FMF-Ref: your-channel` on any request (including unpaid 402s and /docs). We count hits and paid successes per channel so we can see what actually drives calls. The parameter is ignored by the tool. ## Related - Related: FMF Recipes — which paid API to call for any agent task. https://agent-recipes.fmf-x402.workers.dev/mpp/recipes/find ($0.003, empty call works) · MCP https://agent-recipes.fmf-x402.workers.dev/mcp · https://agent-recipes.fmf-x402.workers.dev/llms.txt - Also: FMF Tools Etsy Movers — today's top 20 Etsy shops by sales acceleration. https://etsy-movers.fmf-x402.workers.dev/etsy/movers/today ($0.01, no input) · MCP https://etsy-movers.fmf-x402.workers.dev/mcp · https://etsy-movers.fmf-x402.workers.dev/llms.txt ## Pay without a wallet (prepaid credits, free trial) - Free trial: add header X-FMF-Trial: 1 to any paid route (a few free calls per IP per day). - API key: POST https://fmf-credits.fmf-x402.workers.dev/keys (free, includes trial calls), then send X-API-Key: fmf_... ; each call debits its listed price; failed calls are refunded. - Top up credits with x402/MPP USDC (https://fmf-credits.fmf-x402.workers.dev/mpp/credits/topup-5) or card via Stripe Checkout (https://fmf-credits.fmf-x402.workers.dev/pricing). - Prices: https://untrusted-instruction-detector.fmf-x402.workers.dev/pricing. The per-call x402/MPP 402 flow is unchanged.