Skip to main content
Glama

cluster_switch

Switch the active HPC cluster when multiple clusters are configured. Specify a host to change clusters or omit it to list available clusters.

Instructions

Switch active HPC cluster (when multiple clusters configured)

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "cluster_switch"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostNoCluster host name to switch to. Omit to list available clusters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.0

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses only the multi-cluster precondition; it says nothing about whether the switch persists for the session, what happens on an invalid host, or how existing ssh/slurm sessions are affected by changing the active cluster.

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?

One compact sentence with the precondition front and center and no filler. It is terse to the point of omitting useful behavioral detail, but nothing present is wasted.

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, non-nested tool with no output schema and full schema description coverage, the definition gives what is needed to invoke it correctly, including the omit-to-list escape hatch. The main remaining gap is post-switch behavior, which is minor at this complexity.

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?

Schema coverage is 100% and the schema itself documents that omitting 'host' lists available clusters, so the parameter meaning is fully covered. The description adds nothing beyond the schema, which is the baseline 3, but the tool's single parameter is unambiguous and the list-on-omit behavior is a notable affordance the agent can rely on.

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?

States a specific verb and resource: 'Switch active HPC cluster'. An agent can distinguish it from cluster_info (which inspects) without opening the schema, though the description never names that sibling explicitly.

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 parenthetical '(when multiple clusters configured)' gives a precondition for use, which is real guidance. It stops short of telling the agent when not to use it or pointing at cluster_info for read-only inspection of the current cluster.

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