Skip to main content
Glama

Link a figure to a quest

link-quest-to-npc
Idempotent

Add an actor to a quest journal page as a quest giver, target, ally, enemy, or contact, linking to the actor if it exists in the world.

Instructions

Add a figure with its role to the list of related figures on the first text page of a quest journal. When an actor with this id or exact name exists in the world, the entry is a link to it; otherwise the name is written as text and the answer says so. Several actors with that name are an error listing their ids. The list is created once (in the overview of a page from create-quest-journal, else at the end of the page) and extended afterwards; the same figure in the same role is not added twice. The page is changed as a whole inside Foundry, so nothing of a long page is lost.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
npcNameYesExact name or id of the actor to link.
journalIdYesId of the quest journal, from list-journals.
relationshipYesRole of the figure in the quest.

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?

The description goes well beyond the annotations by disclosing conditional behavior (link vs. plain text when actor exists/not exists), error handling for ambiguous names, idempotency rules (same figure/role not added twice), and the safe whole-page update mechanism. This adds significant context beyond the idempotentHint and destructiveHint flags.

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 (~90 words) and front-loads the core action, then covers conditional behavior, edge cases, idempotency, and page safety. No filler or repetition of parameter names; each sentence adds a distinct piece of 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 mutation tool with 3 parameters and no output schema, the description covers all critical behavior: actor resolution, duplicate handling, list creation context, and safe page updates. It hints at response feedback ('the answer says so'), which is enough for an agent to call correctly. No obvious gaps.

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?

Schema coverage is 100% with each parameter described, so the baseline is 3. The description adds value by explaining npcName semantics ('exact name or id'), and clarifies that relationship determines role equality for duplicate detection. This goes slightly beyond the schema but does not elaborate on enum values.

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 states a specific action ('Add a figure with its role to the list of related figures') and identifies the exact resource ('the first text page of a quest journal'). It distinguishes this tool from siblings like journal-link-tags or update-quest-journal by the unique operation on the quest's related figures list.

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?

The description gives clear context on when this tool is used (extending the related figures of a quest journal) and explains the one-time creation of the list in create-quest-journal or at page end. However, it does not explicitly contrast with alternative tools (e.g., journal-link-tags) or state when NOT to use it, leaving some inference.

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