Network Codify

← Blog

Agentic AI in networking: not before the foundations

For the past few months, every conversation about networking has ended up in the same place: agents. Troubleshooting agents, configuration agents, operations copilots. The demos are impressive, the roadmaps are filling up, the budgets are following.

And yet, walking out of AutoCon 5, what struck me most was not an agent demo. It was a session by Víctor Fernández asking a far less glamorous question: is your data even in a state to support any of this?

His inspiring presentation led me to a personal reflection, which I propose to lay out in this article.

Enterprise adoption of Agentic AI is generating enormous buzz right now. Networking is no exception: management is asking network teams to take initiatives in this area. In my view, Agentic AI adoption will happen on top of automation, not instead of it. That is the conviction behind this article. Teams that are not mature on automation will not be mature on Agentic AI either.

Agentic AI: beyond the limits of deterministic orchestration

With agentic AI, what changes is where the orchestration logic lives. Until now, the decision tree was written in code: if this alarm fires, run that check, then branch on the result. As long as a process can be modelled that way, as a predefined workflow with explicit decision rules and predictable scenarios, deterministic orchestration remains the most reliable, efficient and controllable option. Agentic AI becomes interesting where that approach reaches its limits: when the diversity of situations, the uncertainty of the context or the complexity of the decisions make it impossible to define every execution path in advance. When the path depends on what each step reveals, when the symptom arrives in plain language, when the combinations are too many to enumerate. There, the LLM brings what code cannot: reasoning over the context, selecting the appropriate actions dynamically, adapting the orchestration to the results it gets. Traditional automation executes predefined decision paths. Agentic AI determines those paths at runtime, when they cannot be fully anticipated at design time.

Side by side: traditional automation executes predefined decision paths (a BGP peer down trigger, a yes/no test on whether the peer is administratively shut down, then action A or action B); agentic AI determines the decision path at runtime (a goal, an agent that reasons, plans, decides and orchestrates with the network context, then invokes deterministic workflows, read-only or read-write, through built-in tools or MCP servers).
Traditional automation follows predefined execution paths. Agentic AI dynamically determines the execution path at runtime, leveraging existing deterministic workflows through tools, either built-in or exposed via MCP servers.

Understanding AI agents: LLMs, tools, and MCP

At its core, an AI agent combines a Large Language Model (LLM) with a set of tools that allow it to interact with external systems.

The LLM acts as the reasoning engine. It interprets objectives, analyzes context, decides which actions to take, and determines which tools to invoke.

Tools are what turn an LLM from a conversational assistant into a system capable of taking action.

What is a tool?

A tool is essentially a traditional software function exposed to an AI agent, with a defined name, description, and input parameters.

It allows the agent to perform operations beyond text generation, such as querying an API, retrieving information from a database, executing a script, or triggering an automation workflow.

In a networking context, tools could provide capabilities such as retrieving device configurations, querying Nautobot inventory, checking BGP peer status, or deploying configuration changes.

The key difference from traditional software is that the LLM dynamically decides which tools to invoke, in what order, and with which parameters, based on the objective and the context.

MCP: extending agent capabilities

Traditionally, tools can be implemented directly within the agent’s application. But what if we want to expose tools hosted on remote systems, independently of the agent itself?

This is where the Model Context Protocol (MCP) comes in.

MCP provides a standardized way for AI applications to discover and invoke tools exposed by MCP servers, whether they run locally or remotely.

Instead of implementing every integration directly within the agent, we can expose capabilities through dedicated MCP servers.

For example, connecting an agent to a Nautobot MCP server could give it access to inventory and topology information. Connecting it to an observability MCP server could enable it to retrieve metrics, logs, and alerts. An automation MCP server could expose workflows for executing controlled network changes.

A user asks which BGP peers are on the core switches and whether they are up. The AI agent combines an LLM (understand, reason, plan, decide which tools to use) and tools (use tools, retrieve information, execute actions, interact with systems). Through MCP, the agent reaches three servers: a Nautobot MCP server with inventory and topology tools (get_device, get_interfaces, get_bgp_peers, query_inventory), an observability MCP server with metrics, logs and alerts tools (query_metrics, get_logs, check_alerts, get_device_health), and an automation MCP server with controlled workflows (run_change_workflow, deploy_configuration, create_ticket, execute_playbook).
An AI agent is an LLM plus tools. Through MCP, it discovers tools exposed by dedicated servers: inventory and topology, observability, controlled automation workflows.

The interesting part is that the agent can discover these new capabilities dynamically, without modifying or retraining the underlying LLM.

Think of Neo in The Matrix, when a new skill is uploaded directly into his brain.

