DET-224 · agent · confidence High

Tool List Drift at Runtime

Hash the tool names and descriptions an agent receives each session and alert when they change from the approved version.

Agents act on tool descriptions, and servers can change them after approval. Logging the tools/list response through a gateway, hashing each tool's name, description and schema, and comparing with the approved hash catches silent updates and cross-server shadowing text.

Most clients do not show users when a tool description changes, so this check is often the only way to see it. Keep the approved manifest in code, require review to update it, and block sessions when hashes do not match for high-risk servers.

Data sources
MCP gateway or proxy logsAgent client debug logs
Platforms
AI Platform

Logic

1. At each session start, capture `tools/list` from every server.
2. Compute sha256 over name + description + inputSchema per tool; compare with the approved manifest.
3. Alert on any change, and raise severity if the new text matches `(?i)(ignore|before (using|calling)|do not (tell|mention)|<important>|send .* to)` or names another server's tools.

False positives

Legitimate version upgrades that have not been re-approved yet.

Catches 1 technique