petra_get_failed_attacks
Retrieve blocked (failed) attack summaries for a tenant, including totals, origin countries, daily attack-type breakdowns, and most-targeted users; defaults to the last 30 days.
Instructions
Get the BLOCKED (failed) attack summary for one tenant: total count, counts by origin country, a daily breakdown by attack type (e.g. PASSWORD_SPRAY, LEGACY_AUTH), and the most-targeted users with the countries their attackers came from. Defaults to the last 30 days. Petra rate-limits this route heavily, so results are cached for 5 minutes.
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": {
"tenantId": "<tenantId>"
},
"name": "petra_get_failed_attacks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endDate | No | End of the window, ISO 8601 date or date-time. Defaults to now. | |
| tenantId | Yes | Petra tenant ID (from petra_list_tenants, or the app.petrasecurity.com/tenant/<id> URL) or the Microsoft tenant ID; Petra resolves either. | |
| startDate | No | Start of the window, ISO 8601 date or date-time. Defaults to 30 days before endDate. |