Skip to main content
Glama

Set the default instance

instance_select
Idempotent

Set a session default instance so tool calls without an instance argument target that game, preventing ambiguity when several games are running.

Instructions

Makes instance this session's default: tool calls without an instance argument go to it (useful with several games running, where they would otherwise be refused as ambiguous). null clears it. Lasts until the session ends. Do not use it with sub-agents: they all share this session, so a default set by one applies to every other's calls too (they would act on its game). Pass instance on every call instead. Result: {default_instance, previous}. An id that instances_list does not show is refused (unknown_instance, the default stays); when the list cannot be read the id is accepted with a warning.

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": {
      "instance": "<instance>"
    },
    "name": "instance_select"
  }
}

Input Schema

NameRequiredDescriptionDefault
instanceYesInstance id (see instances_list), or null.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.7

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only declare mutation/idempotency hints; the description adds the scope (lasts until session ends), the exact consequence for sub-agents sharing the session, the return shape {default_instance, previous}, and error behavior (unknown_instance leaves the default intact, acceptance with a warning when the list is unreadable). None of that is derivable from the annotations or schema, and it does not contradict openWorldHint=false or destructiveHint=false.

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?

Front-loaded with the effect, then duration, then the sub-agent caveat, then return and error semantics — each sentence carries a distinct load with no filler or restatement of the title. Dense but well-ordered for a caller reading top-down.

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 one-parameter session-state mutation with no output schema, the description covers scope, lifetime, return payload, failure modes, and the multi-agent pitfall. An agent can call it correctly and know what to expect afterward without consulting anything else.

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?

With a single parameter at 100% schema coverage the baseline is 3, and the description earns above baseline by defining what `null` actually does (clears the default) and by specifying validation of ids against instances_list, including the fallback when that list is unreadable. It stops short of format details, but the schema already points to instances_list for id sourcing.

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 ("Makes `instance` this session's default") and immediately explains the routing consequence: calls without an `instance` argument go to it. It distinguishes itself from the sibling it depends on (instances_list) and from the per-call `instance` argument pattern, so an agent can tell what it changes versus what it only reads.

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?

Gives the positive case (several games running, calls would otherwise be refused as ambiguous), the clearing case (null), and an explicit exclusion with a named alternative: do not use with sub-agents, pass `instance` on every call instead. Nothing about when to choose this versus alternatives is left to inference.

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