Skip to main content
Glama

Create documents

create

Create Foundry VTT world documents from JSON data or local files, including embedded items, walls, lights, tokens and pages, with folder placement and duplicate handling options.

Instructions

Creates world documents from JSON data (Foundry document format), from local JSON files such as exported actors, or both. Embedded items, walls, lights, tokens and pages come along. Scenes with a background get a thumbnail. Scene tokens may be {actorId|actorName, x, y} to start from the actor's prototype token.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "type": "<type>"
    },
    "name": "create"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataNo
typeYesDocument type: Actor, Item, Scene, JournalEntry, Macro, RollTable, Playlist, Cards, Folder, ChatMessage, Combat, User
filesNoLocal JSON files on this server, each one document or an array
dryRunNoReport what would happen without changing anything
folderNoFolder path, e.g. "Session2/Maps". Missing folders are created.
keepIdNoKeep the data's _id (fails if one is taken)
onDuplicateNoWhen a document with the same name is already in the target folder: skip it (default), replace it, or create anotherskip

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations only declare openWorldHint=false and destructiveHint=false, so the description must carry the rest and does add real behavior: embedded items, walls, lights, tokens and pages are brought along, scenes with a background get a thumbnail generated, and scene tokens may reference an actor prototype. It stops short of describing return values or failure/permission behavior, but the cascading side effects disclosed are the non-obvious part.

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?

Three dense sentences with no filler, front-loaded with the core action and input modes. The trailing token-format sentence is niche but earns its place as format guidance the schema does not give.

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

Completeness3/5

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

For a 7-parameter mutation tool with no output schema, the description covers creation modes and cascading effects but leaves the agent guessing about what is returned (created IDs? summary?), how data and files merge, and what happens on partial failure. Adequate but with clear 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 coverage is 86%, so the baseline is 3 and the schema already documents data, files, dryRun, folder, keepId and onDuplicate. The description adds a little meaning on top — 'Foundry document format', 'exported actors', and the {actorId|actorName, x, y} token shape — but does not explain how data and files combine or interact.

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

Purpose4/5

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

The description states a specific verb and resource ('Creates world documents') and enumerates the two input channels (inline JSON data or local JSON files, or both). It is clear what the tool does, but it never contrasts itself with plausible siblings such as create_scene or compendium_import, so an agent must infer the boundary.

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

Usage Guidelines3/5

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

Usage is only implied: you use it when you have Foundry-format document JSON or exported actor files to load into the world. There is no explicit when-not guidance and no named alternative for related cases (e.g. importing from a compendium or creating a single scene).

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