Skip to main content
Glama

Export to compendium

export-to-compendium
DestructiveIdempotent

Copy Foundry VTT world documents into a compendium to archive finished material. Select by name, id, or folder; existing entries are overwritten, locked compendiums can be temporarily unlocked.

Instructions

Copy documents from the world into a compendium, to archive finished material. Select by name or id, or by the world folder they sit in; without either, everything of that type is copied. Ids are kept, so a document already in the compendium is overwritten instead of duplicated. A locked compendium is refused unless unlockIfNeeded is set; then the lock is lifted for this operation only and set again afterwards. The answer lists new, overwritten, skipped and, marked CAUTION, lost entries.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
namesNoWorld documents to save, by whole name (case does not matter) or by id. Leave out to save every document of the type.
packIdYesId of the compendium to save into
folderNameNoSave only documents lying directly in the world folder with exactly this name
documentTypeYesType of the world documents: JournalEntry, Scene, Actor, RollTable, Playlist, Item or Macro
unlockIfNeededNoLift a lock for this one operation; it is set again afterwards

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv14.2609.4

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations, the description discloses that duplicate ids are overwritten, locked compendiums are refused unless unlockIfNeeded is set, and the lock is restored afterwards. It also describes the output summary (new, overwritten, skipped, lost), giving an agent a clear picture of side effects and results.

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

Conciseness5/5

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

The description is four sentences with no wasted words. Purpose is front-loaded, and each subsequent sentence adds a distinct behavioral detail (selection, overwrite, lock handling, result listing).

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?

Given no output schema, the description enumerates the answer categories and covers edge cases like duplicates and locks. For a moderately complex write operation, all essential behavior an agent needs to call and interpret results is documented.

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 input schema already describes every parameter fully (100% coverage). The description adds value by explaining the interplay between names, folderName, and omission (fallback to all documents of the type), as well as case-insensitive name matching. This is helpful but not extensive.

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 clearly states the tool copies documents from the world into a compendium for archiving finished material. The specific verb and resource are unmistakable, and the direction distinguishes it from the sibling import-from-compendium.

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?

It provides clear context for when to use the tool (archiving finished material) and explains the selection modes (by name/id, folder, or everything). However, it does not explicitly name alternatives or state when not to use it, so it stops short of full exclusion guidance.

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