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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_party_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
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"