Skip to main content
Glama

Add bots

bots_add

Adds a specified number of bots to the loaded server realm; set maxplayers above 1 for free slots and re-add them after map loads.

Instructions

Adds n bots in the server realm (player.CreateNextBot), named _. Bots need free player slots: in singleplayer (map_load maxplayers 1) there are none, so load the map with e.g. maxplayers: 4 first; otherwise error no_slots. Bots do not survive a map load (map_load removes them: add them again after it; checked live). Result: {added: [entity summaries], count}. Needs a loaded map (map_load): the server and client realms do not exist at the main menu.

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": {
      "n": "<n>"
    },
    "name": "bots_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
nYesNumber of bots.
nameNoName prefix (default mcpbot).
instanceNoOptional. Instance identifier (see instances_list). If present and different from the local instance, the call is relayed by the coordinator to that instance.

Output Schema

NameRequiredDescriptionDefault
nextNo
noteNo
addedYes
countYes
warningNo
next_callNo
answered_byNo
truncated_noteNo
version_warningNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.7

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only declare destructiveHint=false and openWorldHint=false; the description adds the real behavioral burden — slot exhaustion, the no_slots error, the fact that map_load destroys bots, and the main-menu precondition where server/client realms don't exist. It also restates the return shape {added, count} which the output schema already covers, slightly redundant but harmless.

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?

Front-loaded with the core action, then prerequisites and caveats in a logical order, with zero filler sentences. It is fairly dense with parentheticals and repeated map_load references, which slightly hurts readability but every clause carries operational 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?

Covers preconditions, error text, lifecycle interactions with map_load, and naming behavior — everything an agent needs to invoke it correctly on the first try, especially given an output schema already handles return values. No significant gap remains for a 3-parameter mutation tool.

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 all three parameters are already documented, establishing a baseline of 3. The description adds modest meaning by showing how `name` is used (prefix forming <name>_<k>) and that the default is mcpbot, but `instance` relaying is only explained in the schema itself.

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 ("Adds n bots in the server realm"), names the underlying engine call (player.CreateNextBot), and even specifies the generated naming pattern <name>_<k>. This is instantly distinguishable from siblings like ent_spawn or map_load.

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

Usage Guidelines5/5

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

Explicit prerequisites and alternatives: it says to call map_load with maxplayers above 1 first in singleplayer, that a loaded map is required, and that bots must be re-added after any map_load because they do not survive it. Failure mode (no_slots) is named with its cause.

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