MCP toxic flow: a tool that reads untrusted content next to an ungated write tool
A server that reads web or email content and can also send or delete without a confirmation hint lets injected text drive the write tool.
If one server can read content an attacker controls and also send, publish, delete or run something, mark the write tool as needing confirmation. The rule security.toxic-flow is a minor, warn-level finding for Claude and ChatGPT.
What you see
- A scan reports
security.toxic-flow:Reads untrusted content (fetch_page) and can act without a confirmation hint (send_notification), listing up to three tools of each kind. - Untrusted readers are tools that browse, scrape or crawl, or that read or fetch objects such as pages, emails, issues, comments or messages, unless
openWorldHintisfalse. Ungated writers are tools with an outbound verb (send, post, publish, delete, forward, upload, run, execute, deploy, merge and similar) that have neitherreadOnlyHint: truenordestructiveHint: trueand whose description does not mention confirmation, approval, a dry run or consent.
Why it happens
Each tool is reasonable alone. Together, text inside a fetched page or message can instruct the model to call the write tool. The rule cites Invariant Labs' toxic flow analysis and the Snyk Agent Scan; the pattern is a known class of tool-poisoning and prompt-injection risk, and the OWASP MCP Top 10 entry on tool poisoning is at owasp.github.io.
Check it yourself
curl -s -X POST https://mcp.acme.example/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-H "Authorization: Bearer $TOKEN" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' \
| jq -r '.result.tools[] | "\(.name)\topen=\(.annotations.openWorldHint)\tdestructive=\(.annotations.destructiveHint)\treadOnly=\(.annotations.readOnlyHint)"'
Look for a reader (fetch_, browse_, read_email) beside a sender (send_, post_, delete_, run_) with no hints set.
Fix
- Set
openWorldHint: trueon the reader anddestructiveHint: trueon the write tool. - State in the write tool's description that it needs the user's confirmation, for example:
Sends a shipping notice to the customer. Asks the user to confirm before sending. - Where you can, split readers and writers into separate servers, which removes the flow.
Related: security.cross-tool-shadowing, annotations.destructive-not-flagged.
Verify
Re-scan. The finding clears when either side is gated or absent.
Which clients care
Claude and ChatGPT, per the rule.
Source
Invariant Labs toxic flow analysis: https://invariantlabs.ai/blog/toxic-flow-analysis
Snyk Agent Scan: https://github.com/snyk/agent-scan
OWASP MCP03 Tool Poisoning: https://owasp.github.io/www-project-mcp-top-10/2025/MCP03-2025%E2%80%93Tool-Poisoning
Run a free scan at https://mcpshipyard.com/scan to check every rule at once.
Check every rule at once
A free scan runs this check and the other 152 against your live URL.
Related fixes
- Hidden or invisible instructions in MCP tool metadata (zero-width characters, HTML comments, encoded blobs)
- MCP metadata that overrides the model's instructions or claims priority over other tools
- MCP metadata that tells the model to hide things from the user (secrecy instructions)
- MCP metadata that tells the model to send data to a URL or email address