Read the audit log
get_audit_logRead the latest apply_plan audit log entries, newest first, to verify what each sync step created, updated, skipped, or failed. Filter by plan, outcome, or resource type and cap results with a limit.
Instructions
Read what apply_plan wrote: the most recent audit log entries, newest first, one per step (plan, target store, resource type, key, outcome and message). Filter by plan, outcome (created, updated, skipped, failed) or resource type. Returns { log (file path), matched, returned, entries }: limit (default 50) caps the entries while matched counts every match; in a very large log only the most recent 8 MB is searched. Use it after an apply to see exactly what was written; use apply_status for the progress of a running apply and get_plan for what a plan intended. The log is a local file; nothing is read from Shopify.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_audit_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max entries returned (default 50). matched counts them all. | |
| outcome | No | Only entries with this outcome. | |
| plan_id | No | Only entries of this plan. | |
| resource | No | Only entries of this resource type. |