Skip to main content
Glama

set_level

Switches the active battle map floor using its level ID, not its index, so you can target the correct level after additions or deletions create gaps.

Instructions

Switch the active level (floor) by its id (see list_levels).

Use the `id` field, not `index`: they are different numbers. Adding a level
puts it at index 0 with a higher id, and deletions leave gaps in the ids.

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": {
      "id": "<id>"
    },
    "name": "set_level"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations present, the description must carry the full behavioral burden; it does disclose the non-obvious data-model quirk that ids diverge from indices because new levels land at index 0 with higher ids and deletions leave gaps. It does not say what happens on an invalid id (error vs. no-op) or what state changes after the switch, leaving meaningful gaps for a mutation 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?

Three short sentences, front-loaded with the action, followed by the two highest-value cautions. Nothing is redundant or decorative.

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?

For a one-parameter setter with no output schema, the definition covers what the parameter is, where to get it, and the main pitfall. Only failure behavior for an unknown id is unaddressed, a minor gap at this complexity level.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% with only a bare `id: integer`, so the description must compensate, and it does: it defines `id` as the level identifier, points to list_levels as the source, and explicitly contrasts it with the distinct `index` numbering. That single clarification prevents the most likely calling error.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource ("Switch the active level (floor)"), so the agent knows this changes the active editing floor rather than creating or removing one. It does not explicitly contrast itself with add_level or delete_level, keeping it just short of a 5.

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?

It routes the agent to list_levels as the source of valid ids and warns to use `id` rather than `index`, which is exactly the guidance needed before calling. It stops short of explicit when-not-to-use conditions, but the usage context is clear.

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