Skip to main content
Glama
grandMA2 MCP
by drohi-r

reconfigure_connection

Swaps the active console connection to another host, optionally persists it to .env, and verifies the candidate before committing so an invalid host leaves the current session intact.

Instructions

Swap the active console connection and (optionally) persist to .env.

Atomic swap: rebuilds the SessionManager under the manager lock so in-flight
tool calls either complete on the old manager or fail with ConnectionError
(operator-recoverable). With ``verify=True`` (default), a fresh client is
opened against the candidate host and ``ListVar`` is executed before any
swap; failure aborts the call and leaves the previous connection intact.

Args:
    host: New console host (IPv4 or hostname).
    port: Telnet port (default 30000).
    user: Console user.
    password: Console password.
    persist: When True, also write GMA_HOST/GMA_PORT/GMA_USER/GMA_PASSWORD to
        .env so the next server start uses them (default False: this run only).
    verify: When True, run a SAFE_READ probe before committing the swap.
        With False the reply says ``verified: false``. To just free the
        console, use disconnect_console instead of pointing at a dummy host.

Returns:
    JSON envelope: ``{success, previous_host, new_host, verified, persisted_to,
    note, warning, error}``.

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": {
      "host": "<host>"
    },
    "name": "reconfigure_connection"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostYes
portNo
userNoadministrator
verifyNo
persistNo
passwordNoadmin

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses the atomic swap under the manager lock, that in-flight calls either finish on the old manager or fail with ConnectionError, that a failed verification aborts the swap and preserves the prior connection, and that persist writes credentials to .env for the next start. This is exactly the mutation, failure, and credential-persistence context an agent needs.

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?

Well front-loaded: the atomic-swap and verification semantics come before the parameter list, and each paragraph adds new information. The Returns block is somewhat redundant given an output schema exists, and the sentence about dummy hosts is a little verbose, but nothing is filler.

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 six-parameter connection swap with no annotations, the description covers atomicity, failure modes, credential persistence, verification defaults, and the alternative tool. The return envelope is described even though an output schema exists, which errs on the side of completeness rather than omission.

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 description coverage is 0%, so the description has to document all six parameters, and it does: host, port, user, password, persist (with its default and effect), and verify (with its default and probe behavior). Defaults and the consequence of each flag are explained, not just restated.

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 first line states a specific verb and resource: 'Swap the active console connection and (optionally) persist to .env.' It also distinguishes this from the sibling disconnect_console in the verify section, so an agent can pick between them without opening a schema.

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?

The description gives clear situational guidance: default verify=True for a probe, verify=False when you don't want probing, persist=False for a run-only change, and an explicit redirect to disconnect_console when the goal is just to free the console. It stops short of stating when this tool is preferred over a full server restart, but the exclusions it does give are actionable.

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