Get Debug Events is a WordPress ability from Easy WP SMTP — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.
Install Free Plugin →Get Debug Events
Read-onlyList recorded Easy WP SMTP debug events (errors and debug entries), with optional severity filtering and pagination.
Requires Easy WP SMTP on WordPress 6.9+ for the Abilities API (abilities are registered only when the wp_register_ability() and wp_register_ability_category() functions exist). The ability is additionally gated by the caller holding the site's configured 'manage everything' capability, which defaults to manage_options and can be changed via the easy_wp_smtp_core_get_capability_manage_options filter. Only the edition-neutral ability listed here is registered by the free (Lite) plugin; the Pro version appends its own additional email-log and statistics abilities that are not included in this package.
What it does
This ability returns the debug events Easy WP SMTP has recorded — the same log entries shown on the plugin's Debug Events admin screen — covering things like SMTP connection failures, authentication errors, and other send-time diagnostics the plugin captures automatically. Each event includes its id, creation timestamp (ISO 8601 UTC), severity, and content. You can filter to only 'error' or only 'debug' severity events, and page through results with limit (1-100, default 20) and offset (default 0). This gives an AI assistant a fast way to answer 'why did my last email fail?' or 'are there any SMTP errors right now?' without the user having to dig through the WordPress admin.
See it in action
You ask your AI assistant
"Show me the 10 most recent error-severity debug events from Easy WP SMTP — I think an email failed to send this morning."
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| limit | integer | No | Maximum number of events to return (1-100). Defaults to 20. |
| offset | integer | No | Number of events to skip. Defaults to 0. |
| severity | string | No | Filter events by severity: error or debug. |
Returns
An object with an 'events' array (each with id, created_date, severity, and content) plus 'total', 'limit', and 'offset' for pagination.
Permission
The current user must hold Easy WP SMTP's 'manage everything' capability, which defaults to WordPress's manage_options and can be changed via the easy_wp_smtp_core_get_capability_manage_options filter.