Skip to main content
Glama

execute_combat_action

Execute combat actions like attack, heal, move, or cast spells in RPG encounters to resolve turn-based battles with structured mechanics.

Instructions

Execute a combat action (attack, heal, move, cast_spell, etc.).

Examples: { "action": "attack", "actorId": "hero-1", "targetId": "goblin-1", "attackBonus": 5, "dc": 12, "damage": 6 }

{ "action": "heal", "actorId": "cleric-1", "targetId": "hero-1", "amount": 8 }

{ "action": "move", "actorId": "hero-1", "targetPosition": { "x": 5, "y": 3 } }

{ "action": "disengage", "actorId": "hero-1" }

{ "action": "cast_spell", "actorId": "wizard-1", "spellName": "Fireball", "targetId": "goblin-1", "slotLevel": 3 }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
encounterIdYesThe ID of the encounter
actionYes
actorIdYes
targetIdNoTarget ID for attack/heal/cast_spell actions
attackBonusNo
dcNo
damageNo
damageTypeNoHIGH-002: Damage type (e.g., "fire", "cold", "slashing") for resistance calculation
amountNo
targetPositionNoCRIT-003: Target position for move action
spellNameNoCRIT-006: Name of the spell to cast (must exist in spell database)
slotLevelNoCRIT-006: Spell slot level to use (for upcasting)
sessionIdNo
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/Mnehmos/rpg-mcp'

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