Skip to main content
Glama
gma3-mcp

gma3-mcp

by nf-s

Read console variables (global and user)

gma3_variables

Read grandMA3 global and user variable values and types by name, plus $variables referenced by macros, to inspect macro dependencies and resolve scope when variables cannot be listed.

Instructions

Read-only. The values and types (integer, double, text) of global and user variables, by name, and every $variable the macros reference (referenced, default when no names are given: each with the macro lines that use it). Variables cannot be listed on grandMA3 2.5.1 (no API enumerates them), so a variable that no macro references is read by its name. With scope both (default), resolvesTo says which one a $reference uses: a user variable shadows a global one. User variables are the bridge's user's. $variables expand in commands sent through gma3_command (outside quotes). Needs bridge 0.31.0.

Input Schema

NameRequiredDescriptionDefault
namesNoVariable names to read (case-sensitive).
scopeNoWhich variables (default both).
referencedNoAlso read every $variable the macros reference (default: true when no names are given).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden and does so: it declares read-only semantics, a platform limitation (no API enumerates variables on grandMA3 2.5.1), shadowing behavior ('a user variable shadows a global one') surfaced via resolvesTo, whose user owns user variables, and a minimum bridge version (0.31.0). These are non-obvious operational facts an agent could not get from the schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Nearly every sentence carries information, but the opening sentence is a tangled, comma-spliced fragment ('The values and types ... of global and user variables, by name, and every $variable the macros reference ...') that is harder to parse than it needs to be. The density is justified; the structure and grammar are not.

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 read tool with no annotations and no output schema, the description covers return content (values, types, resolvesTo, macro lines), defaults, platform limits, and prerequisites well. It is slightly incomplete on failure behavior — e.g., what happens when a named variable does not exist — which matters for a name-based lookup on a system that cannot enumerate.

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%, so the baseline is 3, but the description adds meaning beyond it: it explains what `scope: both` actually yields (resolvesTo indicating which namespace a $reference resolves to), the default-when-empty logic for `names`/`referenced`, and that `referenced` results include the macro lines that use each variable. That is genuine semantic value over the schema text.

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 names a specific verb and resource ('Read ... global and user variables') and even enumerates the returned data (values and types: integer, double, text), so an agent knows exactly what the tool does. It does not explicitly name a sibling (e.g., gma3_set_variable as the write counterpart), though the leading 'Read-only' implicitly separates it from mutation tools.

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 gives real usage context: the default resolution of `referenced` when no names are supplied, the fact that variables cannot be enumerated on 2.5.1 so named lookup is required, and the tie-in to `gma3_command` expansion outside quotes. What is missing is an explicit 'use this instead of X' comparison against gma3_set_variable or other variable/object readers.

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