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

Systemores AI Agent & MCP Security Auditor

Audit Multi-Agent Execution Topology

systemores_audit_agent_graph
Read-onlyIdempotent

Statically scan a multi-agent delegation graph JSON to detect cyclic delegation loops and untrusted-to-admin privilege paths before deployment.

Instructions

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.

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": {
      "graphTopologyJson": "<graphTopologyJson>"
    },
    "name": "systemores_audit_agent_graph"
  }
}

Input Schema

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

Output Schema

NameRequiredDescriptionDefault
risksYes
statusYes
metricsYes
cyclesDetectedYes
recommendationYes
privilegeEscalationPathsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.2.2
    • changedInput schema / properties / graphTopologyJson / description
      Previous value: -"JSON-serialized graph topology object containing 'nodes' (id, privilegeLevel) and 'edges' (source, target)."New value: +"JSON-serialized graph topology object (max 100,000 chars) containing 'nodes' ({ id, privilegeLevel: 'public'|'user'|'admin'|'system' }) and 'edges' ({ source, target })."
    • changedInput schema / properties / maxDepth / description
      Previous value: -"Maximum depth to traverse during cycle and privilege path search."New value: +"Maximum DFS traversal depth for cycle and privilege-path checks (clamped 1–50, default 10). Paths deeper than maxDepth are not traversed."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "cyclesDetected": {
      +      "type": "array"
      +    },
      +    "metrics": {
      +      "type": "object"
      +    },
      +    "privilegeEscalationPaths": {
      +      "type": "array"
      +    },
      +    "recommendation": {
      +      "type": "string"
      +    },
      +    "risks": {
      +      "type": "array"
      +    },
      +    "status": {
      +      "enum": [
      +        "PASSED",
      +        "FAILED"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "status",
      +    "metrics",
      +    "cyclesDetected",
      +    "privilegeEscalationPaths",
      +    "risks",
      +    "recommendation"
      +  ],
      +  "type": "object"
      +}
  2. First observedv1.1.3

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already carry readOnly, idempotent, closed-world, and non-destructive hints, and the description still adds real behavioral context: deterministic, stateless, no API key, and an explicit failure mode (FAILED status on invalid JSON or empty graphs). Minor gap is that it does not mention cost/latency characteristics beyond "free" or whether traversal is bounded independently of maxDepth clamping.

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?

Two dense sentences with the core purpose, mechanism, and failure behavior front-loaded, followed by routing guidance. Slight waste in repeating the maxDepth range/default that the schema already states, but nothing is materially padded.

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 stateless analytical check with a full input schema, complete annotations, and an output schema, the description covers purpose, mechanism, bounds, failure behavior, and the sibling routing decision. An agent has everything needed to select and invoke it correctly.

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

Parameters3/5

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

Schema description coverage is 100%, so all three parameters are already documented, and the description largely restates them (maxDepth 1–50 default 10, graphTopologyJson with nodes and edges). It adds the 100,000-char cap, but that is also in the schema, so the baseline of 3 is appropriate.

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 ("statically scans a multi-agent delegation topology JSON object") and names precisely what it detects: cyclic delegation loops and untrusted-to-admin privilege paths. It also distinguishes itself from systemores_analyze_trace_telemetry in the same breath, so an agent can tell the two apart without opening either schema.

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?

Explicitly scopes usage to "pre-deployment architecture checks" and names the alternative (systemores_analyze_trace_telemetry) for the runtime/live-span case, with the discriminating condition spelled out. That is a when-to-use plus a when-to-use-the-other-tool pair, leaving little to inference.

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