Skip to main content
Glama

Cot Relay Start

cot_relay_start
Destructive

Start a plain-TCP CoT capture and relay server to connect ATAK/iTAK clients directly, save each event under a session folder, and rebroadcast it to other clients without a TAK Server.

Instructions

Start a CoT capture and relay server for real ATAK/iTAK traffic.

Point each TAK client at host:port as a plain-TCP streaming input (no SSL, no auth). Every <event> is saved under <data_dir>/cot_captures/<session>/ and rebroadcast to every other client, so clients see each other with no TAK Server. atak_fleet_up stands up emulator clients, which reach it at 10.0.2.2:<port>. One relay at a time; call cot_relay_stop first to rebind. See docs/atak-cot.md.

Returns {started, running, host, port, outdir, started_at, peers, peer_count, events_captured, type_counts}.

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

Input Schema

NameRequiredDescriptionDefault
portNoTCP port the relay listens on.
sessionNoCapture directory name, a single path component; omit for a UTC timestamp.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Adds substantial context beyond the annotations: no SSL and no auth on the stream, captures written to <data_dir>/cot_captures/<session>/, rebroadcast to all other clients, and the single-relay binding constraint. The destructiveHint=true annotation is not explained (what gets overwritten or destroyed on rebind is left implicit), which keeps it short of a 5.

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 the purpose, then constraints, then return shape; nearly every sentence carries operational weight. The trailing enumeration of return keys is largely redundant given an output schema exists, a small waste.

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

Completeness5/5

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

Covers purpose, connection model, security posture, storage location, concurrency constraint, sibling to call first, and a pointer to docs/atak-cot.md. For a two-parameter server-start tool with an output schema, nothing an agent needs is missing.

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 100%, so the baseline is 3; the description goes further by explaining the port operationally (clients connect to host:port, emulators use 10.0.2.2:<port>) and tying session to the capture directory path. It does not add format or validation detail beyond that.

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 ('Start a CoT capture and relay server') plus the target audience ('real ATAK/iTAK traffic'), which cleanly separates it from cot_relay_stop and cot_relay_status. An agent knows exactly what this does without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete operating instructions: point TAK clients at host:port as plain-TCP, use atak_fleet_up emulators via 10.0.2.2:<port>, and only one relay may run at a time so call cot_relay_stop first to rebind. That is explicit when-to-use plus the alternative to invoke when the precondition fails.

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