Skip to main content
Glama

combat_action

Resolve weapon attacks and saving throw spells in D&D 5e campaigns. Applies damage to target HP, triggers concentration checks, and returns formatted mechanical outcomes for combat actions.

Instructions

Resolve a combat action via the pipeline, apply results, and return a formatted outcome.

Supports weapon attacks (melee/ranged) and saving throw spells. Automatically applies damage to the target's HP, triggers concentration checks, and reports the full mechanical outcome. This is additive -- it does not replace manual roll_dice workflows.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
attackerYesName of the attacking character or NPC
targetYesName of the target character or NPC
action_typeNoAction type: 'attack' for weapon/melee/ranged, 'save_spell' for saving throw spellsattack
weapon_or_spellNoWeapon name (from inventory) or spell name. None uses equipped main weapon.
damage_diceNoOverride damage dice (e.g., '8d6' for fireball). Only for save_spell actions.
damage_typeNoDamage type (e.g., 'fire', 'slashing'). Only for save_spell actions.
save_abilityNoSaving throw ability (e.g., 'dexterity'). Required for save_spell actions.
half_on_saveNoWhether successful save deals half damage. Only for save_spell actions.
spell_dcNoOverride spell save DC. Only for save_spell actions.
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