Skip to main content
Glama

bridge_register_agent

Registers any AI coding CLI or built-in preset into the bridge agent config, making it available to chat, project listing, and collaborative plan creation.

Instructions

Dynamically register ANY additional AI coding tool (or activate a built-in preset such as gemini_cli, aider, cursor_agent, qwen_code, goose, kimi_cli, openhands) into ~/.agent-bridge/custom_agents.json so it works seamlessly with bridge_chat, bridge_list_projects, and collab_create_plan.

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

Input Schema

NameRequiredDescriptionDefault
presetNoOptional preset template name (call bridge_list_agent_presets to inspect).
aliasesNo
agent_idNoUnique lowercase identifier (required unless preset is provided).
app_pathNoOptional desktop app path (macOS .app or Windows .exe).
env_extraNo
cli_commandNoExecutable name or absolute path.
display_nameNo
version_argsNo
session_globsNo
workspace_rootsNo
chat_args_templateNoCLI args template supporting {prompt}, {cwd}, {session_id}, {model}, {mode}.
resume_args_templateNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses the persistent write to ~/.agent-bridge/custom_agents.json, which is important behavioral context, but omits permissions, overwrite/duplicate handling, validation, error behavior, and whether a restart is required.

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?

A single front-loaded sentence with no wasted framing; the parenthetical preset examples are dense but useful. Structure is clear and action-oriented.

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 high-complexity, config-mutating tool with 12 parameters, no annotations, and no output schema, the description omits success response, validation rules, overwrite semantics, and prerequisites. It gives enough to understand the basic action but not enough to call it confidently.

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

Parameters2/5

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

With 12 parameters and only 42% schema description coverage, the description should compensate but does not. It adds useful preset examples (gemini_cli, aider, etc.) but leaves chat_args_template placeholders, env_extra, session_globs, workspace_roots, aliases, and resume_args_template undocumented in both schema and description.

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 ('register') and resource ('AI coding tool') plus the exact target file (~/.agent-bridge/custom_agents.json), and names the siblings it integrates with. This is clearly distinct from read-only or unregister siblings.

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?

Explains the use case: adding any AI coding tool or activating a built-in preset, and notes compatibility with bridge_chat and others. It references bridge_list_agent_presets for preset inspection but does not state when not to use it or compare to bridge_unregister_agent.

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