Analyze MCP configuration telemetry

APPLIES TO: Business Central 2026 release wave 1, version 28.0, and later

Model Context Protocol (MCP) configuration telemetry gathers data about the following operations:

  • An MCP configuration was created
  • An MCP configuration was modified
  • An MCP configuration was deleted
  • An MCP configuration was designated as the default

Use this telemetry to track changes to MCP server configurations in your environment. This information is useful for auditing and troubleshooting AI agent integrations. Learn how to configure the MCP server in Configure Business Central MCP Server.

MCP configuration created

Occurs when a new MCP configuration is created.

General dimensions

DimensionDescription or value
messageMCP Configuration created
user_IdThe user telemetry ID for the user. From the user card, you can use user_Id to identify the user who triggered this telemetry event. Learn more in Assign a telemetry ID to users.

Custom dimensions

DimensionDescription or value
aadTenantIdSpecifies the Microsoft Entra tenant ID used for Microsoft Entra authentication. For on-premises, if you aren't using Microsoft Entra authentication, this value is common.
companyNameThe current company name.
environmentNameSpecifies the name of the tenant environment. Learn more in Managing Environments.
environmentTypeSpecifies the environment type for the tenant, such as Production or Sandbox. Learn more in Environment Types.
eventIdAL0000R0Q
alActiveSpecifies whether the configuration is active. Values are true or false.
alDiscoverReadOnlyObjectsSpecifies whether the configuration discovers read-only objects. Values are true or false.
alDynamicToolModeSpecifies whether dynamic tool mode is enabled. Values are true or false.
alIsDesignatedDefaultSpecifies whether this configuration is designated as the default. Values are true or false.
alMCPConfigurationNameSpecifies the name of the MCP configuration.
alUnblockEditToolsSpecifies whether edit tools are allowed for production environments. Values are true or false.

Sample KQL code

This KQL code can help you get started analyzing MCP configuration creation:

traces
| where timestamp > ago(60d) // adjust as needed
| where customDimensions.eventId == 'AL0000R0Q'
| project timestamp
, aadTenantId = customDimensions.aadTenantId
, environmentName = customDimensions.environmentName
, environmentType = customDimensions.environmentType
, companyName = customDimensions.companyName
, mcpConfigurationName = customDimensions.alMCPConfigurationName
, active = customDimensions.alActive
, dynamicToolMode = customDimensions.alDynamicToolMode

MCP configuration modified

Occurs when an existing MCP configuration is modified.

General dimensions

DimensionDescription or value
messageMCP Configuration modified
user_IdThe user telemetry ID for the user. From the user card, you can use user_Id to identify the user who triggered this telemetry event. Learn more in Assign a telemetry ID to users.

Custom dimensions

DimensionDescription or value
aadTenantIdSpecifies the Microsoft Entra tenant ID used for Microsoft Entra authentication. For on-premises, if you aren't using Microsoft Entra authentication, this value is common.
companyNameThe current company name.
environmentNameSpecifies the name of the tenant environment. Learn more in Managing Environments.
environmentTypeSpecifies the environment type for the tenant, such as Production or Sandbox. Learn more in Environment Types.
eventIdAL0000QE9
alMCPConfigurationNameSpecifies the name of the MCP configuration.
alOldActiveSpecifies the previous value of the Active setting (only included if changed).
alNewActiveSpecifies the new value of the Active setting (only included if changed).
alOldUnblockEditToolsSpecifies the previous value of the UnblockEditTools setting (only included if changed).
alNewUnblockEditToolsSpecifies the new value of the UnblockEditTools setting (only included if changed).
alOldDynamicToolModeSpecifies the previous value of the DynamicToolMode setting (only included if changed).
alNewDynamicToolModeSpecifies the new value of the DynamicToolMode setting (only included if changed).
alOldDiscoverReadOnlyObjectsSpecifies the previous value of the DiscoverReadOnlyObjects setting (only included if changed).
alNewDiscoverReadOnlyObjectsSpecifies the new value of the DiscoverReadOnlyObjects setting (only included if changed).

Sample KQL code

This KQL code can help you get started analyzing MCP configuration modifications:

traces
| where timestamp > ago(60d) // adjust as needed
| where customDimensions.eventId == 'AL0000QE9'
| project timestamp
, aadTenantId = customDimensions.aadTenantId
, environmentName = customDimensions.environmentName
, environmentType = customDimensions.environmentType
, companyName = customDimensions.companyName
, mcpConfigurationName = customDimensions.alMCPConfigurationName
, oldActive = customDimensions.alOldActive
, newActive = customDimensions.alNewActive
, oldDynamicToolMode = customDimensions.alOldDynamicToolMode
, newDynamicToolMode = customDimensions.alNewDynamicToolMode

MCP configuration deleted

Occurs when an MCP configuration is deleted.

General dimensions

