Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PYTHONPATHYesPath to the installed agent-worker-mcp package, e.g. ${HOME}/.local/share/agent-worker-mcp.
RUNTIME_IDLENoNumber of seconds after which an idle CLI process closes; its session resumes on the next job.
WORKERS_FILEYesPath to the repository-specific workers.yaml file.
WORKER_OWNERNoIdentifier of the main session that owns worker sessions; may be empty.
WORKERS_DISABLEDNoRuntime to disable as a worker, e.g. claude.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Give work to the agent CLIs (workers) that workers.yaml names.

How to give work: 0. Call catalog once to see each worker's models and effort levels and the routing table: which runtime, model, and effort suits each kind of work, with a fallback. Name a model by its family (sonnet, opus, sol, neon) to get its newest version; latest shows the full id each family opens. Tell the user about each of warnings.

  1. Reuse a session when you can: a follow-up task on the same subject or files, with the same model and effort, goes to that worker session with assign(worker, text, session=...), so the worker keeps what it already read and you do not pay to load that context again. The job runs after the jobs before it in that session.

  2. Open a new session with assign(worker, text), and model and effort from the routing table when the worker's defaults do not fit, only for unrelated work or another model or effort: a long session sends its whole history with every turn. When your client runs assign as a task (Claude Code does), you go on at once and the finished job comes back to this session by itself. Do not poll for it.

  3. Use steer(session, text) only to change the running job at once, and interrupt(session) only to stop it. Call list first to find the session and its running job.

  4. In a client without tasks, such as claude -p, assign blocks until the job ends. Use create with text, then wait in a loop, for a long job there.

What to remember:

  • A session keeps the model and effort it opened with. To change either, open a new session with assign and delete the old one; assign refuses model or effort together with session.

  • If a job fails or falls short, raise the effort one step in a new session before you move to the fallback.

  • You move to the fallback yourself; the server never does. When assign or create is refused, or a job fails because the runtime is out of quota or the model is unavailable (read its error), open a new session on a worker of the route's fallback runtime, with its model and the highest effort that model offers up to the one you chose. The same family may run on another runtime on a separate quota: sonnet and opus also run in antigravity.

  • You see and control your own worker sessions and the shared ones, which have no owner (list); list(all=true) also shows the sessions of other main sessions, which you may read but not control.

  • A job marked uncertain may have reached the worker: read status before you give it again.

  • A worker that this main session turned off (WORKERS_DISABLED) is missing from catalog; choose another.

  • When a session's work is done: delete it if its context will not help again (it cannot be undone), or archive it if you may come back to it (it leaves list, keeps its context, and unarchive brings it back). Do one of the two before you end your work. An idle session costs no process: the server closes idle CLIs and resumes the session on its next job.

  • prune(older_than) deletes your sessions, archived ones too, that ran no job for that many hours, such as those a finished main session left.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": true
}
resources
{
  "subscribe": false,
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
createB

Open a session on a worker. With text, also start its first job. Returns the session and the job id.

model and effort stay for the life of the session; leave them out for the worker's defaults (catalog).

sendA

Start a job in a session and return its id at once. Refused with busy while another job runs.

queueB

Add a job that runs after the jobs before it. It starts now when the session is idle.

steerB

Add an instruction to the running job. When the runtime cannot steer, or no job runs, the text is queued.

interruptA

Stop the running job of a session. Queued jobs stay queued.

statusC

The state of a job, or of a session and its jobs.

waitB

Wait until a job ends, at most timeout seconds. Returns the job; call again while it is not final.

resultC

The final answer of a finished job.

listB

Your worker sessions, with the running job and the number of queued jobs of each. all adds the sessions of other main sessions, which you may read but not control.

forkB

Copy a session's conversation into a new session on the same worker.

catalogB

The workers you may use, each with its default model and effort, the models and effort levels a new session may choose, the full id that each family name opens (latest), and whether it may start sub-agents; the routing table of the kinds of work; and warnings for a default or a route that names an earlier, retiring, or missing model.

archiveB

Hide a session from list. It can be unarchived.

unarchiveC

Bring an archived session back.

deleteA

Delete a session at the vendor and in the store, and remove its worktree. It cannot be undone.

pruneA

Delete your worker sessions, and the shared ones, that ran no job for older_than hours, such as the sessions of a main session that ended. A session with a running or queued job stays. It cannot be undone.

assignA

Give a task to a worker and return the finished job (done, uncertain, or failed).

Without session it opens a new worker session, with model and effort when you give them (see catalog); the session keeps them for its life. With the id of one of your sessions on that worker, the job runs there after the jobs before it, with what the session already knows. In Claude Code it runs as a task: go on with other work, and the job comes back to this session when it ends.

watchA

Watch a job in the background and return it when it ends (done, uncertain, or failed).

Call it right after create, send, or queue, then go on with other work: the client delivers the job when it ends. It needs the right to wait. A client without MCP tasks waits for the answer instead.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.2/5.0

Scored across 17 tools

Disambiguation4/5

Most tools target a distinct resource+action (create session, fork session, interrupt job, result of job), and the descriptions do real work separating near-pairs like `send` (start now, refuse when busy) vs `queue` (run after prior jobs) vs `assign` (blocking convenience wrapper). The remaining soft spots are `wait` vs `watch` (both return a job when it ends, differing only in blocking vs background delivery) and the trio of job-starting verbs, which an agent could plausibly misselect at first glance.

Naming Consistency4/5

Every name is a single lowercase word with no case mixing, giving a predictable, readable surface. There is a mild verb/noun split — actions (`send`, `steer`, `fork`, `prune`) alongside state/object nouns (`status`, `result`, `list`, `catalog`) — but the convention is stable enough that no name is surprising.

Tool Count4/5

At 17 tools this sits at the upper edge of comfortable, but each one maps to a real lifecycle operation (session CRUD, job control, discovery, cleanup). Nothing looks like a redundant alias, though a few pairs (wait/watch, archive/unarchive) inflate the count beyond the strictly minimal set.

Completeness4/5

The surface covers session lifecycle (create/fork/archive/unarchive/delete/prune), job lifecycle (send/queue/steer/interrupt/status/result/wait/watch), and discovery via `catalog`, so there are no dead ends for the core workflow. Gaps are minor but real: there is no way to remove or inspect individual queued jobs (interrupt leaves them queued), and no operation to read a running job's partial output beyond steering it.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues