Purpose
The Action Mediation Layer (AML) is the entry point for all tool invocations. It:- Intercepts requests before they reach tools
- Normalizes protocol-specific formats to AARM schema
- Enriches with identity and context
- Forwards to Policy Decision Point
Action Schema
Every action is normalized to this schema:Protocol Adapters
The AML includes adapters for different tool protocols:MCP Adapter
HTTP Adapter
Identity Extraction
The AML extracts identity from request metadata:Context Building
Context includes session state relevant to policy decisions:Meta-Tool Resolution: Some agent platforms use wrapper tools (meta-tools) where the actual tool identity is embedded in the parameters. For example, an MCP invocation may arrive as
tool_name: "mcp_tool" with the actual server and tool names in the parameters JSON. The AML MUST resolve these before policy evaluation.See OpenTelemetry Ingestion: Meta-Tool Resolution.Requirements
| Requirement | Description |
|---|---|
| Complete interception | All tool invocations must pass through AML |
| Schema compliance | Output must conform to AARM action schema |
| Identity binding | Every action must have identity context |
| Idempotent | Same request produces same action representation |
| Meta-tool resolution | Wrapper tools must be resolved to actual tool identity before policy evaluation |