Skip to main content
Glama
Systemores AI Agent & MCP Security Auditor

Systemores AI Agent & MCP Security Auditor

Live Turn Audit (Systemores System One)

systemores_audit_turn_live
Read-only

Audit a live agent turn for policy compliance, sycophancy, and unauthorized tool scope, then return an advisory circuit-breaker action to enforce before replying or invoking tools.

Instructions

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 before returning replies or invoking tools; use systemores_stress_test_agent or systemores_evaluate_drift for pre-deployment batch evaluation.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "systemPrompt": "<systemPrompt>",
      "userMessage": "<userMessage>"
    },
    "name": "systemores_audit_turn_live"
  }
}

Input Schema

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

Output Schema

NameRequiredDescriptionDefault
engineYes
statusYes
tokensNo
metricsYes
verdictYes
latencyMsYes
circuitBreakerActionYes
autoRecoveryRecommendationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.2.2
    • changedInput schema / properties / agentResponse / description
      Previous value: -"The proposed text response or output from the agent."New value: +"Optional proposed assistant reply text to audit against systemPrompt (max 8,000 chars). Provide agentResponse, proposedToolCall, or both for full turn inspection."
    • changedInput schema / properties / proposedToolCall / description
      Previous value: -"Optional tool invocation or function call proposed by the agent (name and arguments)."New value: +"Optional tool invocation proposed by the agent (JSON string or 'tool_name(args)' text, max 8,000 chars) to check for unauthorized tool scope."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "autoRecoveryRecommendation": {
      +      "type": "string"
      +    },
      +    "circuitBreakerAction": {
      +      "enum": [
      +        "DISPATCH",
      +        "INTERCEPT",
      +        "QUARANTINE",
      +        "STRIP_TOOL"
      +      ],
      +      "type": "string"
      +    },
      +    "engine": {
      +      "type": "string"
      +    },
      +    "latencyMs": {
      +      "type": "number"
      +    },
      +    "metrics": {
      +      "type": "object"
      +    },
      +    "status": {
      +      "enum": [
      +        "AUDITED",
      +        "FALLBACK"
      +      ],
      +      "type": "string"
      +    },
      +    "tokens": {
      +      "type": "object"
      +    },
      +    "verdict": {
      +      "enum": [
      +        "PASSED",
      +        "DRIFT_WARNING",
      +        "CRITICAL_BREACH",
      +        "TOOL_SCOPE_VIOLATION"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "engine",
      +    "status",
      +    "latencyMs",
      +    "metrics",
      +    "verdict",
      +    "circuitBreakerAction"
      +  ],
      +  "type": "object"
      +}
  2. First observedv1.1.3

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond the annotations: discloses zero-retention storage, LLM-backed scoring, the ~8k per-field input cap, the Pro/Trial API key requirement, and the four possible advisory actions (DISPATCH, INTERCEPT, QUARANTINE, STRIP_TOOL) with the note that enforcement is left to the caller. It even reconciles the unusual idempotentHint=false with score variance, so the annotation no longer looks arbitrary; readOnlyHint=true is consistent with 'Read-only'.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads purpose, then inputs, then outputs, then constraints, then usage routing — a logical order with no filler sentences. It is dense and parenthetical-heavy in the second sentence, which costs some readability, but nothing is redundant with the annotations.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a live guardrail with four parameters and an output schema, the description covers everything an agent needs before calling: cost/latency, credential prerequisite, retention posture, input size limits, and what the returned action means. Return-value structure is rightly left to the output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, so baseline is 3, but the description adds genuine meaning: it marks systemPrompt and userMessage as required, agentResponse/proposedToolCall as an optional pair ('or both for full turn inspection'), and repeats the 8,000-char ceiling and what each optional field is checked for (unauthorized tool scope). It does not explain accepted formats for proposedToolCall beyond what the schema says, so it stops short of a 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Performs real-time inline operational and behavioral auditing for a single turn') and names exactly what is scored: policy compliance, sycophancy probability, unauthorized tool scope. It distinguishes itself from siblings by explicitly assigning batch/pre-deployment work to systemores_stress_test_agent and systemores_evaluate_drift.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit when-to-use rule ('as a live per-turn guardrail before returning replies or invoking tools') and an explicit when-not/alternative ('use systemores_stress_test_agent or systemores_evaluate_drift for pre-deployment batch evaluation'). The ~250ms latency figure lets an agent judge whether inline placement is feasible.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.