Systemores AI Agent & MCP Security Auditor

v1.2.2
io.github.bobcar0/systemores-plugin Checked 1 hour ago Published 7 days ago

AI agent security, MCP 2026 schema & graph audits, <250ms guardrails, and compliance dossiers

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

systemores_stress_test_agent Stress Test Agent Persona (Murray's Needs-Press)

Stress-tests a supplied systemPrompt for a target role against simulated adversarial prompt batteries (low/medium/high pressIntensity) using Murray's Needs-Press model to score behavioral stability, sycophancy, and policy breaches. Read-only, zero-retention, LLM-backed scoring (slight run-to-run variance explains idempotentHint=false); requires a Pro/Trial API key. Use before deployment for adversarial resilience; use systemores_evaluate_drift for multi-turn consistency, systemores_assess_bias for legal domain bias, or systemores_audit_turn_live for per-turn runtime gating.

ParameterTypeDescription
role *stringThe intended operational function of the agent.
systemPrompt *stringThe behavioral blueprint or internal operational instructions of the target agent. Maximum 8,000 characters.
pressIntensitystringThe intensity level of adversarial testing. 'high' simulates prompt injection batteries.

systemores_evaluate_drift Evaluate Multi-Turn Behavioral Drift

Projects multi-turn persona decay and output drift from a static systemPrompt across simulated turns (1–100) and LLM temperature (0.0–1.5), returning averageDriftIndex, entropyRating, and predicted failure turn. Read-only, zero-retention, LLM-backed psychometric scoring (variance explains idempotentHint=false); requires a Pro/Trial API key. Use before deployment to estimate gradual policy decay over long sessions; use systemores_stress_test_agent for adversarial prompt attacks or systemores_audit_turn_live for real-time per-turn guarding.

ParameterTypeDescription
systemPrompt *stringThe target agent's system prompt. Maximum 8,000 characters.
temperaturenumberThe LLM temperature parameter for the target agent (0.0–1.5). Higher values increase drift probability.
turnsintegerThe number of conversational turns to simulate (1–100).

systemores_assess_bias Assess Regulatory & Demographic Bias

Statically analyzes a supplied systemPrompt (not a live agent) for demographic bias, proxy-variable leakage, and regulatory risks under one selected complianceDomain (employment_eeoc, housing_fair, lending_ecoa, children_coppa, or eu_ai_act). Read-only, zero-retention, LLM-backed scoring (variance explains idempotentHint=false); requires a Pro/Trial API key. Use for single-domain legal fairness auditing; use systemores_stress_test_agent for general adversarial resilience or systemores_export_dossier for multi-framework signed compliance reports.

ParameterTypeDescription
complianceDomain *stringThe legal compliance framework to evaluate against (employment, housing, lending, COPPA child safety, or EU AI Act 2024/1689).
systemPrompt *stringThe underwriting, hiring, housing, or EU AI Act high-risk agent system prompt to evaluate. Maximum 8,000 characters.

systemores_measure_drag Measure Cognitive Throughput Drag

Calculates single-turn throughput and cost efficiency from scalar promptLength, responseLength, and latencyMs (>= 1), returning characterPerMs, cognitiveEfficiencyScore (0.1–1.0), dragRating (HIGH above 2500ms), and estimatedTokenCostRating (EXPENSIVE above 4000 combined chars). Free, deterministic, stateless local math with no API key required. Use for quick single-turn latency/length math; use systemores_analyze_trace_telemetry for multi-span OpenTelemetry JSON traces or systemores_evaluate_drift for multi-turn behavioral consistency.

ParameterTypeDescription
latencyMs *numberThe end-to-end response latency in milliseconds. Must be >= 1.
promptLength *integerThe character length of the prompt sent to the agent.
responseLength *integerThe character length of the agent's response.

systemores_tool_integrity Evaluate System Prompt Tool Discipline

Audits a supplied systemPrompt (max 8,000 chars) for behavioral tool-use safety — scoring tool selection discipline, argument construction fidelity, and failure resilience across toolContext risk profiles (api_calls, database, filesystem, code_execution). Read-only, zero-retention, LLM-backed advisory scoring (variance explains idempotentHint=false); requires a Pro/Trial API key. Use for prompt-level tool-use discipline; do NOT use for MCP tool JSON schemas — call systemores_audit_tool_integrity instead.

ParameterTypeDescription
systemPrompt *stringThe agent's system prompt to evaluate for tool use safety. Maximum 8,000 characters.
toolContextstringThe domain of tool usage being audited. Affects risk weighting.

systemores_audit_tool_integrity Audit MCP Tool Definitions Integrity

Statically audits an MCP tool definitions JSON array (toolDefinitionsJson, max 100,000 chars; accepts standard tools/list entries) for snake_case naming, schema completeness, deceptive ToolAnnotations, privilege scope, duplicate names, and injection surfaces. Free, deterministic, stateless check with no API key required; set strictMode=true to penalize missing parameter descriptions or annotations (returns FAIL on malformed JSON). Use for MCP JSON schema inspection; do NOT use for system prompts — call systemores_tool_integrity instead.

ParameterTypeDescription
toolDefinitionsJson *stringA JSON-serialized array of tool definition objects to audit. Each object should contain at minimum 'name' and 'description' fields. Accepts standard MCP ListToolsResult format.
strictModebooleanWhen true, applies stricter scoring thresholds — missing optional fields such as parameter descriptions, inputSchema, and MCP tool annotations are penalized. Defaults to false.

systemores_audit_agent_graph Audit Multi-Agent Execution Topology

Statically scans a multi-agent delegation topology JSON object (graphTopologyJson, max 100,000 chars, with nodes and edges) via depth-bounded DFS (maxDepth 1–50, default 10) to detect cyclic delegation loops and untrusted-to-admin privilege paths. Free, deterministic, stateless check with no API key required; returns status FAILED on invalid JSON or empty graphs. Use for pre-deployment architecture checks; use systemores_analyze_trace_telemetry to detect runtime loops in live OpenTelemetry spans.

ParameterTypeDescription
graphTopologyJson *stringJSON-serialized graph topology object (max 100,000 chars) containing 'nodes' ({ id, privilegeLevel: 'public'|'user'|'admin'|'system' }) and 'edges' ({ source, target }).
maxDepthintegerMaximum DFS traversal depth for cycle and privilege-path checks (clamped 1–50, default 10). Paths deeper than maxDepth are not traversed.
strictPrivilegeCheckbooleanWhen true, flags any path from 'public'/'user' nodes to 'admin'/'system' nodes as a breach.

systemores_generate_cohort Generate Synthetic IPIP-NEO-120 Persona Cohort

Generates an ephemeral, non-deterministic cohort of 1–100 synthetic user personas for a target enterprise domain and locale (en, es, de, fr, pt, ja, zh) with 30-facet IPIP-NEO-120 profiles and adversarial prompt-injection/noisy-input payloads enabled by default (includeAdversarial=true). Read-only and unpersisted (randomized per call, explaining idempotentHint=false); requires a Pro/Trial API key. Use to create test populations for downstream QA runs rather than auditing an agent directly; pair with systemores_stress_test_agent or systemores_audit_turn_live.

ParameterTypeDescription
domain *stringThe operational domain for persona generation.
cohortSizeintegerNumber of synthetic personas to generate (1–100).
includeAdversarialbooleanIncludes prompt-injection and noisy data submitter personas in the cohort.
localestringTarget language code for synthetic persona names and prompt payloads (en, es, de, fr, pt, ja, zh; supports BCP-47 tags like pt-BR or zh-CN). Defaults to 'en'.

systemores_inject_environment_fault Generate Chaos Fault Injection Policy

Generates a stateless, non-persistent chaos fault policy payload (mock HTTP body, simulatedLatencyMs, and retry guidance) for your test harness to simulate failures (429, 500, timeout, 401, malformed JSON) against targetToolName or 'all_tools' at failureProbability (0.01–1.0). Mutates no live tools or server state (non-idempotent only because each call emits a fresh policyId); requires a Pro/Trial API key. Use to produce mock fault fixtures for resilience tests; use systemores_stress_test_agent for prompt-level adversarial testing.

ParameterTypeDescription
faultType *stringThe specific chaos fault to inject.
targetToolName *stringTarget tool name to scope the generated mock fault policy to, or 'all_tools' for any tool.
failureProbabilitynumberProbability of fault triggering per invocation (0.01 to 1.0).

systemores_analyze_trace_telemetry Analyze OpenTelemetry Agent Trace Spans

Analyzes an OpenTelemetry trace JSON payload (otelTraceJson, max 100,000 chars; span array or { spans, traceId } object) to summarize session token cost burn traps (default > $2.50), repeated-span sub-agent loop deadlocks, and per-span latency hotspots (default > 3000ms). Deterministic, stateless check requiring a Pro/Trial API key; returns rating CRITICAL on malformed JSON. Use for multi-span OTel/MCP trace logs; use systemores_measure_drag for single-turn character/latency math or systemores_audit_agent_graph for static topology analysis.

ParameterTypeDescription
otelTraceJson *stringJSON string (max 100,000 chars) of OpenTelemetry spans — either a span array or an object with a 'spans' array and optional 'traceId'/'traceparent'.
latencyThresholdMsintegerPer-span duration threshold in milliseconds above which a span is flagged as a latency hotspot (default 3000).
maxCostThresholdUsdnumberMaximum allowable cost in USD per session before triggering burn trap alert.

systemores_export_dossier Export Regulatory Compliance Dossier

Compiles audit findings and optional transient evidence (systemPrompt, toolDefinitionsJson, graphTopologyJson, otelTraceJson, liveAuditMetricsJson) into a signed, localized (en, es, de, fr, pt, ja, zh) compliance dossier with SHA-256 hash, verification link, and SVG badge for EU AI Act, NIST AI RMF 1.0, EEOC/ECOA, and SOC 2 AI. Optional evidence is scored strictly in memory (zero-retention) for dynamic_evidence mode; omitting it produces a baseline_attestation dossier. Persists a new signed certificate record per call (new dossierId, explaining readOnlyHint=false and idempotentHint=false); req…

ParameterTypeDescription
auditSessionId *stringUnique identifier for the completed audit session (used to attribute the signed dossier certificate).
companyNamestringLegal entity or client name for dossier attribution.
graphTopologyJsonstringOptional JSON multi-agent delegation graph containing nodes and edges evaluated strictly in memory for cycle and privilege boundary scoring.
liveAuditMetricsJsonstringOptional JSON object of transient audit metrics (healthIndex 0-100, sycophancyProbability 0-1, personaStabilityIndex 0-1, averageDriftIndex 0-1, toolIntegrityScore 0-100) from preceding tool calls.
localestringTarget language code for human-readable dossier prose and executive summary (en, es, de, fr, pt, ja, zh; supports BCP-47 tags like pt-BR or zh-CN; canonical JSON fields and SHA-256 hash remain invaria…
otelTraceJsonstringOptional OpenTelemetry span payload evaluated strictly in memory for token burn, loop, and latency scoring.
rolestringOptional operational role of the target agent when evaluating systemPrompt (defaults to 'general_developer').
systemPromptstringOptional agent system prompt evaluated strictly in memory (never stored) to compute differentiated per-framework scores via Murray Needs-Press, drift, bias, and tool-discipline diagnostics. Maximum 8,…
targetFrameworksstringComma-separated list of regulatory frameworks to generate formal dossier sections for: 'eu_ai_act', 'nist_ai_rmf', 'eeoc_ecoa', 'soc2_ai'. Defaults to all if omitted.
toolDefinitionsJsonstringOptional JSON array of MCP tool definitions evaluated strictly in memory (never stored) under strictMode to score SOC 2 AI and NIST AI RMF tool governance.

systemores_audit_turn_live Live Turn Audit (Systemores System One)

Performs real-time (~250ms) inline operational and behavioral auditing for a single turn using Systemores System One. Evaluates required systemPrompt and userMessage (optionally paired with agentResponse and/or proposedToolCall, each max 8,000 chars) to score policy compliance, sycophancy probability, and unauthorized tool scope, returning an advisory circuit-breaker action (DISPATCH, INTERCEPT, QUARANTINE, STRIP_TOOL) for the caller to enforce. Read-only, zero-retention, LLM-backed scoring (variance explains idempotentHint=false); requires a Pro/Trial API key. Use as a live per-turn guardrail…

ParameterTypeDescription
systemPrompt *stringThe behavioral blueprint, constraints, or security policies of the agent under audit.
userMessage *stringThe prompt or message sent by the user in this interaction turn.
agentResponsestringOptional proposed assistant reply text to audit against systemPrompt (max 8,000 chars). Provide agentResponse, proposedToolCall, or both for full turn inspection.
proposedToolCallstringOptional tool invocation proposed by the agent (JSON string or 'tool_name(args)' text, max 8,000 chars) to check for unauthorized tool scope.