Skip to main content
Glama

calculate_aoe

Calculate affected tiles and participants for Area of Effect spells like Fireball, Burning Hands, and Lightning Bolt in RPG combat encounters.

Instructions

Calculate which tiles and participants are affected by an Area of Effect spell or ability. Supports circle (Fireball), cone (Burning Hands), and line (Lightning Bolt) shapes.

Example - Fireball (20ft radius circle): { "encounterId": "encounter-1", "shape": "circle", "origin": { "x": 10, "y": 10 }, "radius": 4 }

Example - Burning Hands (15ft cone): { "encounterId": "encounter-1", "shape": "cone", "origin": { "x": 5, "y": 5 }, "direction": { "x": 1, "y": 0 }, "length": 3, "angle": 90 }

Example - Lightning Bolt (100ft line): { "encounterId": "encounter-1", "shape": "line", "origin": { "x": 0, "y": 5 }, "direction": { "x": 1, "y": 0 }, "length": 20 }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
encounterIdYesThe ID of the encounter
shapeYesShape of the AoE
originYesOrigin point of the AoE
radiusNoRadius for circle shape (in tiles)
directionNoDirection vector for cone/line (e.g., {x:1,y:0} = East)
lengthNoLength for cone/line shapes (in tiles)
angleNoAngle for cone shape (in degrees, e.g., 90 for quarter circle)
sessionIdNo

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