Skip to main content
Glama

get_game_state

Retrieve the current game state to track character status, combat progress, and campaign details in AI-assisted Dungeons & Dragons sessions.

Instructions

Get the current game state.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The get_game_state handler in the storage layer, which retrieves the current game state from the campaign object.
    def get_game_state(self) -> GameState | None:
        """Get the current game state."""
        if not self._current_campaign:
            return None
        return self._current_campaign.game_state
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