Skip to main content
Glama
alicenjr

Dynamic Reincarnation Story

by alicenjr

get_story_status

Check current story progress and state in the interactive reincarnation narrative to track your character's journey and available choices.

Instructions

Get current story status and state

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_idYes

Implementation Reference

  • main.py:339-350 (handler)
    The handler function for the 'get_story_status' tool. It retrieves the user's story state using get_user_state and returns it as a JSON string.
    @mcp.tool() def get_story_status(user_id: str) -> str: """Get current story status and state""" state = get_user_state(user_id) return json.dumps({ "story_started": state["story_started"], "current_path": state["current_path"], "story_step": state["story_step"], "choices_made": state["choices_made"], "current_context": state["current_context"], "has_answers": len(state["user_answers"]) > 0 }, indent=2)
  • main.py:12-24 (helper)
    Helper function used by get_story_status to retrieve or initialize the user's story state dictionary.
    def get_user_state(user_id: str) -> Dict[str, Any]: """Get or create user story state""" if user_id not in story_states: story_states[user_id] = { "current_path": None, "story_step": 0, "choices_made": [], "user_answers": {}, "last_narrative": "", "current_context": "", "story_started": False } return story_states[user_id]
  • main.py:339-339 (registration)
    The @mcp.tool() decorator registers the get_story_status function as an MCP tool.
    @mcp.tool()

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/alicenjr/Dynamic-Reincarnation-mcp'

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