list_action_contests
List contested actions with days left before their respond_by deadline; filter by mandate, contesting principal, or due-within days to spot upcoming response deadlines.
Instructions
List contested actions with the days left before their respond_by (the reminder).
Read-only. Give mandate_id, contested_by, or both. Call it on a schedule (for example each morning) to see which contests reach their response deadline soon. The deadline is the operator's own (response_days of contest_action), not a legal deadline computed by AMR.
Args: mandate_id: Only the contests under this mandate. contested_by: Only the contests recorded by this principal. due_within_days: Only the contests whose respond_by is at most this many days away, including those already passed (0 to 365).
Returns: JSON string with keys: generated_at, count, truncated (true if more than 500 matched; the 500 nearest deadlines are returned) and contests (list, nearest respond_by first, each with mandate_id, action_id, action_chain_hash, contested_by, reason, response_days, contested_at, reminder {respond_by, days_left, deadline_passed}, principal_signature, chain_hash). On error: {"error": "...", "code": "invalid_input"}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mandate_id | No | ||
| contested_by | No | ||
| due_within_days | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |