Skip to main content
Glama

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
NameRequiredDescriptionDefault
action_idNoAction ID to filter by (optional — omit for all recent)

Implementation Reference

  • 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: {

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jarvisassistantux/loopsense'

If you have feedback or need assistance with the MCP directory API, please join our Discord server