Mid-Session MCP tools/list Rug-Pull & Schema Mutation Detector
detect_mcp_schema_rugpullCompares a pinned baseline tools/list snapshot against a live MCP server response to detect mid-session schema or description tampering.
Instructions
Computes structural diffs between a pinned baseline MCP tools/list snapshot and a live server response to catch mid-session description or schema tampering. Use when verifying that a connected MCP server has not mutated its tool definitions mid-session; for performing a first-time static security audit on a single MCP manifest, use audit_mcp_server_manifest instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'baseline_tools_json' ('current_tools_json' defaults to 'standard'), supports '?demo=true' or L402 (20 sats), and returns HTTP 400 if invalid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diff_mode | No | Comparison strictness across descriptions and inputSchema; defaults to 'full_structural' when omitted. | |
| current_tools_json | No | JSON-serialized live tools/list array to compare against the baseline; defaults to '[]' when omitted. | |
| baseline_tools_json | Yes | JSON-serialized baseline tools/list array captured when the MCP server was first trusted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| verdict | Yes | Connection verdict ('SCHEMA_INTEGRITY_VERIFIED' or 'REVOKE_MCP_SERVER_IMMEDIATELY'). | |
| mutated_tools | Yes | Detailed list of modified tools and their exact mutation type. | |
| timestamp_utc | Yes | ISO-8601 UTC timestamp of the diff audit. | |
| rugpull_detected | Yes | True if any tool was surreptitiously added or had its description/schema altered. |