Skip to main content
Glama
grandMA2 MCP
by drohi-r

get_variable

Read console variables to retrieve system or user values and list global show or user-profile variables for monitoring.

Instructions

Read variables from the console (SAFE_READ).

Args:
    action: One of:
        "echo"         — read any variable via `Echo $NAME` (system + user vars).
                         Use this for built-in system variables: $SELECTEDEXEC,
                         $TIME, $DATE, $VERSION, $FADERPAGE, $BUTTONPAGE,
                         $SELECTEDFIXTURESCOUNT, $USER, $HOSTNAME, $HOSTSTATUS, etc.
        "get_user"     — read a user variable via GetUserVar.
        "list_var"     — list all global show variables.
        "list_user_var"— list all user-profile variables.
    var_name: Variable name (required for "echo" and "get_user").
              May include or omit leading $. E.g. "SELECTEDEXEC" or "$mycounter".

Returns:
    str: JSON with command_sent, raw_response, risk_tier.
         For "echo", also includes `variable` and `value` keys.

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": {
      "action": "<action>"
    },
    "name": "get_variable"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYes
var_nameNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/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 well: it labels the operation SAFE_READ, discloses that echo covers both system and user variables, and states that responses include risk_tier alongside command_sent and raw_response. It stops short of describing failure behavior, whether reads have any side effects, or how large the list_* outputs can be.

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 purpose sentence followed by a well-structured action list and a short returns block; every action line earns its place. The docstring-style "Args:"/"Returns:" scaffolding and repeated parameter names add mild verbosity but no confusion.

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 2-parameter tool with an output schema, the description covers all parameters, all action modes, and safety posture, so an agent can invoke it correctly. Remaining gaps are environmental (connection prerequisites) and error-handling expectations rather than parameter or return ambiguity.

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% and the action parameter has no enum in the schema, yet the description fully specifies all four legal values and their distinct semantics. It also explains var_name's conditional requirement and that the leading $ may be included or omitted, with concrete examples — meaning well beyond what the schema provides.

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 ("Read variables from the console") and clearly enumerates the four read modes, so an agent knows exactly what the tool does. It does not distinguish itself from the sibling manage_variable, so it falls 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?

Each action carries explicit usage guidance, notably "Use this for built-in system variables" with a concrete list of examples, plus a clear split between echo, get_user, and the two listing modes. There is no guidance on when to use this tool versus manage_variable or other state getters, and no statement of prerequisites such as an active console connection.

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