Skip to main content
Glama

aide_observer_start

Starts or reuses the observer and verifies that no other agent session is open in the project, enforcing one active session before work begins.

Instructions

Start the observer (or reuse the running one) and check that no other session is open in this project. The observer is mandatory: it is the single source of truth for which agent session works in a project, and a project has at most one open session. Call it at every session start, after reporting session_started through aide_observer_event on its own and reading that reply; call it once more when a report replies observer not running. It takes no arguments. One observer serves every project on this machine: it tries AIDE_OBSERVER_PORT first if set, then 24680 to 24689 in order, takes the first free port and records it. The first line of the reply starts with exactly one of: Observer running at <link> or Observer already running at <link> (go on), Observer not replaced: … (an older observer still serves at the link; go on), REOPENED: … (this conversation had ended earlier and nothing newer has worked the project since, so it is open again; the link follows on the next line; tell the user and go on), STOPPED: … (this conversation had ended and cannot reopen, because a newer session has worked the project since or another session ended it with the user's approval; a hard stop no approval lifts: tell the user to continue in a new session, offer no end-session and do not call start again), HALT: … (another session of this project is open — each line names its id, or claude:<id> for a Claude session that never reported, whether it is working or waiting on the user, how long it has been quiet with maybe stuck past 15 minutes, its last activity, pipeline and phase; this is a hard stop: tell the user, and proceed only after they approve ending that session with aide_observer_end_session and a new start passes, or they close this one), or BLOCKED: … (the observer could not start on any port, every port tried is named, or this ended conversation could not be reopened, with the reason; a hard stop: tell the user and do nothing further). A session whose transcript ends in its own closing record counts as closed: it never halts the start, and start marks it ended. Give the user the link, which includes its access token.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.17.1

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations and no output schema, the description carries the full disclosure burden and does so comprehensively: single observer per machine, port fallback AIDE_OBSERVER_PORT then 24680-24689, first-free-port recording, and the exact meaning and required reaction for each reply prefix (running, not replaced, REOPENED, STOPPED, HALT, BLOCKED). It also flags which outcomes are hard stops and which are safe to continue past, which is exactly the behavioral context an agent needs before invoking.

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?

The purpose and call timing are correctly front-loaded, and almost every sentence carries load-bearing information about the reply protocol. However, the bulk is a dense run-on enumeration of six reply prefixes with nested parentheticals instead of a structured list, making it harder to scan than its content warrants. Size is defensible given the absence of an output schema, but the presentation is not optimized.

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?

Given zero parameters, no annotations, and no output schema, the description must define the entire return protocol and it does: every possible first line of the reply, how to interpret it, what to tell the user, and which actions are permitted afterward. It also covers the edge case of a conversation whose transcript ends in its own closing record. Nothing needed to call this correctly 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?

The tool takes no parameters and the description confirms this explicitly with "It takes no arguments," matching the empty schema. There is no additional parameter meaning to add, so the baseline of 4 applies.

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?

The description opens with a specific verb and resource ("Start the observer (or reuse the running one)") plus the immediate side-check ("check that no other session is open in this project"). It explicitly distinguishes itself from the sibling tools it interacts with, naming aide_observer_event and aide_observer_end_session and defining its role as "the single source of truth for which agent session works in a project."

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?

Timing is stated precisely: "Call it at every session start, after reporting `session_started` through aide_observer_event on its own and reading that reply; call it once more when a report replies `observer not running`." It also names the condition that selects the sibling aide_observer_end_session (only after user approval of ending another session), so alternatives and prerequisites are both covered.

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