Skip to main content
Glama

Add D&D 5e features from compendiums

dnd5e-add-features-from-compendium

Copy D&D 5e class and monster features from compendiums onto an actor by English name, skipping those already present and reporting missing or failed matches.

Instructions

[D&D 5e only] Copy class and monster features by English name from item compendiums onto an actor, such as "Pack Tactics", "Multiattack" or "Action Surge". Names match whole and ignoring case; the first compendium in compendiumPacks with the name wins, and two entries of that name in one compendium are reported instead of guessed. Without compendiumPacks the standard compendiums of the world's rules version are searched (2024 class features are part of the class items and cannot be fetched one by one). Items the actor already has by name are skipped. Copies keep a link to their entry, never its id. The answer lists added, skipped, not found and failed names; for spells use dnd5e-add-feature with featureType "spells", for homebrew features featureType "passive" and the others.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
featureNamesYesEnglish names of class or monster features, matched whole and ignoring case; at most 50
actorIdentifierYesThe actor: its id, its exact name (case does not matter) or the id of one of its tokens. Parts of a name are not matched
compendiumPacksNoItem compendiums to search, first match wins. Left out: the standard feature compendiums of the world's rules version (dnd5e.monsterfeatures and dnd5e.classfeatures for 2014, dnd5e.monsterfeatures24 for 2024; 2024 class features live inside the class items)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv14.2609.4

TDQS

A4.8/5.0
Behavior5/5

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

The description discloses substantial behavior beyond the minimal annotations: whole-name case-insensitive matching, first-compendium-wins resolution, duplicate-entry reporting, skipping features the actor already has, preserving entry links rather than ids, and the summary of added/skipped/not-found/failed names. It also warns that 2024 class features cannot be fetched individually, which is valuable operational context.

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 description is dense but not padded; the first sentence front-loads purpose and examples, and every subsequent clause adds a relevant behavioral rule. It is slightly long as a single paragraph, and the final routing sentence is compressed, which keeps it from being perfectly structured.

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

Completeness5/5

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

For a tool with no output schema and nontrivial source-resolution logic, the description covers the core usage, defaults, limitations, duplicate handling, and result categories. An agent has enough information to decide when to call it and what to expect from the actor and the response.

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?

The schema already documents all three parameters with 100% coverage, so the description does not need to repeat basic parameter meaning. It adds useful extras such as duplicate-name handling and the 2024 class-feature limitation for compendiumPacks. It adds little for actorIdentifier beyond the schema, so a 4 rather than 5 is appropriate.

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?

The description opens with a specific verb and resource: copying class and monster features by English name from item compendiums onto an actor, with concrete examples like 'Pack Tactics', 'Multiattack', and 'Action Surge'. It also scopes the tool to D&D 5e and distinguishes it from dnd5e-add-feature by directing spell and homebrew feature use cases to that sibling.

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

Usage Guidelines5/5

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

It states exactly when to use this tool, including the D&D 5e scope and the feature-copying use case, and explicitly names dnd5e-add-feature with featureType values for spells and homebrew features as the alternative. It also explains what happens when compendiumPacks is omitted, giving the agent clear selection criteria.

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