• Juli 27, 2026
  • --

Inside the Magnolia Agent: an open, extensible architecture

Key insights

  • Extensible isn't just a positioning line: partners and customers can register their own tools, models, and MCP servers against the same agent, without touching Magnolia DXP's core code.

  • Everything the Agent does, it does through tools — a declarative registry where a REST endpoint, an AI task, a native command, or another MCP server can all show up as a callable capability.

  • The agent loop is simple by design: think, act, observe, repeat, capped at ten iterations, with every tool call passing through a three-layer security check.

  • Reasoning is a per-agent choice: swap in a reasoning-capable model for complex orchestration, or keep a lookup agent fast and cheap, with a one-line change in YAML.

  • The Model Context Protocol (MCP) turns the Agent's tool registry into a two-way bridge — Magnolia DXP can call out to external MCP servers, and external AI clients can call into Magnolia DXP.

Inside the Magnolia Agent: An open, extensible architecture

Why "extensible" has to mean something technical

"Extensible" shows up in a lot of AI product marketing, ours included. It's worth being specific about what it actually means for the Magnolia Agent, because the answer determines whether you can trust the platform with real, differentiated workflows instead of just the ones we shipped out of the box.

For us, it means: if a customer or partner needs a tool the Agent doesn't have — a check specific to a regulated industry, an integration with an internal system, a workflow that only makes sense for one team — they can build it and register it, using the same registry and the same security model that Magnolia DXP's own tools use. Nothing about that requires forking the product or waiting for a Magnolia DXP release.

"Connecting a REST API just takes a YAML file. The key is to write a precisely structured description that the agent can understand. Your business logic is easily added through custom, Java-implemented AI tasks."

Sebastian Geschke

AI Lead Architect at Magnolia DXP

Tools: The atomic unit the Agent works with

Everything the Agent does, it does through tools. Tools are defined declaratively in YAML and executed in Java, and they're exposed to the Agent as a unified set of capabilities. The large language model behind the Agent picks the right one based on the description in that YAML configuration — which is also why writing a clear tool description matters as much as writing the tool itself.

Anything can be a tool: a REST endpoint, an AI task, a native command, or another MCP server. The Magnolia Agent's own tool set is a useful illustration of the range this covers — from tools that, for example, surface stale pages, search your content semantically, prioritize what to fix for SEO, combine SEO checks with analytics, optimize metadata, translate content, and even jump you straight into the right Magnolia DXP app — with more on the way.

Ten tools ship today; the registry is built to keep growing past that — content-idea generation and image generation are on the upcoming roadmap — including with tools you write yourself.

  1. Find pages and assets that might be out of date, based on when they were last updated, so editors can prioritize what to review.

  2. Jump straight into a specific Magnolia DXP app from the agent, instead of clicking through the UI.

  3. Enrich pages with GEO-optimized structured data and summaries.

  4. Search across your content by meaning (not just keywords) to pull in the most relevant documents and pages as context.

  5. Scan your site to build a prioritized content worklist — from quick wins to declining and underperforming pages — so teams know where to focus first.

  6. Combine SEO checks with real analytics data to spot pages where traffic or engagement signals a problem.

  7. Automatically draft or refine SEO metadata like titles, descriptions, and keywords for any page.

  8. Translate content from one language to another to keep multilingual sites in sync.

  9. Show editors which Magnolia DXP apps are available to them and let them open the right one directly from the agent.

  10. Present key apps as cards so people can discover and launch them without hunting through menus.

Every tool execution passes through three layers of security before it runs, and all three have to pass:

  • Kill switch. A global disabledTools list grants an administrator an override that nothing can bypass.

  • Contributor allowlist. Only signed-off modules may publish tools into the registry in the first place.

  • Role-based access. Each tool declares its own requiredRoles, checked per user, per call.

Every tool execution is audit-logged end-to-end.

The agent loop: Think, act, observe, repeat

The agent loop: Think, act, observe, repeat

Underneath the conversation, the Agent runs a simple loop, not a black box: think, decide, act, observe, and repeat, up to a hard ceiling of ten iterations to prevent runaway loops.

  • Think. The model gets a call with the system prompt, conversation history, and the tool catalog — already scoped to the current user's roles.

  • Decide. Does the response include tool calls? If not, the loop ends and the Agent answers.

  • Act. If it does, each tool call is dispatched through the tool execution router.

  • Observe. The result is appended back into the conversation, and the loop continues.