“I know kung fu.”

Connecting an AI agent to an MCP server is conceptually similar. By discovering the tools exposed by the server, the agent can gain access to entirely new capabilities, whether it’s querying network inventory, retrieving device configurations, analyzing telemetry, or triggering automation workflows.

This is no longer theoretical. Most network orchestration platforms now ship an embedded MCP server that exposes their existing workflows as tools the LLM can call. Community projects are doing the same at a lower level: netmiko_mcp wraps a Netmiko session in an MCP server, so an agent can run commands on a device through the same library network engineers have relied on for years. In both cases, nothing new is invented on the execution side. It is existing network automation, refocused on tools.

Of course, unlike Neo, the LLM doesn’t actually learn anything new. It simply discovers additional tools it can invoke, subject to the permissions and security controls defined by the system.

MCP doesn’t make the LLM smarter. It makes the agent more capable.

The first foundation: network automation as guardrails

One could easily imagine exposing low-level tools to an AI agent, such as executing arbitrary SSH commands, pushing configuration changes, or making direct API calls to network devices.

The agent would then have complete freedom to dynamically compose and orchestrate these low-level operations to achieve its objectives.

However, the more freedom we give an LLM to manipulate low-level infrastructure operations, the greater the risk of unintended consequences.

The question is not whether an AI agent can automate network operations, but how much freedom we should give it to do so.

This is where network automation maturity becomes particularly important.

Rather than exposing unrestricted low-level operations, we can provide agents with higher-level, well-defined automation capabilities that encapsulate tested, validated, and controlled workflows. Agentic AI does not replace deterministic automation: it builds on top of it, dynamically orchestrating these existing deterministic workflows to achieve its objectives. They can perform read-only operations, such as retrieving network configurations, querying topology and inventory data, or collecting operational metrics, as well as read-write operations, such as updating device configurations, provisioning network resources, or remediating incidents.

The agent remains responsible for deciding what needs to be done and when, while deterministic automation handles how it should be executed, in a predictable, controlled, and deterministic manner, with a validation gate when needed.

A user asks to add a new BGP peer on the core switches. The AI agent (LLM plus tools) runs an agentic loop: understand the request, plan which workflows to call, execute them via MCP, observe and adapt. It calls high-level automation workflows exposed via MCP (add BGP peer, upgrade device OS, deploy configuration, run health check, query network inventory). Each workflow executes deterministically: validate input, generate device configuration, optional human approval gate (approved or rejected, in which case the workflow aborts), execute changes through Ansible, APIs or SSH, verify and validate, report the result. A governance and guardrails band applies to all workflows: access control, input validation, approval policies, audit and logging, rollback, safety limits.
The agent decides what and when. High-level workflows, exposed via MCP, decide how, deterministically, with an optional approval gate and guardrails applied to every execution.

The more we abstract and constrain the execution layer, the more safely we can delegate decision-making to AI agents.

Ultimately, network automation maturity is not a strict technical prerequisite for Agentic AI, but it becomes a critical foundation for making it reliable, secure, and scalable in production.

The second foundation: what the agent sees (the context)

Network automation defines what an agent can do by exposing validated, safe, and controlled workflows. But it says little about what the agent knows.

And that is where many Agentic AI projects run into trouble.

When a network AI agent produces an incorrect decision, we often look for the problem in the wrong place: the LLM itself.

Yet the quality of an agent’s reasoning does not depend solely on the capabilities of the underlying model. It also depends heavily on the quality, completeness, and relevance of the context provided to it.

But what exactly is context?

For an LLM, context is the information available within its context window at inference time. This includes system instructions, conversation history, tool definitions, and information retrieved from external systems through tool calls.

An AI agent does not inherently know your network. It only knows what your systems make available to it.

That might include network inventory, topology, device configurations, telemetry, alerts, incidents, and change history.

But what happens when that information is incomplete, outdated, inconsistent, or simply wrong?

Imagine an agent investigating a BGP incident using an outdated topology, an incomplete inventory, and alerts that cannot be correlated with the affected network services.

The agent may reason perfectly well over the information it has been given, yet still reach the wrong conclusion.

Worse, unless it has mechanisms to detect inconsistencies, assess data freshness, or verify its assumptions, it may present that conclusion with apparent confidence.

A powerful reasoning engine operating on unreliable context can still make unreliable decisions.

And in network operations, the consequences extend far beyond generating an incorrect answer.

What “network context” actually means

We often use the word context loosely. But what does it actually mean for an AI agent operating a network?

During his AutoCon 5 presentation, From Data to Decisions: Real-Time Network Context, Víctor Fernández introduced an approach that I find particularly relevant to Agentic AI.

