By NHI Mgmt Group Editorial TeamPublished 2026-04-15Domain: Agentic AI & NHIsSource: WorkOS

TL;DR: Enterprise AI agents need typed, semantically rich API access rather than endpoints alone, and Apollo GraphQL CEO Matt DeBergalis argues GraphQL plus MCP gives agents the transport and meaning layers they need, according to WorkOS. The identity implication is that machine access now depends on governable schema, scope, and delegation rather than simple connectivity.


At a glance

What this is: This is an analysis of why GraphQL schemas and MCP together matter for AI agents, with the key finding that agents need meaning-rich, typed access to enterprise systems, not just API endpoints.

Why it matters: It matters because IAM teams now have to govern how non-human and agentic identities understand, request, and use enterprise data, not just whether they can authenticate.

👉 Read WorkOS's analysis of GraphQL, MCP, and enterprise AI agents


Context

AI agents change the access problem because they do not just call APIs, they choose what to ask for and how to combine results. In practice, that pushes identity governance from simple connection control toward semantic control, where the shape and meaning of exposed data affect what an agent can do with it. For AI agent governance, the primary question is no longer only whether access exists, but whether the exposed interface makes unsafe action too easy.

GraphQL is relevant here because its schema and type system provide a structured description of objects, fields, and relationships that an agent can inspect before constructing queries. MCP addresses how an agent connects to systems, while GraphQL helps define what those systems mean. That combination is attractive in enterprise environments with legacy backends, but it also raises a new governance burden: the access layer becomes part of the control plane for agent behaviour.


Key questions

Q: How should security teams govern AI agents that access APIs through GraphQL and MCP?

A: Security teams should govern the agent, the transport, and the schema as one access path. MCP determines how the agent reaches the system, while GraphQL determines what the agent can understand and query. Treat the schema as part of the authorization boundary, review field exposure by business sensitivity, and restrict composition paths that let an agent assemble more context than the workflow requires.

Q: Why do typed API layers change the risk profile for AI agent access?

A: Typed API layers change the risk profile because they reveal object relationships and valid query shapes to the agent at runtime. That reduces integration friction, but it also expands what the agent can discover and combine. When the interface describes too much business context, the agent's effective privilege grows even if the underlying credentials do not change.

Q: What breaks when legacy systems are exposed to agents without schema governance?

A: What breaks is the assumption that connectivity alone is safe enough. A legacy backend may remain unchanged, but a broad schema can make it legible to an agent in ways humans never intended. That creates unintended discovery of sensitive data, privileged relationships, or cross-system actions that were never part of the original workflow.

Q: How do IAM and platform teams decide whether an agent should use GraphQL at all?

A: They should allow it only when the schema can be reduced to the smallest set of objects and operations needed for the task. If the use case requires broad relational discovery, stronger review and tighter tool segmentation are needed. The decision should be based on how much business meaning the agent can infer, not just on technical feasibility.


Technical breakdown

GraphQL schema as a semantic access layer for AI agents

GraphQL does more than expose data. Its schema describes object types, field relationships, and allowable query shapes in a way that an agent can inspect and reason over at runtime. That makes it different from a simple REST endpoint list, where the caller must already know the resource model. For AI agents, schema becomes a machine-readable contract that can reduce ambiguity when assembling queries across business systems. The security tradeoff is that the same semantic richness can expand the agent's effective reach if schemas expose too much relational context or weakly governed fields.

Practical implication: treat GraphQL schema design as an access governance decision, not only an application architecture choice.

How MCP and GraphQL complement each other in enterprise AI

MCP defines the transport and discovery layer for agents connecting to tools, while GraphQL provides the typed data model behind those tools. In a mixed enterprise stack, that separation matters because the agent needs both a way to reach the system and a way to understand what the system can safely return. Legacy environments benefit because they can expose older systems through a structured layer instead of rewriting backends. The risk is that ungoverned composition can let an agent traverse more business context than any human workflow would normally permit.

Practical implication: map each MCP-exposed tool to a narrowly governed GraphQL surface and review the combined exposure, not each layer in isolation.

Typed queries and enterprise data discovery for agent workflows

Typed queries let an agent infer available objects, fields, and relationships without hardcoded backend knowledge. That is useful for discovery, but it also means the agent can generate new access paths as soon as the schema exposes them. In identity terms, this is a shift from static integration to runtime interpretation. The control question becomes whether the schema encodes enough business meaning to support safe use, while still preventing overbroad discovery of sensitive data or privileged operations.

Practical implication: classify GraphQL fields by sensitivity and business effect before exposing them to agent workflows.


Threat narrative

Attacker objective: The objective is to use agent-driven API access to reach and combine enterprise data or actions that were not meant to be exposed through a single workflow.

  1. Entry occurs when an AI agent is granted access to an MCP-connected tool surface that can reach enterprise systems through GraphQL.
  2. Credential or scope abuse happens when the agent can compose typed queries across multiple backend systems and discover relationships beyond the intended task boundary.
  3. Impact follows when the agent uses that semantic access to retrieve or assemble business data at a scale that exceeds the original human workflow.

Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

