Skip to main content
Glama

Add combatants

add-combatants
Idempotent

Adds selected scene tokens to a combat encounter as combatants, skipping tokens already in the encounter. Supports dry-run and specifying combat or scene.

Instructions

Add tokens to a combat encounter as combatants. Tokens come from the encounter's scene (for an encounter without scene: sceneIdentifier or the active scene). One unknown id stops everything; tokens already in the encounter are named and not added twice.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dryRunNoOnly report what would happen and whether it is permitted; change nothing
combatIdNoId of the combat encounter, as list-combats shows it. Without it the active encounter is used.
tokenIdsYesIds of the tokens to add
sceneIdentifierNoScene of the tokens, only for an encounter without scene

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv14.2609.4

TDQS

A4/5.0
Behavior4/5

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

Annotations already indicate idempotentHint=true, but the description adds concrete behavioral details: an unknown id stops the entire operation and tokens already in the encounter are not added twice. This goes beyond the structured annotations and helps an agent predict failure and duplicate handling.

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?

Two dense sentences deliver the core action, token source, failure behavior, and duplicate prevention without wasted words. The most important information is front-loaded in the first sentence.

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

Completeness4/5

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

The description covers the key operational constraints: token source, unknown-id atomicity, and duplicate handling. With a 100%-covered schema and idempotentHint annotation, the remaining details are adequately supported, though it stops short of describing the exact success output or post-add state.

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 parameters are already well documented. The description reinforces the role of sceneIdentifier and the source of tokens, but it does not add meaning beyond what the schema provides. Baseline 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?

The description uses a specific verb ('Add') and resource ('tokens to a combat encounter as combatants'), making the tool's function immediately clear. It also implicitly differentiates from siblings like remove-combatants and update-combatant by focusing exclusively on addition.

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?

The description explains the token source (encounter scene, sceneIdentifier, or active scene), which provides useful context for when the tool can be used. However, it does not explicitly state when to prefer this tool over alternatives or mention exclusions, so usage guidance is implied rather than direct.

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