Skip to main content

Agentic AI in UAE government: control at the API layer

Agentic AI in UAE government needs each agent's API calls scoped, logged and stoppable. How to enforce that at the API gateway, inside your own infrastructure.

  • ai-agents
  • government
  • mcp
  • governance
  • audit
  • data-residency
Zerq team

Agentic AI in UAE government is moving from pilots to production, and every agent that completes a service for a resident will call real government systems through APIs. The control point that already exists for those calls is the API gateway. If each agent gets its own identity at the gateway, a defined set of endpoints, a write boundary, rate limits and a stop switch, and every call is logged in the entity's own database, an agent cannot quietly exceed its authority, and the evidence for oversight exists before anyone asks for it.

Why is agentic AI in UAE government urgent now?

The timeline has compressed into a few months.

  • On 23 April 2026, the UAE Cabinet announced that 50% of federal government sectors, services and operations would move to agentic AI within two years, with a task force chaired by the Minister of Cabinet Affairs driving execution.
  • In August 2026, the National Committee for Agentic Artificial Intelligence presented a unified guide for designing government services powered by agentic AI. Its principles include reusing data the government already holds, explaining the steps and getting the customer's approval before any action, carrying out the service through government systems, and handing exceptions to a specialist employee with the full context.
  • On 5 October 2026, the Dubai Future Foundation launched an Agentic AI for Government Services Accelerator with the Dubai Centre for Artificial Intelligence, Digital Dubai and the Dubai Electronic Security Centre (DESC). Its first phase brings together 33 Dubai government entities and more than 300 public-facing use cases.
  • On 14 October 2026, Omar Al Olama, Minister of State for Artificial Intelligence, said the UAE already has an agent control tower that every deployed agent must be plugged into, with audits run by both agents and humans. He compared the permission model to a bank's "maker and checker" controls and said decisions that affect a person's livelihood are a red line.

Two further signals matter for architects. In June 2026, the UAE announced a Federal Authority for Artificial Intelligence and Data that sets AI and data standards and drives compliance across federal entities. And at the April Cabinet meeting, a data sharing policy based on collecting data once and using it securely across entities was approved. Agents that reuse government data will do it through inter-entity APIs.

What goes wrong when government AI agents call ministry APIs?

The unified guide expects the agent to carry out the service through government systems. In practice that means the agent calls a licensing system, a payments service, a case management platform or another entity's data API. Most of those APIs were built for a portal or a mobile app with a human behind every click. Four problems show up quickly.

Agents borrow identities. The fastest way to get a prototype working is to give the agent the service account the portal already uses. Now the logs cannot tell a resident's click from an agent's call, and revoking the agent means breaking the portal.

Read and write are not separated. An agent that only needs to check an application's status is handed credentials that can also submit, amend or cancel. The maker and checker model the minister described cannot be enforced if the agent can reach the "approve" endpoint at all.

Evidence is scattered. The control tower expects every agent to report what it did. If each team builds its own MCP server or integration, each produces logs in a different format and place, and some produce none. MCP (Model Context Protocol) is the open standard most AI clients now use to discover and call tools.

Stopping an agent is slow. When an agent misbehaves at 2 a.m., someone has to find which credentials it holds, in which systems, and rotate them one by one.

The cost is concrete: an audit finding, a paused rollout, or an agent touching a resident's record it should never have seen. With a two-year target and leaders assessed on adoption, a pause is expensive.

In plain terms

Treat every AI agent like a new employee with a badge. It gets its own badge, access only to the rooms it needs, and a record of every door it opens. It can propose actions but not approve them, and security can switch its badge off in seconds. The API gateway is where the badge, the doors and the record already live, so put the agents there first. Keep all of it inside your own infrastructure.

How does an API gateway support agentic AI in UAE government?

Here is how each problem maps to a Zerq capability, using names that exist in the product today.

