Skip to main content
Glama

add_event

Add events to your D&D adventure log to track combat, roleplay, exploration, quests, characters, world events, sessions, and social interactions with detailed descriptions and metadata.

Instructions

Add an event to the adventure log.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
event_typeYesType of event
descriptionYesEvent description
titleNoEvent title (optional, auto-generated from description if omitted)
session_numberNoSession number
characters_involvedNoCharacters involved — list or JSON array string, e.g. '["name1","name2"]'
locationNoLocation where event occurred
importanceNoEvent importance (1-5)
tagsNoTags for categorizing the event — list or JSON array string, e.g. '["npc","story"]'

Implementation Reference

  • The `add_event` method in `TimelineTracker` class adds a new event to the timeline, automatically assigning an ID if none exists, and then sorting the events chronologically.
    def add_event(self, event: TimelineEvent) -> str:
        """
        Add an event to the timeline.
    
        Events are automatically sorted chronologically after addition.
    
        Args:
            event: The event to add
    
        Returns:
            The event's ID (auto-generated if not provided)
        """
        if not event.id:
            event.id = f"evt_{uuid4().hex[:8]}"
        self._events.append(event)
        self._events.sort(key=lambda e: e.game_time._to_total_minutes())
        return event.id
Install Server

Other Tools

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/Polloinfilzato/dm20-protocol'

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