DimensionDescription or value
messageMCP Configuration deleted
user_IdThe user telemetry ID for the user. From the user card, you can use user_Id to identify the user who triggered this telemetry event. Learn more in Assign a telemetry ID to users.

Custom dimensions

DimensionDescription or value
aadTenantIdSpecifies the Microsoft Entra tenant ID used for Microsoft Entra authentication. For on-premises, if you aren't using Microsoft Entra authentication, this value is common.
companyNameThe current company name.
environmentNameSpecifies the name of the tenant environment. Learn more in Managing Environments.
environmentTypeSpecifies the environment type for the tenant, such as Production or Sandbox. Learn more in Environment Types.
eventIdAL0000QEB
alActiveSpecifies whether the deleted configuration was active. Values are true or false.
alDiscoverReadOnlyObjectsSpecifies whether the deleted configuration discovered read-only objects. Values are true or false.
alDynamicToolModeSpecifies whether dynamic tool mode was enabled. Values are true or false.
alIsDesignatedDefaultSpecifies whether the deleted configuration was designated as the default. Values are true or false.
alMCPConfigurationNameSpecifies the name of the deleted MCP configuration.
alUnblockEditToolsSpecifies whether edit tools were allowed. Values are true or false.

Sample KQL code

This KQL code can help you get started analyzing MCP configuration deletions:

traces
| where timestamp > ago(60d) // adjust as needed
| where customDimensions.eventId == 'AL0000QEB'
| project timestamp
, aadTenantId = customDimensions.aadTenantId
, environmentName = customDimensions.environmentName
, environmentType = customDimensions.environmentType
, companyName = customDimensions.companyName
, mcpConfigurationName = customDimensions.alMCPConfigurationName
, wasActive = customDimensions.alActive

MCP default configuration designated

Occurs when an MCP configuration is designated as the default configuration.

General dimensions

DimensionDescription or value
messageMCP default configuration designated
user_IdThe user telemetry ID for the user. From the user card, you can use user_Id to identify the user who triggered this telemetry event. Learn more in Assign a telemetry ID to users.

Custom dimensions

DimensionDescription or value
aadTenantIdSpecifies the Microsoft Entra tenant ID used for Microsoft Entra authentication. For on-premises, if you aren't using Microsoft Entra authentication, this value is common.
companyNameThe current company name.
environmentNameSpecifies the name of the tenant environment. Learn more in Managing Environments.
environmentTypeSpecifies the environment type for the tenant, such as Production or Sandbox. Learn more in Environment Types.
eventIdAL0000R0R
alActiveSpecifies whether the configuration is active. Values are true or false.
alDiscoverReadOnlyObjectsSpecifies whether the configuration discovers read-only objects. Values are true or false.
alDynamicToolModeSpecifies whether dynamic tool mode is enabled. Values are true or false.
alIsDesignatedDefaultSpecifies whether this configuration is designated as the default (should be true).
alMCPConfigurationNameSpecifies the name of the MCP configuration.
alUnblockEditToolsSpecifies whether edit tools are allowed. Values are true or false.

Sample KQL code

This KQL code can help you get started analyzing MCP default configuration changes:

traces
| where timestamp > ago(60d) // adjust as needed
| where customDimensions.eventId == 'AL0000R0R'
| project timestamp
, aadTenantId = customDimensions.aadTenantId
, environmentName = customDimensions.environmentName
, environmentType = customDimensions.environmentType
, companyName = customDimensions.companyName
, mcpConfigurationName = customDimensions.alMCPConfigurationName
, dynamicToolMode = customDimensions.alDynamicToolMode

To learn more about how to set up alerting on Business Central telemetry, see Alert on Telemetry.

Sample KQL code for monitoring all MCP configuration changes

Use this KQL code to monitor all MCP configuration lifecycle events:

traces
| where timestamp > ago(1d) // adjust as needed
| where customDimensions.eventId in ('AL0000R0Q', 'AL0000QE9', 'AL0000QEB', 'AL0000R0R')
| extend eventId = tostring(customDimensions.eventId)
| extend eventType = case(
    eventId == 'AL0000R0Q', 'Created',
    eventId == 'AL0000QE9', 'Modified',
    eventId == 'AL0000QEB', 'Deleted',
    eventId == 'AL0000R0R', 'Default Designated',
    'Unknown'
)
| project timestamp
, aadTenantId = customDimensions.aadTenantId
, environmentName = customDimensions.environmentName
, environmentType = customDimensions.environmentType
, companyName = customDimensions.companyName
, eventType
, mcpConfigurationName = customDimensions.alMCPConfigurationName

To learn more about how to set up alerting on Business Central telemetry, see Alert on Telemetry.

Model Context Protocol (MCP) in Business Central overview
Configure Business Central MCP Server
Connect to Business Central MCP Server with Visual Studio Code
Connect to Business Central MCP server with non-Microsoft clients
Business Central Admin Center API MCP server
Monitoring and Analyzing Telemetry
Enable Sending Telemetry to Application Insights
Alert on Telemetry