Enterprise software has always had a translation problem. You know what outcome you want, yet the application forces you to express it through a sequence of clicks, form entries and screen transitions. AI agents remove that translation layer by letting teams state a desired outcome and allowing the agent to carry it out. That sounds like pure productivity. The catch is that removing the human navigator also removes the judgment, authority checks and error-correction they applied along the way.
To replace that judgment safely, you need clear architectural boundaries. Walking through a single real-world scenario—releasing a high-value order—shows what happens from the moment an agent selects a capability to the moment a verified result returns, and how Agent Fabric enforces governance at every step.
From UI-centric software to intent-driven systems
The problem: Intent is cheap; safe execution is not
Your teams increasingly want to express outcomes rather than navigate click paths. Here are a few examples
- “Release order 814 if payment has cleared and inventory is available.”
- “Resolve this customer’s billing issue.”
- “Identify at-risk opportunities and recommend next actions.”
- “Provision a development environment that complies with our security policies.”
Each request represents an intent. Fulfilling it requires retrieving current data, checking policy, selecting the right capability, coordinating across multiple systems, and recovering cleanly when something fails. In a UI-centric application, much of that logic hides in screens and in the habits of the person clicking through them. In an intent-driven system, the logic must reside where an agent can invoke it- and where the business can govern it.
Large language models excel at interpreting what a user wants, but they are the wrong place to enforce business rules, verify authority, mutate state, or manage failure recovery. Those responsibilities belong in the underlying services rather than the reasoning layer.
In practice, that distinction shapes how you design APIs. If you expose a generic endpoint that lets an agent update any field on an order, the agent can modify anything. If you expose a bounded capability named release_order, the agent can only request a release. The rules governing payment confirmation, approval thresholds, inventory allocation, and rollback stay inside the Process API, where they remain testable, auditable, and consistent regardless of which agent or channel initiates the request. Productivity gains from intent-driven automation only compound when execution is predictable enough that teams do not have to manually double-check every outcome.
The scenario: releasing order 814
Consider an operations manager typing: “Release order 814 — payment has cleared and inventory is confirmed.” The order is worth $65,000 and the company governance policy requires explicit human approval for any release above $50,000.
Handling that single sentence safely requires seven distinct architectural steps:
- An agent selects the right capability,
- An API contract exposes only the permitted action.
- Identity resolution ties the request to an authorized principal.
- A policy evaluation triggers an approval workflow.
- A durable pause holds execution while approval is collected.
- A revalidation step confirms current facts before execution resumes..
- A verified terminal status the caller can trust.
Figure 1 illustrates the end-to-end flow before walking through each step in detail.
Figure 1: MCP Bridge — From User Intent to Verified Outcome
Agent Fabric provides several ways to connect agents to enterprise capabilities depending on your starting point. Because the execution path for releasing an order is known at design time and already exists as a stable HTTP endpoint, MCP Bridge is the cleanest fit: it exposes selected API operations as Model Context Protocol (MCP) tools while MuleSoft Omni Gateway handles authentication, authorization, and policy enforcement at the gateway layer. When a tool requires custom Mule logic—such as input validation, SaaS connector calls, or multi-step orchestration—you can build it with MCP Connector instead. (More complex multi-agent routing patterns are covered later in this guide.)
Step 1 — The agent picks a capability
Model Context Protocol solves tool discovery. An MCP server publishes a catalog of named tools complete with structured descriptions and input schemas. The agent calls tools/list, it inspects those descriptors, and selects release_order.
Clear naming and precise descriptions do heavy lifting here. A tool named release_order described as “releases a confirmed order for fulfillment, subject to payment and approval checks” leaves far less room for misinterpretation than a vague update_order_status endpoint. Well-defined contracts sharply reduce the chance that a model picks the wrong action.
Under the hood, Agent Fabric handles registry, brokering, governance, and visibility. The agent does not need to know how the capability is implemented; it simply interacts with a governed MCP surface.
Step 2 — The contract exposes it
The shape of the API contract determines what the agent can do. Compare these two signatures
release_order is a bounded capability. The agent can ask for a release; but it cannot redefine what “release” means. Payment confirmation, the $50,000 approval threshold, inventory allocation, sequencing, and rollback logic all sit behind the contract inside the Process API.
With MCP Bridge, you can publish that Process API as an MCP server without writing new code. The API owner selects only the operations meant for agent consumption, gives each tool a clear name and description, reviews the input schema, and maps tool arguments to the underlying HTTP request. Unselected operations stay hidden—an Order API with thirty endpoints might expose just three to agents. Because active agents depend on those definitions, treat any changes to tool names, descriptions, or schemas as breaking contract updates.
Step 3 — Identity and context are resolved
When the agent invokes the tool, the request arrives at the Process API carrying only business inputs: orderId, reason, and an idempotencyKey to prevent duplicate releases on retry. Everything else—who is making the request, what they are permitted to do, and what the current order state looks like—must come from sources the system can verify independently.
A representative MCP call looks like this:
The authenticated principal comes from a validated security token, never from the prompt or tool arguments. For managed instances on Omni Gateway, configured policies enforce authentication, authorization, rate limiting, threat protection and audit logging before the request reaches the Process API.
Next, the Process API retrieves current facts from authoritative systems—payment status and inventory levels from System APIs, and order value from the ERP. These are server-verified records with timestamps or version markers, rather than values echoed by the agent. By keeping what the agent claims separate from what the system proves, the architecture prevents prompt injection or stale context from bypassing controls. Scoping each domain broker to a focused set of capabilities—so an order broker sees order tools rather than the entire enterprise catalog—further narrows the margin for error.
Step 4 — Policy decides
With verified facts and a confirmed principal in hand, the Process API evaluates release policy. Order 814 is valued at $65,000, exceeding the $50,000 governance threshold retrieved from your authoritative policy store (rather than a rule hardcoded into an agent prompt).
Here, execution branches. Had the order fallen below $50,000 with all checks satisfied, fulfillment would proceed immediately. Because it exceeds the threshold, the Process API transitions the request into a durable approval state.
Defining a strict set of intermediate and terminal statuses upfront—such as PENDING_APPROVAL, RELEASED, REJECTED, FAILED_RETRYABLE, and FAILED_FINAL—creates a reliable contract between the Process API and every caller. Agents, user interfaces, and downstream services can react deterministically to those states without parsing free-form model text.
Step 5 — Approval pauses it
Once the approval threshold is triggered, the Process API persists PENDING_APPROVAL and returns that status immediately rather than holding the original request open. The agent receives a definitive answer — the order is awaiting approval — and can update the operations manager right away. The agent’s immediate task is complete until a human weighs in.
Meanwhile, an approval workflow routes the request to the designated approver along with a bound evidence package: the order details, the policy rule that triggered escalation, the requestor’s verified identity, the current payment and inventory snapshots, and an expiration window. Human-in-the-loop approvals in intent-driven architectures should always be asynchronous and durable; holding synchronous connections open while waiting for human review creates fragile bottlenecks that fail under load.
Agent Visualizer maps your agent network in real time — showing connections between agents, MCP servers, and LLMs, live call volume between them, and which agents lack Omni Gateway policy coverage.
Step 6 — Revalidation resumes it
When the approver signs off, a callback or event notifies the Process API to resume. Before executing any downstream writes, however, the API must revalidate the facts loaded in Step 3.
Revalidation is essential because business state shifts while requests wait in an approval queue. Between the initial request and final sign-off, a payment can be reversed, inventory can be allocated to another priority order, or the order total can change. An approval granted against yesterday’s snapshot does not authorize fulfillment against a compromised state today. The Process API fetches fresh facts, confirms they still satisfy policy and match the approval context, and only then proceeds—or returns FAILED_RETRYABLE or REJECTED with clear diagnostic context if conditions have changed.
Step 7 — A verified result returns
With facts revalidated, the Process API allocates inventory, triggers fulfillment, updates the ERP, and returns RELEASED. The agent receives a structured terminal status it can report back to the user with confidence.
If a network timeout causes the agent to retry the request, the idempotencyKey passed in Step 3 allows the Process API to recognize the duplicate call and return the existing RELEASED result without double-shipping the order. Across the entire network, Agent Visualizer maps live connections and call volumes between agents, MCP servers, and LLMs—highlighting any nodes that lack Omni Gateway policy coverage—so teams can trace every intent from authenticated request to verified outcome.
Choosing the right Agent Fabric mechanism
When your architecture requires cross-agent delegation—such as an order orchestrator handing off exceptions to a dedicated fulfillment agent—Agent2Agent (A2A) provides the open communication protocol. MuleSoft supports multi-agent interoperability through A2A Bridge, which lets existing non-A2A agents (including Salesforce Agentforce agents) join your agent network without being rebuilt, and A2A Connector, which enables Mule applications to operate natively as A2A-compliant agents.
Where this breaks
Even well-intentioned agent architectures fail when key boundaries blur in production:
- Overly generic tool contracts: Exposing update_order(fieldName, value) turns an agent into an unguarded database client, making actions hard to audit and harder to roll back. Always name and scope tools around bounded business outcomes.
- Trusting identity from prompts: If a Process API accepts “approver: alice@company.com” inside tool arguments to authorize an action, any user or prompt injection can spoof privileges. Derive principal identity strictly from validated tokens at the gateway.
- Unbounded domain context: Giving an order broker access to HR, finance, and IT tools expands the surface area for wrong tool selection. Scope every broker to the narrowest domain catalog required for its job.
- Synchronous approval waits: Keeping API threads open while waiting for a human approver leads to timeouts and brittle retries. Persist PENDING_APPROVAL immediately and resume asynchronously via callback.
- Skipping post-approval revalidation: Inventory and payment states change while approvals sit in a queue. Executing without re-checking live System APIs risks fulfilling unbacked or unpaid orders.
- Non-idempotent writes: Agents retry automatically when transient network errors occur. Every state-changing Process API operation must enforce an idempotency key so retries never trigger duplicate shipments or charges.
Designing for deterministic execution
Adding a conversational interface on top of legacy endpoints does not create an intent-driven enterprise. Sustainable agentic transformation depends on keeping probabilistic reasoning cleanly separated from deterministic execution: let the model interpret intent and select bounded capabilities, while APIs enforce rules, verify state, and own the transaction.
The seven steps in this walkthrough —bounded contracts, token-verified identity, server-retrieved facts, externalized policy checks, durable human approvals, pre-execution revalidation, and idempotent terminal states—give teams a repeatable blueprint for production safety. With MuleSoft Agent Fabric—combining MCP Bridge, MCP Connector, Omni Gateway, Agent Broker, and Agent Visualizer—you can enforce those guardrails across every agent workflow so your teams move faster without sacrificing control.












