Skip to main content
Glama

Create a D&D 5e NPC

dnd5e-create-npc

Create a D&D 5e NPC with full stat block and no items, saved to the Foundry MCP Creatures folder. Avoid duplicate names and invalid challenge ratings while dnd5e derives proficiency and XP.

Instructions

[D&D 5e only] Create one NPC with a complete stat block and no items: type, size, alignment, challenge rating, ability scores, saving throw and skill proficiencies, hit points, armor class, speeds, senses, damage and condition traits, languages, biography and source. It goes into the folder "Foundry MCP Creatures". A name any actor already has (ignoring case) and a challenge rating the rules do not have are refused. Proficiency bonus and experience points are left to dnd5e, which derives them. Every value is read back; the answer lists warnings (e.g. a language that is not a dnd5e key) and anything stored differently. Add attacks, features and spells afterwards with dnd5e-add-feature.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
crYesChallenge rating: 0, 1/8, 1/4, 1/2 or a whole number up to 30, as number or text. Anything else is refused
nameYesName of the new NPC; refused when any actor already has it, ignoring case
sizeYesSize; stored as the dnd5e key (sm, med, lg, grg)
hoverNoThe creature hovers while flying
acModeYes"default" lets dnd5e calculate the armor class; "flat" stores acValue
skillsNoSkills with proficiency or expertise
acValueNoArmor class for acMode "flat"
flySpeedNoFlying speed in feet; 0 means none
abilitiesYesAll six ability scores
alignmentNoAlignment as text, e.g. "chaotic evil"
biographyNoBiography as HTML
hpAverageYesHit points, stored as current and maximum
hpFormulaYesHit dice formula, e.g. "3d8+6"
languagesNoLanguages by key or English name, e.g. "Common" or "goblin"; unknown ones go into the custom text with a warning
swimSpeedNoSwimming speed in feet; 0 means none
truesightNoTruesight in feet; 0 means none
walkSpeedNoWalking speed in feet; 0 means none
blindsightNoBlindsight in feet; 0 means none
climbSpeedNoClimbing speed in feet; 0 means none
darkvisionNoDarkvision in feet; 0 means none
sourceBookNoSource book, e.g. "MM"
sourcePageNoPage in the source book
burrowSpeedNoBurrowing speed in feet; 0 means none
sourceRulesNoRules version of the source; the world setting of dnd5e when left out2014
tremorsenseNoTremorsense in feet; 0 means none
creatureTypeYesCreature type, one of 14 dnd5e keys. dnd5e has no type "swarm": it is stored as a custom type with a warning
savingThrowsNoAbilities whose saving throws are proficient
specialSensesNoOther senses as text
creatureSubtypeNoSubtype such as "goblinoid"
languagesCustomNoFree text for languages, e.g. "telepathy 60 ft."
damageImmunitiesNoDamage type keys the NPC is immune to; unknown words go into the custom text with a warning
damageResistancesNoDamage type keys the NPC resists; unknown words go into the custom text with a warning
conditionImmunitiesNoCondition keys such as "charmed"; unknown words go into the custom text with a warning
damageVulnerabilitiesNoDamage type keys the NPC is vulnerable to; unknown words go into the custom text with a warning

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv14.2609.4

TDQS

A4.3/5.0
Behavior5/5

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

Annotations are all false (not read-only, not idempotent, not destructive), so the description carries the burden of explaining side effects. It does so richly: values are read back with warnings, proficiency bonus and XP are derived by dnd5e rather than stored, duplicate names and illegal CRs are refused, and output lands in a specific folder. This tells the agent what to expect after invocation beyond the annotation flags.

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

Conciseness4/5

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

The single paragraph is dense but every sentence earns its place: scope, field inventory, folder, validation rules, derivation behavior, read-back/warnings, and the pointer to dnd5e-add-feature. It is slightly long for one paragraph and could be bulleted, but there is no wasted text.

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

Completeness4/5

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

For a 34-parameter tool with no output schema, the description covers folder placement, validation refusals, derived values, warning behavior, and the next tool to chain, which is substantial. It does not describe the exact return shape or all edge cases, but the schema's rich properties fill most remaining gaps.

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

Parameters3/5

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

Schema description coverage is 100%, so the baseline is 3; the tool description itself adds no per-parameter meaning beyond the schema's rich descriptions (CR format rules, 'swarm' handling, unknown-key warnings, etc.). The schema parameters are well documented such that no compensation from the main description is required.

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

Purpose5/5

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

States a specific verb and resource: 'Create one NPC with a complete stat block and no items' and enumerates the included fields (type, size, CR, abilities, etc.). It also distinguishes from the sibling dnd5e-add-feature, which is the later step for attacks/features/spells, and scopes to D&D 5e. The target folder is named, removing ambiguity about where the actor lands.

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

Usage Guidelines4/5

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

Scopes to '[D&D 5e only]' and describes the creation flow, including that attacks/features/spells should be added afterwards with dnd5e-add-feature, which is an explicit alternative for continuing after this tool. It does not discuss competing creation tools like create-actor-from-compendium or manage-actors, so exclusions are only partial.

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

Deploy Server

Other Tools