Skip to main content
Glama

party_get_prefetch

Retrieve pre-generated narrative variants for combat turns to accelerate storytelling. Uses cached content when available to reduce main-model calls, providing instant refined narratives for D&D campaigns.

Instructions

Retrieve a pre-generated narrative variant for a combat turn.

If the prefetch engine has a cached variant for this turn, returns a refined narrative instantly (no main-model call needed). On cache miss, falls back to full generation with the main model.

Call this right after party_thinking, before writing your own narrative. If 'cached' is true in the response, use 'narrative' as your starting point and adjust only the details that differ from actual game state.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
turn_idYesTurn identifier — use the same format as the observer: 'round_{N}_{character_name}', e.g. 'round_3_Aria'
outcomeYesActual combat outcome: 'hit', 'miss', or 'critical'
rollNoThe actual attack roll value
damageNoDamage dealt (for hit/critical)
target_hpNoTarget's remaining HP after damage
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