Skip to main content
Glama
study-flamingo

D&D MCP Server

end_combat

End the current combat encounter in a Dungeons & Dragons campaign to advance the narrative and manage game sessions.

Instructions

End the current combat encounter.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The `end_combat` tool handler, decorated with `@mcp.tool` for registration. It ends combat by updating the game state to set `in_combat=False`, clearing `initiative_order` and `current_turn`, and returns a confirmation message.
    @mcp.tool def end_combat() -> str: """End the current combat encounter.""" storage.update_game_state( in_combat=False, initiative_order=[], current_turn=None ) return "Combat ended."

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/study-flamingo/gamemaster-mcp'

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