Check DataLayer
check_datalayerInspect runtime dataLayer on any URL: verify dataLayer exists, review pushed events, confirm GTM and gtag load, and catch suspicious dataLayer redefinition after GTM init.
Instructions
Inspect window.dataLayer at runtime using a headless browser. Checks if dataLayer exists, its contents (events), whether GTM and gtag are loaded, and detects suspicious patterns like dataLayer redefinition after GTM init.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "check_datalayer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL to check for dataLayer | |
| wait_ms | No | Milliseconds to wait after page load before reading dataLayer (default: 2000, max: 5000) |