Skip to main content
Glama

Embers: Tabletop RPG Toolkit

Link a play campaign to an adventure

imagine_link_adventure_to_campaign

Add a play campaign to an adventure's playCampaignIds[]. Two-way: imagine also writes an { id, name } entry to the play campaign's imagineAdventures[] mirror, which backs the session Adventure tag (imagineAdventureId on play_update_session). The caller must be the campaign's owner or gamemaster on play (the link fails otherwise) and have 'edit' access on the adventure. The controller returns 400 if the link already exists; call this only when you've confirmed the link isn't already present (or be ready to handle the 400). Use play_list_my_campaigns to locate the campaign id first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesMongo `_id` of the adventure.
campaignIdYesMongo `_id` of the play campaign to link. Get it from `play_list_my_campaigns` or `play_list_participated_campaigns`.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only signal non-readOnly, non-idempotent, non-destructive behavior. The description adds substantial context: the two-way write to `imagineAdventures[]`, the backing of the session Adventure tag, caller permission requirements, and the 400 duplicate-link error. This far exceeds what annotations alone convey.

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?

Every sentence earns its place: the core mutation, the mirror side effect, auth constraints, the duplicate error, and the prerequisite lookup. The description is dense but well-ordered, front-loading the primary action and then layering important caveats.

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?

The description covers the operation's side effects, permissions, failure mode, and prerequisite step. Since an output schema exists, return-value documentation is not the description's burden. Nothing critical is missing for an agent to select and invoke this tool correctly.

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 100%, so the schema already documents both `id` and `campaignId` with meaningful descriptions. The main description adds operational context around the parameters but does not need to compensate for missing schema detail, keeping this at the baseline.

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 uses a specific verb ('Add') and a precise resource ('a play campaign to an adventure's `playCampaignIds[]`'), making the operation concrete. The two-way mirror behavior further distinguishes it from related sibling tools like `imagine_unlink_adventure_from_campaign` and `imagine_link_world_to_campaign`.

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 preconditions: confirm the link does not already exist, be ready for a 400, and locate the campaign id via `play_list_my_campaigns`. It does not explicitly name alternative tools like the unlink sibling, but the usage context is otherwise strong enough to guide an agent.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources