shieldpi-mcp
v0.5.1MCP server for ShieldPi Watchtower — run LLM security scans, generate drop-in guardrails from scan findings, operate the AI SOC analyst (incident triage +…
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_methodology
Return ShieldPi's published scoring + dedup + judge + breach-layer methodology. Use this when the user asks "how does ShieldPi score a model?", "what does ExploitDepth L3 mean?", or wants to cite the methodology in a report. Returns the same JSON document published at /api/intelligence/methodology.
get_attack_graph
Return the cross-customer anonymized attack-success graph. Maps attack technique → success rate per model family. The graph gets smarter as more scans complete (network effect). Useful when the user asks "which jailbreaks work on Claude / GPT / Gemini today?"
get_model_families
Return ShieldPi's model-family taxonomy + similarity edges. Useful when the user wants to know what families ShieldPi recognizes (anthropic / openai / google / meta / qwen / kimi / deepseek / etc.) and how findings transfer across families.
get_leaderboard_feed
Return the feed for https://shieldpi.io/leaderboard. Gives every model with a recent ShieldPi scan: best security score, grade, last-tested timestamp, weakest category. Updated as scans complete.
get_leaderboard
Return the public model leaderboard sorted by best security score. Args: limit: max number of models to return (default 30, capped server-side).
| Parameter | Type | Description |
|---|---|---|
limit | integer |
get_model_registry
Return the registry of models ShieldPi knows how to test. Args: family: optional family filter (anthropic, openai, google, meta, qwen, ...). When omitted, returns the current registry. Entries are not proof of testing.
| Parameter | Type | Description |
|---|---|---|
family |
list_attack_categories
List the attack categories currently exposed by ShieldPi. Requires SHIELDPI_API_KEY (free tier works). Each category includes the technique count, OWASP LLM mapping, and OWASP Agentic mapping.
list_attack_techniques
Browse the current attack technique catalog and its reported totals. Args: category: optional category filter (e.g. "prompt_injection", "jailbreak", "agent_exploitation", "data_exfiltration"). source: optional source filter (e.g. "github:elder-plinius/L1B3RT45", "shieldpi:agent_attack_library", "agentdojo"). limit: max techniques per page (default 25, max 100). offset: pagination offset. Requires SHIELDPI_API_KEY.
| Parameter | Type | Description |
|---|---|---|
category | ||
limit | integer | |
offset | integer | |
source |
start_scan
Start a ShieldPi scan using a configured target or a new target URL. Existing target_id: load the target and start a scan with its stored mode and credentials. Otherwise, create a browser/API/agent target first. Model scans require a target configured with a BYOK credential in the dashboard; supplying only a model slug or URL is refused before any HTTP request. Args: target_url: URL for a new browser/API target, or an agent identifier (auto-prefixed with agent://). Ignored when target_id is supplied. mode: mode for a new target: browser, api, o…
| Parameter | Type | Description |
|---|---|---|
api_format | string | |
api_model | ||
depth | string | |
mode | string | |
target_id | ||
target_name | ||
target_url | string |
get_scan_status
Get the current status of an in-progress scan. Cheap to call repeatedly — lighter than `get_scan_intelligence`. Use this to poll while a scan is running. Args: scan_id: UUID returned by `start_scan`. Returns JSON with status (queued | running | completed | completed_partial | failed), current phase, and elapsed time. Once status is `completed` or `completed_partial`, switch to `get_scan_intelligence` for results. Requires SHIELDPI_API_KEY.
| Parameter | Type | Description |
|---|---|---|
scan_id * | string |
get_scan_intelligence
Pull the full intelligence + breach-forensics package for a scan. Returns: security score + grade + per-category results + extracted breach artifacts (creds / PII / code / tools) + kill chain narrative + business impact estimate. Only meaningful once the scan reaches `completed` or `completed_partial` — call `get_scan_status` first to check. Args: scan_id: UUID returned by `start_scan` or visible in the dashboard URL. Requires SHIELDPI_API_KEY.
| Parameter | Type | Description |
|---|---|---|
scan_id * | string |
get_onboarding_status
Check the customer's ShieldPi onboarding progress. Returns a 6-step checklist — API key, first target, runtime monitoring enabled, first SDK event received, webhook configured, first alert — with per-step done/pending status derived from live account state (no separate tracking table, so it's always accurate). Includes the next_step_id so the LLM can walk the user through the first incomplete step. Use when the user asks "what's left before I'm protected?" or "am I fully set up?". Requires SHIELDPI_API_KEY.
download_scan_bundle
Get the CI-friendly artifact bundle manifest for a completed scan. The bundle endpoint returns a ZIP with: • report.json (always) • report.pdf (when the plan permits) • guardrails/python.py, langchain.py, nemo.co, rules.json, stats.json • README.md Since MCP returns strings, this tool returns a *manifest* — metadata plus the signed URL the customer can curl from CI — rather than the raw zip bytes (which wouldn't survive serialization). For actually downloading, the CI pipeline uses: curl -H "X-API-Key: shpi_xxx" \…
| Parameter | Type | Description |
|---|---|---|
scan_id * | string |
get_incidents
List triaged incidents for the current ShieldPi customer. An incident is a cluster of related runtime alerts from one agent session that ShieldPi's AI SOC analyst has processed into a single verdict. Each incident carries an ai_summary, ai_severity, a false-positive flag, an ai_recommended_action, and an ai_kill_chain reconstruction. Args: status: triage lifecycle filter — open = not yet triaged triaged = AI has produced a verdict escalated = human attention requested resolved = analyst fixed it sup…
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
offset | integer | |
severity | ||
status | ||
target_id |
get_incident_detail
Full detail for one incident — kill chain + linked alerts + AI verdict. Returns the incident's rolled-up metadata, the AI analyst's structured verdict (summary, attacker_intent, kill_chain reconstruction, recommended_action), and every alert that was clustered into this incident in chronological order. Use this after ``get_incidents`` when the user asks to "walk through" a specific triaged case. Args: incident_id: UUID from ``get_incidents``. Requires SHIELDPI_API_KEY.
| Parameter | Type | Description |
|---|---|---|
incident_id * | string |
trigger_triage
Kick off an on-demand triage pass. The customer's background Celery worker already runs triage every 60 seconds. Use this tool for a synchronous "triage now" when the user wants a fresh verdict immediately after new alerts fire. Args: target_id: scope to one monitored agent. Omit to triage every target for this customer. run_ai: set to False to skip the Claude call (correlation + linking only — fast, no API spend). max_alerts: ceiling on how many untriaged alerts this call will process (default 200). Returns a…
| Parameter | Type | Description |
|---|---|---|
max_alerts | integer | |
run_ai | boolean | |
target_id |
set_incident_status
Human override for an incident's lifecycle status. Use when the analyst (or the LLM acting on the analyst's behalf) wants to: - escalate — flag for senior review - resolve — confirm mitigated - suppress — confirm false positive / not actionable - open — re-open a previously-closed incident Args: incident_id: UUID of the incident. status: new lifecycle state. note: optional resolution note (reserved for future audit log; currently unused by the API but accepted for forward compatibility).…
| Parameter | Type | Description |
|---|---|---|
incident_id * | string | |
status * | string | |
note |
get_scan_guardrails
Return auto-generated runtime guardrails for a completed scan. Every L2+ true-positive finding in the scan becomes one or more deployable guardrail rules. Patterns are drawn from categories like prompt-injection, jailbreak, tool-abuse, data-exfil, credential-leak, and encoding-bypass. Response JSON includes per-rule metadata (scope, pattern type, action, severity) plus aggregate stats (total findings, qualifying, by_scope, by_action). Use `export_scan_guardrails` to pull the same rules as a deployable Python / LangChain / NeMo Colang file. Args: s…
| Parameter | Type | Description |
|---|---|---|
scan_id * | string |
export_scan_guardrails
Export scan guardrails as a deployable file. Returns the file body as a string so you can paste it directly into a codebase, save it to disk, or walk the user through each rule. Formats: - `python` — drop-in ``.py`` middleware with `check_input()` / `check_output()` / `check_tool_call()` helpers. Works in any Python agent. - `langchain` — ``BaseCallbackHandler`` subclass for LangChain / LangGraph agents. Blocks at `on_tool_start` / `on_chat_model_start` / `on_llm…
| Parameter | Type | Description |
|---|---|---|
scan_id * | string | |
format | string |
get_live_alerts
List runtime alerts from deployed agents being monitored by ShieldPi. This is the primary "what's happening on my agents right now" tool. Alerts come from the Live Agent Monitor SDK installed inside customer agents — every prompt+response gets analyzed by ShieldPi's 6 detectors (pattern match / trajectory / memory poisoning / memory integrity / response leak / cross-session correlation) and any detection becomes an alert in this list. Args: severity: filter by severity. Omit to see all. status: filter by triage status (default: open — un-triage…
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
severity | ||
status | string | |
target_id |
get_alert_detail
Pull the full forensic detail for one runtime alert. Returns: alert metadata + the full session event chain leading up to the alert (the kill chain replay) + extracted artifacts (credentials, PII, code, tool calls) + matched attack technique from ShieldPi's attack technique catalog. Use this after `get_live_alerts` to drill into the worst alert and walk the user through what actually happened. Args: alert_id: UUID returned in `get_live_alerts`. Requires SHIELDPI_API_KEY.
| Parameter | Type | Description |
|---|---|---|
alert_id * | string |
acknowledge_alert
Mark an alert as acknowledged (triaged but not yet resolved). Use when an analyst has seen the alert and is investigating but the underlying issue isn't fixed yet. Distinguishes alerts that need eyes-on (open) from alerts being worked (acknowledged). Args: alert_id: UUID of the alert to acknowledge. Requires SHIELDPI_API_KEY.
| Parameter | Type | Description |
|---|---|---|
alert_id * | string |
resolve_alert
Mark an alert as resolved (analyst confirmed + mitigated). Use after the underlying issue is fixed (agent updated, attacker blocked, etc.) so the alert disappears from the open queue. Args: alert_id: UUID of the alert to resolve. note: optional resolution note for the audit log. Requires SHIELDPI_API_KEY.
| Parameter | Type | Description |
|---|---|---|
alert_id * | string | |
note |
list_monitor_sessions
List recent monitored sessions across one or all deployed agents. A "session" is a conversation between a user and a monitored agent — every prompt + response + tool call from that conversation lives in one session. Use this to find sessions worth drilling into via `get_session_events`, especially when investigating an alert. Args: target_id: scope to one monitored agent. Omit to see across all. limit: max sessions to return (default 25, max 200). Returns JSON list with session metadata: started_at, event_count, alert_count, target_id, session_i…
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
target_id |
get_session_events
Get the full event chain for one monitored session. Returns every prompt, response, and tool call from the session in order — the raw conversation that ShieldPi's detectors saw. This is the kill-chain replay: walk the conversation turn by turn to understand exactly what the attacker tried. Args: session_id: UUID from `get_live_alerts` (alert.session_id) or from `list_monitor_sessions`. limit: max events to return (default 100, max 500). Requires SHIELDPI_API_KEY.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
limit | integer |