One identity per agent. In Zerq, an API consumer is a client with one or more access profiles. Give each agent its own client and profile. Every request carries X-Client-ID and X-Profile-ID plus the profile's credential, so request logs attribute every call to a specific agent rather than a shared service account. See access control for AI agents for the profile model.

Only the endpoints it needs. A client is assigned collections, and the gateway resolves a request only against the client's own active collections. A path outside them returns 404 with No API route found for this path, so the agent cannot even discover what else exists. The Gateway MCP uses the same assignment: its list_collections, list_endpoints and endpoint_details tools show the agent only what its client was given.

A write boundary for maker and checker. Each published endpoint lists its allowed HTTP methods, and the gateway refuses others with 405 before any backend or workflow runs. Put the agent's read endpoints and a single "submit request" endpoint in its collections, and keep the "approve" endpoint in a collection assigned only to the staff application. The agent can make; only a human-operated client can check. The read-only agent post walks through each layer of this boundary.

Limits per agent. A policy attached to the client sets a rate limit and a quota (rate_limit_requests per rate_limit_interval, quota_requests per quota_interval), so one runaway agent returns 429 instead of loading a core system.

Evidence in your own database. Every gateway call, including each MCP execute_endpoint call, is written to the request log in the entity's MongoDB, with client_id, profile_id, status, latency and trace_id. MCP calls carry the X-Gateway-Source: mcp header so you can separate agent traffic from app traffic. Configuration changes go to an audit log protected by a hash chain that auditors can verify. See observability.

A feed for the control tower. Request, audit and AI logs can be streamed to an OpenTelemetry (OTLP) collector, Splunk HTTP Event Collector or a webhook, so a central monitoring service receives agent activity as it happens. Bodies are off by default.

A stop switch. Setting a client inactive makes every further call return 401 Client is inactive, for REST and MCP alike, and the change is itself audited.

Sovereign deployment. Zerq runs entirely on the entity's infrastructure, on-premises or in a UAE sovereign cloud, with no external control plane. Configuration, logs and credentials stay inside the perimeter. See security and architecture.

If your entity is preparing services for the federal program or the Dubai accelerator, the government and public sector use case shows how this fits, or book a walkthrough with our team.

What does the setup look like for engineers?

The data flow is simple: agent runtime → Zerq (identity, collection, method, rate limit, log) → ministry backend. MCP clients connect to the Gateway MCP endpoint (default path /mcp, set with MCP_PATH), and each tool call loops back through the same gateway pipeline as a REST call.

  1. Create one client per agent, for example licensing-status-agent, with its own access profile. Use token, JWT or OIDC (OpenID Connect) auth, add an IP allowlist (allowedIPs) for the agent runtime's egress addresses, and set a token expiry.
  2. Assign collections. A licensing-read collection with GET endpoints and a licensing-intake collection with one POST /licensing/applications/drafts endpoint. The approvals collection is assigned only to the staff portal client.
  3. Attach a policy with a rate limit and daily quota sized for the agent's expected volume.
  4. Connect the agent to the Gateway MCP endpoint with its client ID, profile ID and credential.
  5. Stream logs to the monitoring service:
LOG_STREAM_OTLP_ENDPOINT=https://otel-collector.internal:4318
LOG_STREAM_TYPES=request,audit
LOG_STREAM_INCLUDE_BODIES=false
REQUEST_LOG_RETENTION_DAYS=365
AUDIT_LOG_RETENTION_DAYS=2555

A tool call from the agent looks like this after the MCP session is initialized:

POST /mcp
X-Client-ID: 6730f1c2a9e4b1d2c3f4a501
X-Profile-ID: 6730f1c2a9e4b1d2c3f4a502
Authorization: Bearer <agent profile token>
Mcp-Session-Id: <session id from initialize>
Content-Type: application/json

{
  "jsonrpc": "2.0",
  "id": 7,
  "method": "tools/call",
  "params": {
    "name": "execute_endpoint",
    "arguments": {
      "method": "GET",
      "path": "/licensing/applications/APP-20931/status"
    }
  }
}