His central argument is simple: having access to network data is not the same as having network context.

Building on his perspective, I would define network context through five complementary dimensions:

  1. Topology: how network devices and resources are physically and logically connected, including interfaces, links, VLANs, VRFs, routing domains, and network paths.
  2. Relationships and dependencies: how network resources, services, applications, and customers depend on one another, revealing potential operational and business impact.
  3. Operational state: what is happening across the network, including interface status, routing protocols, telemetry, metrics, logs, alerts, and real-time events.
  4. Change history: what changed, when, and why. Configuration modifications, deployments, upgrades, and historical events that might explain the current situation.
  5. Intent and expected state: how the network is supposed to be configured and behave, as defined by the source of truth, network policies, and desired operational state.

For example, a BGP session being down is not necessarily a problem. But if the peering is marked as Active in the source of truth, its operational state should be Established. Any discrepancy between the intended and observed state becomes meaningful.

Together, these dimensions provide the foundation for understanding what is happening, whether it is normal, what might have caused it, and what could be impacted.

But there is a problem.

In most organizations, this information is scattered across multiple systems. Topology, relationships, and intent may live in Nautobot, NetBox, or Infrahub, operational data in monitoring and observability platforms, and change history in Git or ITSM systems.

The challenge is not simply accessing these systems, but connecting their information into a coherent operational context.

From fragmented data to connected context

Víctor’s approach can be summarized in four stages:

Ingest → Normalize → Relate → Expose

  1. Ingest: collect network inventory, configurations, topology, telemetry, logs, events, and change history from multiple sources.
  2. Normalize: transform heterogeneous, multivendor information into consistent data models, with common identifiers and semantics.
  3. Relate: establish relationships between network resources, services, operational events, and changes. This is where a network graph becomes particularly valuable, connecting infrastructure dependencies with their operational and business context.
  4. Expose: make this contextualized information accessible to engineers, automation platforms, and AI agents through APIs or MCP-exposed tools.

Consider an interface experiencing packet loss.

Telemetry tells us what is happening. Topology identifies the connected resources. Service dependencies reveal which applications might be affected. Change history highlights recent modifications, while intent helps determine whether the observed behavior deviates from expectations.

Without correlation, these are just disconnected pieces of information.

And this is precisely where I believe traditional automation has an essential role to play.

Rather than letting an LLM query multiple systems and reconstruct fundamental network relationships on its own, we should assemble that context upstream through deterministic, reproducible, and auditable processes.

Why deterministic? Because the same network data should produce the same relationships and correlations, regardless of which agent requests them or when. We cannot afford to have an LLM infer different dependencies between the same network resources from one investigation to another.

Deterministic context assembly also makes it possible to validate correlations, trace information back to its sources, and troubleshoot errors independently of the LLM.

The agent can still investigate, retrieve additional information, and formulate hypotheses. But it should build its reasoning on a reliable and deterministically assembled contextual foundation.

The LLM should reason over network context, not reconstruct it from scratch.

Context is assembled upstream from the five dimensions; the agent reasons over it, it does not reconstruct it.

Ultimately, this second foundation of Agentic AI also relies on traditional network automation. Just as automation provides the controlled workflows that allow agents to act safely, it also provides the mechanisms to collect, normalize, and correlate network data into a reliable, deterministic, and connected network context.

Traditional network automation enables agents not only to act safely, but also to understand the network they operate.

Each layer rests on the one below: the maturity of the foundations caps the value of the agents on top.

What I take away

AI is not a shortcut that lets you skip the automation and observability work you have not done. It is the opposite: it makes that work more profitable, and its absence more costly.

Agentic AI changes where the decision logic lives. The LLM chooses the path at runtime, where no decision tree could be written in advance. It does not change what executes, nor what the decision is made from. Both still come from network automation, and that is what makes its maturity the first step:

  • validated, controlled workflows, exposed as tools, that bound what the agent can do and let it act safely;
  • a network context assembled deterministically from topology, relationships, operational state, change history and intent, so the agent reasons over reliable data instead of reconstructing it.

The teams that will get value out of agents in the next two years will not be the ones that picked the best model. They will be the ones whose workflows are tested and exposed, and whose source of truth, topology, telemetry and change history are accurate and connected.

So before asking yourself which agent to deploy, ask two questions instead. If I had to explain my network to someone who has never seen it, using only my systems, could I? And if that person had to make a change, could they do it through a workflow I trust?

If the answer is no, you know where to start. And it is not with AI.


Thanks to Víctor Fernández for his inspiring AutoCon 5 session.