check_consequences
Retrieve events linked to agent actions or recent activity to monitor outcomes and feedback in real-time.
Instructions
Get events associated with an agent action, or all recent events
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action_id | No | Action ID to filter by (optional — omit for all recent) |
Implementation Reference
- src/server.ts:429-443 (handler)The handler function 'handleCheckConsequences' that implements the 'check_consequences' tool logic.
private async handleCheckConsequences(args: Record<string, unknown>) { const schema = z.object({ action_id: z.string().optional() }); const parsed = schema.parse(args); const events = parsed.action_id ? getEventsByActionId(parsed.action_id) : getRecentEvents(50); return { content: [{ type: 'text' as const, text: JSON.stringify(events, null, 2), }], }; } - src/server.ts:133-137 (registration)The tool registration of 'check_consequences' in the server definition.
name: 'check_consequences', description: 'Get events associated with an agent action, or all recent events', inputSchema: { type: 'object', properties: {