Skip to content
IT glossary
Data and MLUpdated December 3, 2026

AI agent

AI-агент

An AI-powered system that works toward a goal by choosing actions and using their results to decide what to do next. It might look up an order, for example, then ask for missing information.

Also known as: агент, MCP

What makes a system an agent?

Give a reporting assistant the task “Find out why last week’s sales total is missing.” If it follows a script that always checks the same three sources in order, it’s running a predefined workflow. If it checks the report, sees that the source data is stale, and decides to look up the latest import run, it’s making an agentic decision: what it observes changes what it does next.

A chat interface is optional, and calling an API once doesn’t necessarily make an application an agent. The useful distinction is how much control the system delegates to AI over what happens next. Many applications combine both approaches: an agent investigates a problem, while a fixed workflow handles any approved change.

How the loop works

A typical LLM-based agent includes a goal, a set of available tools, and enough working state to keep track of what it has tried. The language model might propose a structured call such as get_import_status(dataset="sales"). The application validates the arguments and checks permissions before executing the call. It then gives the result back to the model, which can choose another action, ask for clarification, or finish. The model proposes the call; it doesn’t grant itself permission to run it.

In the reporting example, suppose the import service returns “last successful run: Monday” and the latest run is still pending. The agent can report that the dashboard hasn’t received fresh data and that the latest import is pending. It should not invent a failure cause or silently restart the import. The investigation only needs read access; restarting a job is a separate action with different permissions and consequences.

Where MCP fits

MCP stands for Model Context Protocol. It gives an application a standard way to discover and use capabilities exposed by a server, such as tools or data resources. It is not another name for an agent and doesn’t decide what to do next. An agent can call ordinary APIs or local functions without MCP, and a scripted workflow can use MCP without being an agent.

When to use one and what to test

Agents are useful when the next step depends on what turns up, as in support triage or researching a question across several internal sources. If the steps are already known, a fixed workflow is usually easier to test and operate. In production, give the agent only the permissions it needs, cap the number of steps and runtime, and require approval for consequential changes.

In a system design interview, explain where you would let the model choose and where you would enforce rules in code. Test missing data, timeouts, and repeated calls as well as successful runs. Measure whether the task was actually resolved, along with invalid actions, latency, and cost: a fluent summary can still misstate what happened.