Skip to main content
Glama

Refresh actor items from their source

actor-refresh-from-source
DestructiveIdempotent

Refresh an actor's item names, images, and descriptions from their source compendium without altering mechanics. Use dry-run to preview first.

Instructions

Items on an actor are copies. When their compendium was translated or corrected later, the copies keep the old text. This pulls name, image and description again from each item's source, and never touches mechanics: levels, uses, prepared spells, quantity, equipment and attunement stay. Items without a resolvable source are listed and left alone. Always run dryRun first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dryRunNoOnly report what would change, without writing (default false). Run this first.
fieldsNoFields to refresh. Default name, description and img. advancement is only refreshed when named: it takes the level progression definitions from the source and keeps the choices already made.
namePacksNoItem compendium ids to find items by name when they have no stored source, in order.
preferPacksNoItem compendium ids that win over the stored source when they hold an entry with the same id, as translation modules do. The new source is saved on the item.
actorIdentifierYesId or exact name of the actor.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv14.2609.4

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already mark destructiveHint=true and idempotentHint=true, and the description adds meaningful detail beyond that: it lists exactly which fields are overwritten, states that mechanics remain untouched, and explains that items without a resolvable source are listed and left alone. This is strong behavioral disclosure for a mutating tool.

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 compact and well-ordered: it starts with the problem, states what the tool changes, explicitly lists what it never changes, addresses unresolvable sources, and ends with the key safety instruction. Every sentence contributes useful information.

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 mutating tool with five parameters and no output schema, the description provides the essential mental model: stale copy problem, exact mutation scope, safety boundary, and dryRun workflow. The parameter schema covers the remaining details, so nothing important is missing.

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 schema already fully documents all parameters. The description reinforces the dryRun-first behavior and the default fields but does not add substantive parameter semantics beyond what the schema provides, so the baseline of 3 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?

States a specific verb and resource: refresh actor items from their source. It clarifies exactly what is pulled (name, image, description) and explicitly excludes mechanics such as levels, uses, and quantity, making it distinct from generic update tools like update-document or manage-actors.

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?

Provides clear context for when this is appropriate: after a compendium has been translated or corrected and actors still contain stale copies. It gives an explicit safety instruction to run dryRun first, though it does not name alternative tools or state when not to use it.

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