rt_check_prompt_injection
Analyzes actual MCP prompt content to detect prompt poisoning, template injection, and dangerous argument names.
Instructions
Fetch actual prompt content via getPrompt() and scan for: poisoning patterns, template injection syntax (Mustache, Jinja2, ERB, ES template literals), and dangerous argument names (command, code, exec, etc.). Goes beyond metadata inspection.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "rt_check_prompt_injection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Additional environment variables for stdio | |
| url | No | MCP server URL for HTTP/SSE transport (e.g. 'http://localhost:3000/mcp') | |
| args | No | Command arguments for stdio (e.g. ['run', 'server.js']) | |
| command | No | Server command for stdio transport (e.g. 'node', 'bun', 'npx') | |
| headers | No | Custom HTTP headers (e.g. { 'Authorization': 'Bearer token' }) | |
| timeout_ms | No | Connection timeout in milliseconds (default: 30000) | |
| prompt_name | No | Check only this prompt (default: all prompts) |