An Agent Fabric network of Proactive Maintenance, Turnaround & Outage, and Order-to-Cash brokers that call an Informatica MDM MCP server for golden records (asset, facility, customer, product, vendor) before any A2A agent acts, with fail-closed misses, MCP servers, and Flex Gateway governance for tracing, metering, and rate limits.
Tags: agent-fabric, informatica, predictive-maintenance, mdm, grounding, broker, utilities, oil-and-gas, flex-gateway, agent-script, governance, a2a, energy, order-to-cash, salesforce, mcp
MDM-Grounded Agent Brokers for Energy and Oil & Gas on Agent Fabric
Deliverable: A governed Agent Fabric network of three Agent Script brokers (Proactive Maintenance, Turnaround & Outage, Order-to-Cash) that call an Informatica MDM MCP server for golden records before any A2A agent acts, plus the A2A agents, MCP servers, and Flex Gateway policies around them. Every work order, crew assignment, credit check, and invoice traces back to a mastered asset, facility, customer, product, or vendor.
Objective: An LLM broker can reason about a pressure drop, but it cannot know which facility owns the pipeline, whether "{BuyerName}", "{BuyerName} LLC" and a third spelling are one buyer or three, or how many wells the portfolio really contains. Left alone it assumes defaults, invents credit limits, and routes a work order to the wrong site, with different answers on every run and nothing to audit. This blueprint makes master data the grounding layer: the broker's first step is always a governed MDM lookup, downstream agents receive the golden record rather than free text, and a miss stops the workflow instead of being papered over.
What's Getting Built
- Proactive Maintenance Broker (Agent Fabric broker) — resolves the asset, detects the anomaly, checks safety, sources parts, opens the work order at the parent facility, notifies the operator · A2A message send
- Turnaround & Outage Broker (Agent Fabric broker) — resolves the unit, recalculates plan, procurement, workforce, and cost; answers portfolio-count questions from the registry · A2A message send
- Order-to-Cash Broker (Agent Fabric broker) — resolves buyer and product, then validates, allocates, schedules, bills; also handles vendor onboarding and order exceptions · A2A message send
- Informatica MDM MCP server (System API exposed as MCP, streamable HTTP) — read-only golden-record tools ·
resolve_asset, reconcile_well, count_assets, lookup_customer_360, resolve_product, resolve_vendor, screen_vendor_onboarding, assemble_compliance_evidence, GET /health
- Safety and Compliance MCP server — procedure and regulatory validation before dispatch ·
check_compliance_requirements
- Domain A2A agents (Process APIs) — anomaly detection, parts, work orders, customer notification, turnaround planning, procurement, workforce, finance, order validation, inventory, asset health, logistics, billing, order exceptions, pipeline mitigation, vendor onboarding · each publishes an agent card and accepts A2A message send
- Gateway layer — ingress and egress Flex Gateways with agent-card, tracing, and rate-limit policies
Prerequisites
- Anypoint Platform org with Agent Fabric (Agent Broker v2, network descriptor
agentNetwork: 2.0.0), API Manager, a CloudHub 2.0 private space, and two managed Flex Gateways (ingress, egress).
- Any LLM endpoint (Azure OpenAI in the reference build) registered as an LLM API instance, key as a secure property.
- Informatica MDM (Business 360 or equivalent) with Asset, Facility, Customer, Product, and Vendor domains, survivorship rules, and DQ scores and lineage over REST. REST credentials and domain models are the long-lead item.
- Optional: a Salesforce org with a JWT-bearer Connected App as a second trust source.
- Named stewards per MDM domain; lookup misses route to them.
Choose your path
- Broker-grounded (this blueprint) — Choose when several agents across SAP, ServiceNow, Salesforce, and ML platforms must act on one identity for an asset or buyer, and the LLM decides which agents to call.
- API-led with a fixed flow — Choose when the sequence never varies; a Process API that calls MDM then downstream systems is cheaper and deterministic. Keep brokers for requests that branch on intent.
Architecture
1. Model the golden-record contract before the agents
- One read-only tool per question:
resolve_asset(assetId) returns type, parent facility, criticality tier, operator, region; lookup_customer_360(name) returns master id, aliases, credit limit and status, parent, active contracts, and how many source records were merged; resolve_product(product) returns SKU, canonical name, grades, specs, hazmat class, unit of measure; reconcile_well(well) returns one golden well plus every merged source id; count_assets(assetType, region?, status?) returns a registry count; resolve_vendor and screen_vendor_onboarding cover partner dedup and APPROVE/REVIEW/REJECT gates.
- Every response carries the same envelope:
found, source, domain, goldenRecord, dataQualityScore, certifiedAt, lineage. Brokers and agents key off found and the DQ score, never off free text. This gives every answer an audit line: golden record, DQ score, certified time, lineage.
- Keep tools read-only (merges happen in MDM, not via an LLM tool). Bound every argument and normalise identifiers server-side so
TX-LS-0923 and txls0923 resolve identically.
- Back each tool with Business 360 REST calls; the contract stays fixed if the data layer changes. Any representative data set behind it must be labelled with its true
source.
2. Build the MCP servers as Mule apps
- Use the Mule MCP connector with a streamable HTTP server config and
mcpEndpointPath="/mcp" set explicitly. Add /health.
- One
mcp:tool-listener flow per tool with a JSON-schema parameters block. Return write(payload, 'application/json') as tool text, with an on-error-continue that returns a structured error object so failures reach the broker as data.
- Build the Safety and Compliance server the same way; publish both to Exchange.
3. Build and register the A2A agents
- Each domain agent is a Mule flow behind the A2A connector with a published agent card: name, one skill with id, description, tags, and example prompts. The card's
url is built from a deploy property (agent.url.main) and must be the app's real internal hostname.
- Reply with
write(payload, "application/json") as the text part. Hand-built DataWeave prose fails: a literal $ is read as a variable reference (HTTP 500), and list map ... joinBy "" ++ "text" binds ++ to the array. Write currency as USD.
- Pass the golden record (ids, facility, criticality, credit limit) inside the A2A message so work orders and invoices carry mastered identifiers.
4. Write the brokers so MDM is step one
- In the network descriptor declare each A2A agent under
registry.agents, each MCP server under registry.mcps (transport streamableHttp, path /mcp), the LLM under registry.llms, and a context.connections entry per target (kind: a2a, mcp, or llm) with URLs from deploy properties. Each broker is kind: AgentScript with a card listing 3 to 4 concrete example prompts.
- In each
.agent file bind targets as actions: a2a://{agent}_connection with kind: "a2a:send_message", and mcp://{mdm}_connection with kind: "mcp:tool" and a tool_name. Only actions listed under the orchestrator's reasoning.actions are callable.
- Encode grounding in the orchestrator instructions as ordered rules:
- Proactive Maintenance: FIRST
resolve_asset; then anomaly detection, check_compliance_requirements, parts, and a work order routed to the MDM parent facility; before notifying, optionally account_360 against the CRM; the report leads with the MDM-verified asset (type, facility, operator, criticality).
- Turnaround:
resolve_asset when a unit is named; count_assets for any portfolio-scope question (how many wells, pipelines, transformers), so counts are registry answers and not estimates; then planning, procurement, workforce, finance.
- Order-to-Cash:
lookup_customer_360 and resolve_product before the order agent; note when duplicates were merged into one buyer; the credit check uses the golden credit limit.
- Add request-type overrides in the same broker (well reconciliation, HSE evidence assembly, midstream mitigation, vendor onboarding, order exceptions). Each names its first MDM call and forbids inventing results a tool did not return.
5. Fail closed on every grounding miss
found:false, an error object, a timeout, or a DQ score below your threshold means: do not call action agents. Return INPUT_REQUIRED (identifier missing) or a stewardship-routing message (no golden match). Write this into the instructions explicitly; do not rely on model judgment.
- Put no default values in broker instructions. A rule such as "if the asset id is missing, assume {AssetId}" reintroduces the ungrounded behavior this design removes; ask for the identifier instead.
- Never approve what a gate rejected; a
review-required customer routes to a human, not billing.
- Unparseable tool arguments or out-of-list tool calls are rejected by schema validation in the MCP server; the broker reports the failure and stops.
- Optional second trust source: a Salesforce CRM MCP server (
account_360, recent_cases) using read-only SOQL with escaped input. MDM verifies the asset, CRM the account. Add it only once it answers live.
6. Govern at the gateway
- Front the brokers with the ingress gateway and route all outbound traffic (A2A, MCP, LLM) through the egress gateway.
- Apply the A2A agent-card policy and tracing at 100% sampling on each broker. Metering on the LLM instance and the MDM MCP connection gives per-tool and token visibility in cost reporting.
- The ingress is open unless you add authentication: add client-ID enforcement for any non-demo exposure. Add a request-count rate limit on each broker (3 requests per 10 seconds returned a 429 on the fourth call before the LLM was reached). Add token-based limits at the LLM instance only where your org is entitled to those policies; confirm in the policy catalog before planning around them.
7. Deploy and post-deploy hardening
- Build the network project, publish to Exchange, deploy with both gateways and the private space, passing agent base URLs and the LLM key as properties.
- After every network descriptor deploy, re-check the LLM instance upstream URI (a deploy reset it to the bare host, dropping the
/openai/v1/ path, so every broker failed with an internal error), redeploy the LLM and agent-connection API instances, wait for the gateway to re-pull, then restart the broker.
- Restart the broker after any backend redeploy (it caches agent cards). Re-supply all secure properties on every update: a PATCH that omits them clears them.
8. Security and compliance
- Standards in scope: NERC CIP (grid), PHMSA and OSHA (pipelines, workforce), vendor sanctions screening.
assemble_compliance_evidence returns artifacts with source and lineage and a human sign-off flag; report only what it returned.
- Secrets live in secure properties, never in descriptors. Customer, credit, and contract data leave only through the egress gateway to approved MCP targets.
- Log task id, state, tool name,
masterId, DQ score, and lineage per call; never log credit figures or personal data.
Sample payload — Proactive Maintenance task with the MDM lookup before the action
{
"request": "Pipeline TX-LS-0923 is showing a 12.5 PSI pressure drop. Detect the anomaly, validate safety compliance, recommend parts, create a work order, and notify the customer.",
"trace": [
{ "n": 1, "kind": "mcp:tool", "tool": "resolve_asset", "args": { "assetId": "TX-LS-0923" },
"result": {
"found": true, "source": "{mdm-source-label}", "domain": "Asset 360",
"goldenRecord": {
"assetId": "TX-LS-0923", "assetType": "Crude gathering pipeline",
"parentFacility": "FAC-{OPERATOR}-U1", "criticalityTier": "Tier 1 - critical",
"operator": "{OperatorName}", "region": "Permian"
},
"dataQualityScore": 96, "certifiedAt": "{iso-8601-timestamp}", "lineage": "MDM://asset/TX-LS-0923" } },
{ "n": 2, "kind": "a2a:send_message", "agent": "azure-ml-agent" },
{ "n": 3, "kind": "mcp:tool", "tool": "check_compliance_requirements", "args": { "assetId": "TX-LS-0923" } },
{ "n": 4, "kind": "a2a:send_message", "agent": "servicenow-agent",
"message": { "assetId": "TX-LS-0923", "facility": "FAC-{OPERATOR}-U1", "priority": "critical" } },
{ "n": 5, "kind": "a2a:send_message", "agent": "salesforce-agent",
"message": { "operator": "{OperatorName}", "assetId": "TX-LS-0923" } }
],
"task": { "id": "{taskId}", "contextId": "{contextId}", "state": "TASK_STATE_COMPLETED" }
}
Deterministic checks
- Network contract: the descriptor builds clean; each agent card resolves and its
url is not 0.0.0.0 or localhost.
- Ordering: in every trace, a
resolve_asset, lookup_customer_360, or resolve_product call precedes the first a2a:send_message for that task type. The harness asserts this from tracing output, not from response wording.
- MCP contract: each tool's
tools/list entry matches its schema; every response contains found, source, dataQualityScore, certifiedAt, lineage; unknown ids return found:false, never a stack trace.
- Fail-closed: an unknown asset id, an unknown buyer, a stopped MDM server, and a
review-required customer each produce no work order, no invoice, and no notification.
- Determinism: the same asset id or buyer alias returns an identical golden record across 20 repeated calls; assert on
masterId and count values.
- Gateway: with the rate-limit policy enabled, rapid calls return
429 before any LLM call; with client-ID enforcement on, an unauthenticated call is rejected.
- Soak: broker card examples all reach
TASK_STATE_COMPLETED with zero fallbacks.
Testing and validation
- Run every broker-card example prompt for several rounds, recording state, latency, whether the answer names the MDM-verified entity, and any agent fallback text. In reference runs Order-to-Cash completed in roughly 6 to 10 seconds and the four-agent Proactive and Turnaround flows in roughly 20 to 35 seconds, with a tight p50 to p95 spread.
- Edge case: aliases. One buyer under three spellings must give one
masterId and credit limit; one well under its work-order, ERP, and regulatory ids must give one golden well naming each source.
- A request with no identifier must return
INPUT_REQUIRED, not an assumed asset.
- After each redeploy send one real broker call; a deploy exit code does not prove the LLM URI or card cache is right.
Phased rollout
Phase 1 — Connect
- Deploy the MDM and Safety MCP servers and the domain agents; verify
/health, agent cards, and tool lists. Deploy the network with Order-to-Cash first (fastest, simplest) and prove one grounded order.
Phase 2 — Map and validate
- Point the MCP tools at live Business 360 domains; validate envelope fields, DQ scores, and lineage against real golden records. Add Proactive and Turnaround, then the override request types. Apply gateway policies and run the soak suite.
Phase 3 — Production
- Add client-ID enforcement, steward routing, alerts on
found:false rate and low DQ, trace retention.
Success metrics
- Share of action-taking tasks preceded by a successful MDM lookup (target 100%).
- Golden-record hit rate,
found:false volume, steward time-to-clear.
- Work orders routed to the correct facility first time; token and MCP cost per task from metering.
- Completion rate, fallback rate, and p95 latency per broker.
Troubleshooting
- Broker says agents are "unavailable" and logs "All connection attempts failed" — Likely cause: the agent card
url still carries the 0.0.0.0 placeholder, so the broker dials its own loopback. Fix: set agent.url.main to the agent app's real internal hostname, redeploy, restart the broker.
- Agent returns HTTP 500 after connectivity is fixed — Likely cause: DataWeave parsing a literal
$, or the joinBy/++ precedence. Fix: return write(payload, "application/json") and write USD.
- Every broker returns an internal error right after a network deploy — Likely cause: the LLM instance upstream URI reset to the bare host. Fix: restore the full path, redeploy the instance, wait, restart brokers.
- Some agents fall back, others do not — Likely cause: a deployment update omitted secure properties and wiped an LLM key or keystore password. Fix: re-supply all secure properties on every deploy.
- MCP session fails at initialise — Likely cause:
mcpEndpointPath or the /mcp URL suffix missing. Fix: set both.
found:false for a real asset — Likely cause: identifier formats differ across systems. Fix: normalise server-side; add the alias in MDM.
- Broker invents an asset or default value — Likely cause: a fallback default in the instructions or a missing fail-closed rule. Fix: remove defaults and return
INPUT_REQUIRED.