Skip to main content
Glama
grandMA2 MCP
by drohi-r

generate_companion_config

Generate an importable Bitfocus Companion page config from the current grandMA2 executor layout, creating one button per assigned executor that sends Go+ commands via telnet.

Instructions

Generate a Bitfocus Companion .companionconfig page from the current MA2 executor layout (SAFE_READ).

Reads the executor page and builds a Companion-importable JSON config
with one button per assigned executor. Each button sends the appropriate
Go+ command via Companion's grandMA2 telnet module.

The output is a JSON string in Companion v4 page-export format. Save it
to a .companionconfig file and import via Companion UI → Buttons → Import.

Args:
    page: MA2 executor page to export (default 1).
    companion_page: Target Companion page number (default 1).
    grid_columns: Companion grid width — 8 for Stream Deck XL, 5 for Stream Deck (default 8).

Returns:
    str: JSON with companion_config (the importable config), executor_count, and instructions.

Examples:
    - Export page 1: generate_companion_config()
    - Export page 2 for Stream Deck: generate_companion_config(page=2, grid_columns=5)

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": "generate_companion_config"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo
grid_columnsNo
companion_pageNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does reasonably well: it labels the operation SAFE_READ, states that it reads the executor page, describes the one-button-per-executor construction, and names the output format and delivery mechanism. It omits edge behaviors such as what happens when a page has no assigned executors or whether any errors are raised.

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?

The lead sentence is front-loaded and states the verb, resource, and safety class immediately, followed by mechanics and then args/returns/examples. The Returns block partly duplicates the existing output schema, and the Args section repeats parameter defaults already in the schema, but the redundancy is minor and aids scanning.

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-only, three-parameter generator with an output schema present, the description covers purpose, method, parameters, and post-generation workflow sufficiently for correct invocation. The remaining gaps (empty-page behavior, error conditions, valid input bounds) are modest rather than blocking.

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 description coverage is 0%, so the description must compensate, and it does: all three parameters are explained with defaults and domain meaning (page = MA2 executor page, companion_page = target Companion page number, grid_columns with the concrete 8-for-XL / 5-for-standard device mapping). It does not state valid ranges or constraints on grid_columns beyond the two examples.

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 uses a specific verb and resource ('Generate a Bitfocus Companion .companionconfig page from the current MA2 executor layout') and names the source data (MA2 executor page) and output artifact (Companion v4 page-export JSON). It does not explicitly contrast itself with nearby siblings such as companion_button_press or generate_ma2_macro, so sibling differentiation is left implicit.

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 clear operational context: read the executor page, produce JSON, save to a .companionconfig file, and import via Companion UI. The examples show concrete invocation recipes (page=2 with grid_columns=5 for Stream Deck), which is real usage guidance. It stops short of stating when to prefer this over alternative generation tools or what conditions make it inappropriate.

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