Thoughts and tool calls stream back in real time, so a user watching the Agent work sees it reasoning, not just waiting. A typical multi-step request — "show me which pages are failing this month" — plays out as exactly this loop: think, call an analytics tool, observe the result, refine, call an SEO audit tool on the pages that came back, and answer.

Reasoning: Pick the brain per agent

Not every agent needs to think the same amount. A modelId swap in YAML — no code change — lets you choose a reasoning-capable model for an orchestrator that has to plan multi-step work, and a fast, lightweight model for an agent that's mostly doing lookups.

With a reasoning-capable model selected, the LLM call can include a hidden planning phase before any tool gets called: deciding which tools to call, in what order, with what arguments, and self-correcting mid-thought before committing to an action. That means better tool selection on ambiguous requests, fewer wasted loop iterations, and stronger recovery when a tool returns something unexpected. It also costs more per turn — reach for it on complex, multi-step orchestration, and skip it for simple lookups. Model choice is resolved through the same Unified Model Registry described in The Magnolia Agent: an open framework for agentic content operations, so you can swap providers later without touching agent code.

Memory: What the Agent remembers, and what it doesn't

Conversation history is deliberately simple and deliberately volatile. Each session is scoped to exactly one user and one agent — nobody sees anyone else's conversation. Messages live in an in-memory, append-only log, which means fast reads with no database round-trip on every turn.

Two guarantees sit on top of that log. When the context window fills up, a token-budget compressor prunes old turns based on real token usage reported by the model, not a guess. And sessions have a time-to-live and a per-user cap, so old or excess sessions simply drop — restart-safe by design. Conversation IDs are crypto-random UUIDs, so there's no session pinning and no enumeration risk.

MCP: Agents talk to the world

The Model Context Protocol (MCP) is what turns the tool registry into a two-way bridge, rather than a system that only talks to itself.

Magnolia DXP can connect out to external MCP servers — analytics platforms, search tools, IDE integrations — and any tools they expose auto-appear in the registry without per-tool YAML configuration. The same three-layer security applies to those external tools, and you can filter which external servers and tools a given agent is allowed to see with includeMcpServers, excludeMcpServers, and excludeMcpToolPatterns.

It also works the other way: Magnolia DXP's own tasks and tools can be exposed to external MCP clients — a coding assistant, an IDE, an automation pipeline — with scoped authentication so each client only sees what its role permits, governed and audit-logged by the same registry. That's the same open standard underneath the Magnolia MCP Developer's Server, a related but distinct product built for developers working directly on Magnolia DXP projects — think of it as the same architectural philosophy applied to the IDE rather than the content workflow. If you're curious how AI is also changing how developers build on Magnolia DXP, rather than how the Agent operates once it's live, our earlier piece on teaching an AI how to build on Magnolia DXP is a related, if separate, thread worth a look.

"MCP is a standard — an integration from one company looks the same as any other's. That's what makes it easy to swap a system out later, instead of being locked into one vendor's API."

Sebastian Geschke

AI Lead Architect at Magnolia DXP

Magnolia DXP Development Skill

We taught an AI how to build on Magnolia DXP — now you can use it too

The Vector DB: The retrieval backbone

Several of the Agent's tools — context_search most directly, but also anything doing retrieval-augmented generation — depend on Magnolia's vector database. It's what lets the Agent search by meaning rather than exact keyword match, and what keeps that search permission-aware: results are filtered against a user's actual read access before anything is returned, which matters as much for an AI agent as it does for a human editor.

"The vector search gives the agent better context — and better context means better results generated by the LLM. It's one of our agents' capabilities, but an important one."

Sebastian Geschke

AI Lead Architect, Magnolia DXP

The Magnolia Vector DB

If you want to go deeper on how the Vector DB itself works, this is the blog to read.

What's stable today, and what's still moving

The Magnolia Agent is generally available today.

"Licensing itself isn't changing — it's included in the AI Accelerator our customers already have."

Sebastian Geschke

AI Lead Architect, Magnolia DXP

Build your own

Your tools can be declared in YAML for straightforward tasks, or backed by Java for custom business logic. Your models are your choice, bring-your-own-key, resolved through the registry. Your own MCP servers can be connected as additional tools, with the same governance applied throughout.

Explore the full series

Try it yourself

Read the docs, register a tool, and see how far you can extend the Magnolia Agent before you need to ask us for anything.

Try the Magnolia DXP developer trial

FAQs