Agent Architecture & Trace Analysis
Overview
Agent Flow & Trace Analysis helps you visualise how components inside your agentic collection interact and execute during runtime.
Using architecture graphs and execution traces, you can understand:
How requests flow through your system
Which models, tools, and MCP servers are involved
How agents interact during execution
What happens during individual request runs
This gives you end-to-end visibility into your agentic workflows.
Agent Architecture Flow
The Agent Flow graph provides a visual representation of your collection architecture and execution relationships between components.
It helps you understand how your agentic system is structured and how requests move across connected components.

What You Can See
The graph includes all major components inside your collection, such as:
AI Agents, LLMs, MCP Servers, Tools, Webhooks, External integrations
Each node represents a component, while edges represent execution or communication flow between components.
Why It Matters
Using the Agent Architecture graph, you can:
Understand your orchestration architecture
Identify dependencies between agents and tools
Inspect model and MCP integrations
Analyse request execution paths
Validate workflow connectivity before running scans
Component Relationships
The graph helps you visualise:
Agent-to-model communication
Tool invocation paths
MCP server interactions
Input and output routing
Chained execution flows
Trace Analysis
Trace Analysis helps you inspect how individual components executed during runtime.
Each component can contain multiple traces, where every trace represents a separate execution instance triggered by a request.

Trace Overview
For every component, Akto captures multiple execution traces generated from separate request runs.
Each trace contains:
Trace Name
Identifier for the execution trace.
Agent Name
Agent associated with the execution run.
Root Span ID
Primary span identifier for the trace.
Total Spans
Total execution spans captured in the request lifecycle.
Execution Sequence
Ordered flow of component execution for the request.
Component Outputs
Runtime outputs generated at each execution stage.
You can navigate between traces to compare execution behavior across runs.
Execution Graph
Each trace includes a visual execution graph that maps the complete request lifecycle for that execution run.
The graph helps you inspect:
Trigger source
Agent execution
LLM calls
Tool invocations
Response generation
Each node contains the runtime output associated with that stage.
Why Trace Analysis Matters
Using traces, you can:
Debug agent workflows faster
Compare behavior across executions
Validate tool responses
Verify LLM interactions
Investigate orchestration failures
Analyze runtime execution end-to-end
Common Use Cases
Debug Agent Execution Inspect how an agent processed a request and which tools were invoked during a specific run.
Compare Multiple Traces Analyse behavioural differences across multiple executions for the same component.
Validate Tool Responses Verify whether connected tools returned expected outputs.
Analyse Model Interactions Review model-generated responses and downstream execution behavior.
Troubleshoot Failures
Identify where execution failed across spans or connected components.
Last updated