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
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the tool executes actions but doesn't describe what happens after execution (e.g., turn progression, state changes, error handling), whether it's idempotent, or any side effects. The examples show input structures but no behavioral context beyond the basic operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is appropriately sized but not optimally structured. The initial statement is clear, but the extensive examples (5 JSON blocks) dominate the description. While helpful, they could be more efficiently integrated or referenced. The content earns its place but could be more front-loaded with critical usage information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity (13 parameters, no output schema, no annotations), the description is partially complete. The examples provide valuable context for parameter usage, but there are significant gaps: no information about return values, error conditions, or how this tool integrates with the broader combat/turn system. It's adequate for basic understanding but lacks comprehensive context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With schema description coverage at only 46%, the description compensates significantly by providing detailed examples that illustrate parameter usage across different action types. The examples clarify which parameters are needed for specific actions (e.g., targetId for attack/heal, targetPosition for move), adding substantial semantic value beyond the sparse schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose as 'Execute a combat action' and lists specific action types (attack, heal, move, cast_spell, etc.), providing a specific verb+resource combination. However, it doesn't explicitly differentiate this tool from sibling combat-related tools like 'execute_lair_action' or 'submit_turn_actions', which prevents a perfect score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. While examples show different combat actions, there's no mention of prerequisites, timing constraints, or when to choose this over other combat or turn-management tools in the extensive sibling list. The examples imply usage but don't provide explicit guidelines.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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