Skip to main content

Cron Checker

The Cron Checker tool (internal name builtin_system_cron) is a read-only diagnostic for the Magento cron scheduler. It reports overall health and per-group heartbeat, detects failing, stuck, and never-scheduled jobs, and returns bounded job run history with error messages.

Access control

Access to this tool is controlled by the MCP Tools -> Built in -> System -> Cron Checker ACL resource. Enable or disable it in System -> Permissions -> User Roles -> [Role] -> Role Resources.


When to use

The AI client uses this tool to answer questions such as "is cron running?", "why didn't job X run?", or "show errors for job Y". It is the first stop when reindexing, email sending, or other scheduled work appears stalled.


Parameters

ParameterDescriptionTypeRequired
actionThe operation to perform. One of status, jobs.stringYes
moduleFilter jobs by module (e.g. Magento_Indexer).stringNo
job_codejobs action only. Substring match on the job code. When given, the tool returns recent run history rows for matching jobs instead of the summary table.stringNo
statusjobs summaries only. Filter by run status: success, error, or running.stringNo
limitMaximum rows to return. For summaries: default 20, max 100. For run history (when job_code is given): default 10, max 50.integerNo

Example output

The status action returns:

FieldDescription
cron_aliveWhether the scheduler is currently running
last_successTimestamp of the most recent successful job
schedule_generationNumber of pending (not yet executed) schedule rows
groupsPer-group last-success age
problemsA list of detected issues, each with a type: failing, stuck, not_running, or never_scheduled
note

History visibility is limited because cron_schedule rows are pruned according to each cron group's lifetime configuration. Older runs may no longer be present.

note

Jobs whose schedule makes them unverifiable within the six-hour check window are "not checkable". These are reported as a count rather than flagged as problems, to avoid false positives.