Skip to main content
Glama

get_party_status

Check the current status of the Party Mode server to view server information, connected players, and action queue statistics for Dungeons & Dragons campaigns.

Instructions

Get the current status of the Party Mode server.

Shows server info, connected players, and action queue stats.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The implementation of _get_party_status, which analyzes recent events for status-related tags like 'combat' or 'injured' to summarize the party's status.
    def _get_party_status(self, session_number: int) -> str:
        """
        Get party status summary.
    
        Args:
            session_number: Session to query
    
        Returns:
            Brief party status string
        """
        # Query recent events for status indicators
        events = self.facts.query_facts(
            category=FactCategory.EVENT,
            session=session_number,
            limit=10
        )
    
        # Look for status-related tags
        status_tags = []
        for event in events:
            relevant_tags = [
                tag for tag in event.tags
                if tag in {"combat", "injured", "resting", "traveling", "safe", "danger"}
            ]
            status_tags.extend(relevant_tags)
    
        if not status_tags:
            return "Party status: Ready for adventure"
    
        # Build status from tags
        if "danger" in status_tags or "combat" in status_tags:
            return "Party status: In danger or combat"
        elif "injured" in status_tags:
            return "Party status: Recovering from injuries"
        elif "resting" in status_tags:
            return "Party status: Resting"
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