Chapter 6. Agentic Graph-Based Tool Orchestration
Intelligence without the ability to act is merely contemplation. An AI agent that can understand, reason, and plan but cannot interact with the world remains trapped in a prison of its own thoughts. This constraint drives the entire evolution of agentic systems: agents need tools as essential extensions of their intelligence.
At their core, LLMs perform a single operation: transforming text input into text output. They cannot query databases, send emails, or interact with any external system on their own. They are minds without hands. Tools are the bridge between an agent’s intelligence and the world it seeks to influence; with tools, an agent can not only describe what should be done but also actually do it.
The breakthrough comes from treating tools as interconnected data in a knowledge graph rather than as hardcoded logic. The Model Context Protocol makes this transformation practical. It provides a foundation for building software that can translate its intelligence into real-world action through dynamic tool orchestration. But as this capability scales, it introduces new challenges, both in managing complexity and ensuring security.
This chapter works through those challenges layer by layer. We’ll start with MCP and its significance as the protocol foundation. Then we’ll confront the prompt bloat crisis that hits when organizations expose hundreds of tools and explore RAG-based approaches to tool discovery. From there, you’ll ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access