SEARCH & AI / 014

AEM + MCP for Enterprise AI Agents

An exploratory architecture note on exposing governed AEM capabilities to enterprise AI agents through carefully bounded MCP tools.

SHARE
LinkedIn X Facebook Threads

Topic map

Expose capabilities, not credentials

AEM and MCP for enterprise AI agents

  1. 01User
  2. 02Agent
  3. 03Tool boundary
  4. 04Policy
  5. 05AEM source

SYSTEM OVERVIEW

SYSTEM / FLOW

Every tool call crosses an application boundary.

PoC architecture. MCP does not eliminate the need for application authorization or safe downstream access.

ALLOWED REQUESTAuthenticatedcallerAgent toolrequestServer policycheckScoped AEM readEvidence resultREJECTED REQUESTUntrustedargumentsValidation /policy failureSafe error

Allowed request

  1. Authenticated caller
  2. Agent tool request
  3. Server policy check
  4. Scoped AEM read
  5. Evidence result

Rejected request

  1. Untrusted arguments
  2. Validation / policy failure
  3. Safe error

THIS ARTICLE EXPLORES

  1. Keep model suggestions separate from authorization.
  2. Design a bounded read-only tool first.
  3. Treat retrieved content as untrusted data.

01 / PROBLEM

A model choosing a tool is not permission to run it.

This is a custom read-only tool architecture exploration using the linked MCP 2025-06-18 specification as its baseline. It is not a description of Adobe’s managed MCP offering or a claim about its availability. An agent can suggest arguments that exceed the caller's scope. Validate both the tool contract and the downstream operation on the server. Start with read-only retrieval and do not give the model an unrestricted repository path or an administrative credential.

02 / IMPLEMENTATION

Keep the first tool narrow.

The illustrative schema accepts a query and locale, not an arbitrary URL or credential. Scope is derived from trusted identity outside the model-controlled arguments. Transport authorization and downstream content authorization remain distinct checks.

Illustrative read-only tool input

JSON
{
  "name": "find_approved_guidance",
  "inputSchema": {
    "type": "object",
    "additionalProperties": false,
    "properties": {
      "query": {
        "type": "string",
        "minLength": 1,
        "maxLength": 500
      },
      "locale": {
        "type": "string",
        "enum": [
          "en",
          "fr"
        ]
      }
    },
    "required": [
      "query",
      "locale"
    ]
  }
}

03 / PERMISSIONS

Minimize the downstream authority.

Use the caller's allowed scope to constrain the operation and validate token audience where applicable. Do not pass arbitrary client tokens through to unrelated downstream services. Keep resource access and tool execution auditable without logging private passage text.

Server-owned execution

Retrieved text is evidence, never authority to expand the tool's permissions.

  1. 01Authenticate
  2. 02Validate arguments
  3. 03Resolve caller scope
  4. 04Execute bounded read
  5. 05Filter result
  6. 06Return provenance

04 / FAILURE MODES

Test adversarial arguments and content.

A retrieved passage may contain instructions aimed at the agent. Keep that content separated from the tool policy and test that it cannot request new privileges or redirect data to an external destination.

Negative cases
AttemptExpected boundaryEvidence
Read outside caller scopeDenied before source content is returned.Policy decision and empty protected payload.
Arbitrary URL/pathRejected by the tool schema and execution policy.Validation error without external request.
Instruction in source textTreated as content, not a privileged command.No unauthorized follow-up operation.
Repeated expensive callsBounded request and execution budgets.Rate/timeout behavior.

05 / EVALUATION

Validate the tool before evaluating the agent.

Use deterministic requests to test schema validation, denial behavior and source provenance. Then evaluate the agent workflow separately. A tool annotation alone does not enforce read-only behavior.

PoC acceptance

  • No write operation is reachable through the proposed tool.
  • Denied identities cannot retrieve protected passages.
  • Arguments cannot select arbitrary endpoints.
  • Timeouts and dependency failures return safe errors.
  • Every returned passage carries an allowed source reference.

REFERENCE DESK

Sources & further verification

Product behavior should be checked against the target AEM and search-engine release. The design choices in this note are proposed assessment criteria, not vendor guarantees.

SHARE THIS NOTE

Found this useful? Share it with someone working on AEM, platform engineering or search.

SHARE
LinkedIn X Facebook Threads

CONTINUE THE THREAD

Related engineering notes

Related engineering work