Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
AGENT_ROUTER_DEBUGNoMirror app-server stderr and protocol traffic to stderr.false
AGENT_ROUTER_SANDBOXNoSandbox for delegations (reviews are always read-only).workspace-write
AGENT_ROUTER_CODEX_BINNoExecutable to spawn.codex
AGENT_ROUTER_ISOLATIONNoDefault isolation: `none` or `worktree`.none
AGENT_ROUTER_CODEX_ARGSNoArgs; a JSON array is accepted for paths with spaces.app-server
AGENT_ROUTER_STATE_FILENoTask metadata file.~/.agent-router/tasks.json
AGENT_ROUTER_CHECKPOINTSNoSet to `off` to stop snapshotting around turns.on
AGENT_ROUTER_AUTO_APPROVENoAccept an approval request that arrives anyway.false
AGENT_ROUTER_WORKTREE_ROOTNoWhere linked worktrees are created.~/.agent-router/worktrees
AGENT_ROUTER_APPROVAL_POLICYNoCodex runs headless; nobody can answer prompts.never
AGENT_ROUTER_QUOTA_PREFLIGHTNoSet to `off` to skip the pre-delegation quota check.on
AGENT_ROUTER_MAX_WAIT_SECONDSNoCeiling on `waitSeconds`.1800
AGENT_ROUTER_QUOTA_LOW_PERCENTNoRemaining percent that triggers the `low` warning.15
AGENT_ROUTER_QUOTA_BLOCK_PERCENTNoRemaining percent that blocks delegation.2
AGENT_ROUTER_DEFAULT_WAIT_SECONDSNoBlocking window before returning `running`.240

Instructions

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

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
codex_get_modelsA

List the Codex models available to this account, with the reasoning-effort levels each one supports. Read live from the Codex model catalogue — never hardcoded. Use it before codex_delegate when you want to match model strength to task difficulty.

codex_get_limitsA

Read Codex usage limits, normalized by window duration (300 min -> '5h', 10080 min -> 'weekly'), with usedPercent, remainingPercent, resetsAt and rateLimitReached per window, plus a delegation verdict. Check this before delegating anything large.

codex_delegateA

Hand a self-contained coding task to Codex as a subagent. Starts a fresh Codex thread, runs the task, and returns the result plus the files it changed. Checks quota first: if Codex has no quota left it returns status 'quota_exhausted' with a handoff so you can finish the work yourself instead of waiting for a reset.

codex_continueA

Send a follow-up instruction into an existing Codex thread, keeping all of its prior context. Use it to iterate on review feedback instead of re-delegating from scratch.

codex_task_statusA

Read the current state of a delegated task: status, model, reasoning effort, changed files, commands run, plan, diff, worktree, checkpoints, and timestamps. Poll this when codex_delegate returned status 'running'. Omit taskId to list all known tasks.

codex_interruptA

Stop the turn Codex is currently running for a task. The thread survives, so codex_continue can pick it back up.

codex_reviewA

Ask Codex to review changes and report findings. Use it on YOUR OWN work for a second opinion before you ship, or on a Codex task's output with a different model. Codex reviews read-only and changes nothing. Returns a review task you can poll or extend with codex_continue.

codex_checkpointsA

List the working-tree snapshots taken around a task's turns. Each checkpoint captures tracked and untracked files without touching the user's index, and can be restored with codex_restore. Requires the working directory to be inside a git repository.

codex_restoreA

Roll the working tree back to a checkpoint — use it when Codex made things worse. This overwrites files on disk, so confirm with the user before calling it unless they already asked for the rollback. The pre-restore state is always captured as a new checkpoint first, so the operation is itself undoable.

codex_worktreeA

Commit or remove the isolated git worktree of a task delegated with isolation "worktree". "commit" records the work on the task branch and reports the merge command; the router never merges into the user branch itself. "remove" tears the worktree down and refuses to discard uncommitted work unless forced.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Marczelloo/agent-router-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server