Skip to main content
Glama

relay_send

Play or set something on the user's hardware through a relay: give a driver (id or slug) and one of its OSC addresses from list_routes with its arguments (e.g. address '/filter/cutoff', args [64]; '/note/on', args [60, 100]) — the server turns it into the right CC, NRPN, note or SysEx message. Or give raw MIDI bytes as hex. Values are the device's own numbers, clamped to the parameter's range. Any SysEx but the Identity Request (patch dumps, stores, settings, preset restores) may overwrite the device's memory: the relay asks the user to accept it first and this call waits for the answer (up to 2 minutes), so tell the user what you are about to send.

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": {
      "code": "<code>"
    },
    "name": "relay_send"
  }
}

Input Schema

NameRequiredDescriptionDefault
hexNoRaw MIDI messages instead of device/address, e.g. 'B0 2B 40'.
argsNoOSC arguments (numbers, strings, booleans).
codeYesThe pairing code the relay page or program shows (e.g. 'K7QM-2XPA').
portNoOutput port name (or part of it); needed when the relay has several.
deviceNoDriver id (e.g. 'korg/minilogue') or slug.
gap_msNoPause between the SysEx messages of a dump, for devices that write slowly (default 50).
addressNoOSC address of the driver, with or without its prefix.
user_idNoYour anonymous SynthHub id, if you kept it from an earlier session (see the server instructions). Optional.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / user_id / description
      Previous value: -"Your anonymous osc-bridge id, if you kept it from an earlier session (see the server instructions). Optional."New value: +"Your anonymous SynthHub id, if you kept it from an earlier session (see the server instructions). Optional."
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Adds substantial context beyond the annotations: values are clamped to the parameter's range, SysEx other than Identity Request can overwrite device memory, the relay prompts the user and the call blocks for up to 2 minutes, and the agent is told to inform the user before sending. These are exactly the operational traits an agent needs and are not derivable from the readOnly/destructive/openWorld/idempotent hints.

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-loads the two invocation modes with concrete examples, then closes with the risk/approval warning, so the critical safety note lands last but is unmistakable. It is dense and mostly earned, though the example list and the warning could be tightened slightly.

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 an eight-parameter, open-world, non-idempotent hardware tool with no output schema, the description covers both input modes, value semantics, the blocking approval flow, and the memory-overwrite risk. The main gap is that it does not describe what the call returns (success confirmation, echoed message, error shape) after the user answers.

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 already 100%, so the baseline is 3. The description nevertheless adds real meaning: it ties device and address together as a pair, illustrates arg formats with concrete OSC examples, and frames hex as a mutually exclusive alternative to device/address. It does not explain the pairing code or when port matters, which the schema covers on its own.

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?

States a specific verb and resource ('Play or set something on the user's hardware through a relay') and enumerates the two input modes (driver+OSC address, or raw hex bytes). This is clearly distinguishable from siblings like relay_listen, relay_status, relay_detect, and it explicitly cross-references list_routes for valid addresses.

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?

Gives concrete guidance on how to invoke (driver id or slug plus an OSC address from list_routes, with examples like '/filter/cutoff' args [64]), and explains the alternative raw-hex path. It also tells the agent when the user-acceptance flow triggers (non-Identity-Request SysEx). It stops short of saying when to prefer a sibling tool such as relay_listen.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.