If the agent tried POST /approvals/APP-20931, the gateway would answer 404 because approvals is not in its collections, and the tool result would be flagged as an error with the status code. That attempt is in the request log under the agent's client_id, which is exactly the signal an oversight team wants to see.

To stop the agent, a user with a modifier role calls PUT /api/v1/clients/:id/status (or toggles the client in the console). The call is recorded in the audit log as toggle_status, and auditors can check the audit chain with GET /api/v1/audit/verify. Prometheus metrics such as zerq_mcp_tool_calls_total{server,tool,result} give the monitoring team a per-tool error rate.

If the agents themselves call language models, the AI Gateway applies the same idea to model access: AI access is enabled per profile with an allowed model list and token caps, and guardrail connectors can screen prompts.

Illustrative scenario

Illustrative scenario, not a specific customer deployment.

Before. A federal entity's innovation team built a licensing assistant in six weeks. It used the public portal's service account and a custom MCP server written by a contractor. The agent could check status, but the same account could also amend applications. Logs lived in the contractor's container. When the entity's security team asked which residents' records the agent had read in its first week, nobody could answer within a day.

What was set up in Zerq. The entity ran Zerq in its own data center. The assistant got its own client and profile, a read collection, an intake collection with one draft endpoint, and a policy of 60 requests per minute. The approval endpoint was assigned only to the staff portal client. Request and audit logs streamed to the entity's monitoring collector, and a runbook named who can set the client inactive.

After. Every agent call is attributed to the assistant's client. An attempt to reach an approval endpoint returns 404 and shows up in monitoring. The contractor's MCP server was retired. When the security team asks the same question now, a request log filter by client_id and date answers it in minutes.

Checklist: is your entity ready for government AI agents?

  • Does every AI agent have its own identity at the API layer, separate from portal and app accounts?
  • Can you list, for each agent, exactly which endpoints it can call?
  • Is there an endpoint an agent can reach that approves, pays, or changes a resident's entitlement?
  • Are agent calls logged in a database your entity controls?
  • Can you tell agent traffic from human-driven traffic in your logs?
  • Does agent activity reach your central monitoring service as it happens?
  • Can you stop a single agent in under five minutes without breaking other services?
  • Is every change to an agent's permissions recorded in an audit log an auditor can verify?
  • Do agents have rate limits that protect your core systems?
  • Does the whole path run inside your own infrastructure or a UAE sovereign cloud?

Where this approach has limits

The gateway sees requests, not reasoning. The control tower described by the minister records an agent's decision steps; that has to come from the agent runtime, and the gateway's request logs complement it rather than replace it. Zerq's request logs are access-controlled but not hash-chained; only the audit log is. Zerq has no built-in human approval queue, so the "checker" step lives in your case management or staff application, with the gateway making sure the agent cannot reach it. Gateway MCP sessions are held in memory per replica, so multi-replica deployments need sticky sessions. And if your agents only call one internal system with no shared exposure, the platform's own access controls may be enough for a pilot.

Summary

The UAE is moving half of federal services to agentic AI within two years, and it expects every agent to be monitored and to stay within its authority. Agents complete services by calling government APIs, so the API gateway is the natural place to give each agent an identity, a scope, a write boundary and a stop switch. Zerq does this on the entity's own infrastructure, with request and audit logs in its own database and a live feed to central monitoring. Start with one agent, one read collection and one submit endpoint, and prove the boundary before the next service goes live.

Sources

Related reading: AI agent incident response at the API gateway, AI agents in oil and gas for the same controls applied to energy companies' commercial and operational APIs, Abu Dhabi health data sharing at the API layer for AI assistants that read patient data, and the case for air-gapped API gateways in defence and government.


Zerq is an enterprise API gateway built for regulated industries — one platform for API management, AI agent access, compliance audit, and developer portal, running entirely in your own infrastructure. See how it works or request a demo to walk through your specific requirements.