Skip to main content
Glama

bridge_chat

Send prompts to built-in or custom AI coding agents through headless CLI or live desktop channels, then read back replies for automated coding workflows.

Instructions

Converse with any built-in or custom AI coding agent via user-selectable channel: channel='cli' (headless CLI execution) or channel='desktop' (live visible dialogue inside the macOS/Windows desktop client window via Computer-Use v2.1 + lossless session readback) or channel='auto'.

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": {
      "agent": "<agent>",
      "prompt": "<prompt>"
    },
    "name": "bridge_chat"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoWorking project directory (required for CLI channel).
modeNoworkspace-write
agentYes
modelNo
promptYes
channelNoChoose 'cli' (headless CLI), 'desktop' (live inside macOS/Windows client UI), or 'auto' (uses saved user preference).auto
async_modeNo
extra_dirsNo
session_idNo
timeout_secNo
wait_for_replyNoFor channel='desktop', wait and read back the client's full reply.
capture_screenshotNoFor channel='desktop', save a verification screenshot of the client window.
enable_computer_useNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.0

TDQS

B3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it does not meet it. It never discloses that calling this drives an external agent that can write to the project (mode defaults to 'workspace-write'), that runs can be long-lived (timeout_sec default 300) or asynchronous, or anything about permissions, side effects, or what the response contains; it only advertises 'lossless session readback' and screenshots as features.

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?

It is a single front-loaded sentence with the key subject ('Converse with... AI coding agent') leading, which is good. But it is a dense stacked parenthetical that spends words on version markers and marketing phrasing ('Computer-Use v2.1 + lossless session readback') rather than on information an invoking agent needs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 13-parameter tool with no annotations and no output schema, one sentence centered on 'channel' leaves most of the invocation contract unstated: return shape, session reuse via session_id, async behavior, and the safety profile of a write-capable agent run. The agent would have to read the schema closely and still guess at runtime behavior.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 31% across 13 parameters, so the description should compensate, yet it only elaborates on 'channel' — and even that largely restates the schema's own enum description. The agent, model, extra_dirs, session_id, async_mode, and enable_computer_use parameters receive no added meaning beyond their names.

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+resource ('Converse with any built-in or custom AI coding agent') and enumerates the channel modes with one-line semantics for each ('cli' = headless CLI execution, 'desktop' = live visible dialogue in the client window). It stops short of differentiating itself from nearby siblings such as bridge_codex_computer_use or bridge_read_session, so an agent must infer that this is the general-purpose entry point.

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?

The description implies usage through the channel enumeration — headless/scripted work goes to 'cli', visible interaction goes to 'desktop' — but never states when to choose this tool over bridge_codex_computer_use, nor when to continue an existing session versus start a new one. No prerequisites, exclusions, or cost/latency tradeoffs between channels are given.

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