scan_agent
Red-team an AI agent for security weaknesses — prompt injection, system-prompt leakage, sensitive-data disclosure, unsafe output handling and excessive agency — mapped to the OWASP LLM Top 10, and return a Markdown report. This is agent-to-agent scanning: use it to assess another agent from here. Two target kinds are supported: kind="openai" for an OpenAI-compatible chat-completions endpoint, or kind="mcp" for an MCP server (its tool manifest is audited for tool-poisoning and over-broad capabilities). Requires a ScanLabsAI API key in the connection; each agent scan uses 5 AI credits. Probing is active and adversarial — only scan agents you own or are authorised to test.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deep | No | Run deeper probes (jailbreak + resource-exhaustion). Defaults to false. | |
| kind | Yes | Target type: "openai" for a chat-completions endpoint, "mcp" for an MCP server. | |
| model | No | Model name for OpenAI-compatible endpoints, e.g. gpt-4o-mini. | |
| apiKey | No | Optional bearer token / API key the target agent requires. Sent to the target only; not stored. | |
| endpoint | Yes | The agent endpoint URL (chat-completions URL, or MCP server URL). |