Semantic access control is becoming a governance problem, not just a developer convenience. GraphQL schemas do more than document APIs. They define what an agent can understand, discover, and combine across systems, which means schema design now influences effective privilege. When agents are the caller, the interface itself becomes part of the control surface. Practitioners should treat schema exposure as an identity decision point, not only an application concern.

GraphQL plus MCP illustrates how agentic access collapses the old boundary between transport and meaning. MCP can connect the agent to a system, but GraphQL determines what the agent can make sense of once it arrives. That means a transport control without semantic scoping leaves a major governance gap. The field should stop describing this as integration plumbing and start describing it as runtime access shaping for non-human identities.

Typed API layers create a new kind of identity blast radius. A single schema can make legacy systems legible to agents without backend rewrites, but it can also expose more relational context than intended. The result is a larger blast radius at the interface layer, where permission, data meaning, and business process all converge. Practitioners should assume that schema breadth now affects identity risk directly.

Legacy modernization is now an identity governance exercise, not only a platform refresh. Enterprises are using AI to surface value trapped in older systems, but the governance issue is whether those systems become agent-readable faster than they become agent-safe. That tension is where IAM, data governance, and application architecture now overlap. Teams should align modernization programmes with identity controls before the agent layer hardens.

Agent-enabled enterprise access needs a schema-aware governance model. The old assumption that API exposure equals technical integration is no longer enough. GraphQL and MCP together show that agent access is shaped by how interfaces describe business meaning, not just by whether authentication succeeds. Practitioners should rethink authorization, audit, and data classification as properties of the agent interface itself.

From our research:

  • 70% of organisations grant AI systems more access than they would give a human employee performing the exact same job, according to the 2026 Infrastructure Identity Survey.
  • Only 44% of organisations have implemented any policies to manage their AI agents, despite 92% agreeing that governing AI agents is critical to enterprise security.
  • That gap is why the OWASP Agentic Applications Top 10 is becoming more relevant to identity teams as agent access expands.

What this signals

With 70% of organisations already granting AI systems more access than they would give a human employee performing the same job, the issue is no longer whether agent access exists but whether governance can keep pace with meaning-rich interfaces. GraphQL and MCP make that gap more visible because they expose the semantics an agent can exploit, not just the endpoint it can reach.

Schema blast radius: the real risk is not one API call, but how much business context a typed schema lets an agent infer in a single session. As enterprises connect older systems to agent workflows, identity teams need to think about field-level exposure and cross-system composition together.

This is where zero trust thinking needs to extend into agent-readable interfaces. When the identity layer and the data model are coupled, control coverage depends on whether practitioners can classify agent-facing objects before the agent starts assembling new access paths. That is a governance and architecture decision, not a tooling preference.


For practitioners

  • Inventory agent-facing API surfaces Map every MCP-connected tool and GraphQL endpoint that an AI agent can reach, then document the business objects, fields, and actions exposed through each path. Mark any surface that allows cross-system composition or sensitive relationship discovery.
  • Classify GraphQL fields by business effect Assign sensitivity and decision-impact labels to fields, not just to entire APIs, so teams can see which objects reveal customer data, operational data, or privileged relationships when queried by an agent.
  • Limit schema breadth for agent workflows Expose only the objects and relationships required for the use case, and split high-risk operations into separate governed tools rather than leaving them inside one broad schema.
  • Review delegated access as a combined transport-and-semantics control Assess MCP discovery, GraphQL structure, and downstream authorization together so an agent does not gain unintended reach simply because each layer is individually authenticated.

Key takeaways

  • AI agent access changes when APIs become semantic, because the schema itself shapes what the agent can discover and do.
  • MCP provides connectivity, but GraphQL determines meaning, so both layers must be governed together.
  • Practitioners should control agent-facing schema breadth and field exposure before legacy systems become broadly legible to AI.

Key terms

  • GraphQL schema: A GraphQL schema is the typed description of the data an API exposes, including object types, fields, and relationships. For AI agents, it is more than documentation because it shapes what the caller can discover, combine, and infer at runtime. That makes schema design part of the access control conversation.
  • MCP: Model Context Protocol is a standard for connecting AI agents to tools and data sources. It handles discovery and communication, but it does not by itself define the meaning or safety of the data returned. In agent governance, MCP is the transport layer that must be paired with tighter semantic controls.
  • Semantic access layer: A semantic access layer is an interface that tells an AI system not only how to reach data, but what that data means and how its parts relate. In practice, GraphQL can serve this role by exposing structured business relationships. That increases agent usefulness, but it also raises the stakes for governance.

Deepen your knowledge

GraphQL and MCP governance for AI agents is covered in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are exposing enterprise systems to agent workflows, it is a practical place to align identity, schema, and access decisions.

This post draws on content published by WorkOS: GraphQL meets the agent era, focusing on APIs, MCP, and enterprise AI adoption. Read the original.

NHIMG Editorial Note
Published by the NHIMG editorial team on 2026-04-15.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org