Skip to main content
Glama
grandMA2 MCP
by drohi-r

companion_button_press

Trigger a button press on a running Bitfocus Companion instance via its HTTP API by specifying page, button index, and host/port.

Instructions

Press a button on a running Bitfocus Companion instance via HTTP API (SAFE_WRITE).

Sends a GET request to Companion's REST API to trigger a button press.
Companion must be running and accessible at the specified host/port.

Args:
    page: Companion page number (1-based).
    button: Button index on the page (0-based).
    host: Companion host (default "localhost").
    port: Companion HTTP API port (default 8000).

Returns:
    str: JSON with status, url_called, response text.

Examples:
    - Press button 0 on page 1: companion_button_press(page=1, button=0)
    - Remote Companion: companion_button_press(page=1, button=3, host="192.168.1.50")

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": {
      "page": "<page>",
      "button": "<button>"
    },
    "name": "companion_button_press"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostNolocalhost
pageYes
portNo
buttonYes

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 provided, the description carries the full burden and does so well: it discloses the SAFE_WRITE classification, that the trigger is a GET request to the REST API, the runtime prerequisite, and the return shape. It omits authentication requirements and what happens when the page/button does not exist, which are the remaining gaps.

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 with purpose and safety class, then structured Args/Returns/Examples blocks. Every section earns its place; the examples are useful rather than padding, though the formatting is slightly verbose for a four-parameter tool.

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 simple four-parameter action tool this is nearly complete: purpose, precondition, parameter semantics, and return format are all covered. Since an output schema exists, the Returns section is redundant rather than additive, and auth requirements are unaddressed.

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 coverage is 0%, so the description must compensate, and it does: it documents all four parameters including the critical indexing bases (page 1-based, button 0-based) and the defaults for host and port. That indexing detail is exactly the kind of semantics the bare schema lacks.

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: 'Press a button on a running Bitfocus Companion instance via HTTP API.' The scope is unambiguous. It does not explicitly differentiate itself from sibling tools, but no sibling appears to press Companion buttons, so the gap is minor.

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?

Provides the key precondition that 'Companion must be running and accessible at the specified host/port,' which is real usage context. However, it names no alternative tool and gives no when-not-to-use guidance, so selection guidance is only implied.

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