GLM Agent Monitor MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GLM_MONITOR_DATA_DIR | No | Custom data root directory. Default is ~/.glm-agent-monitor. Must be a canonical absolute local path whose parent already exists (e.g. use /private/tmp/... rather than the macOS /tmp symlink). | |
| GLM_MONITOR_MIN_ROWS | No | Minimum rows per resulting pane. Default 6; allowed range 3–100. | |
| GLM_MONITOR_MIN_COLUMNS | No | Minimum columns per resulting pane. Default 30; allowed range 10–200. | |
| GLM_MONITOR_MAX_DISK_BYTES | No | Admission and inactive-cleanup byte limit. Default 1073741824 (1 GiB); allowed range 1024–Number.MAX_SAFE_INTEGER. | |
| GLM_MONITOR_MAX_WORKSPACES | No | Maximum number of workspaces per server process. Default 8; allowed range 1–64. | |
| GLM_MONITOR_RETENTION_DAYS | No | Number of days after last modification before inactive logs expire. Default 7; allowed range 1–3650. | |
| GLM_MONITOR_MAX_TOTAL_AGENTS | No | Maximum number of agent registrations per server lifetime. Default 4096; allowed range 1–100000. | |
| GLM_MONITOR_MAX_PANES_PER_WINDOW | No | Maximum number of panes per window. Default 4; allowed range 1–32. | |
| GLM_MONITOR_APPLESCRIPT_TIMEOUT_MS | No | AppleScript operation timeout in milliseconds. Default 10000; allowed range 100–60000. | |
| GLM_MONITOR_MAINTENANCE_INTERVAL_MS | No | Interval in milliseconds between periodic cleanup runs. Default 10000; allowed range 1000–300000. | |
| GLM_MONITOR_MAX_WINDOWS_PER_WORKSPACE | No | Maximum number of windows per workspace. Default 4; allowed range 1–16. |
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
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| open-workspaceA | Create a dedicated iTerm2 GLM log-monitor window. Explicitly reuse a managed workspace with reuseWorkspaceId. Does not launch agents. |
| open-agent-paneB | Create a private generated agent log and isolated iTerm2 viewer pane. Client launches the agent independently exactly once; no commands or paths accepted. First pane reports splitDirection none. |
| close-agent-paneA | After the client observes agent completion, failure or cancellation, close only its managed viewer session. Does not terminate the agent. Last agent closes the workspace. Idempotent. |
| list-agent-panesA | List managed workspace, window, agent and pane metadata; reconcile manually closed sessions. Never returns log contents or environment variables. |
| close-workspaceB | Close only registered dedicated windows and viewers. Refuses closure if unrelated sessions were added. Leaves GLM processes and protected logs intact. Idempotent. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 5 tools
Each tool maps to a distinct object+action pair (open/close pane, open/close workspace, list panes), and descriptions explicitly clarify boundaries such as 'does not terminate the agent' and 'does not launch agents'. Minor overlap remains between open-agent-pane and open-workspace since a first pane appears to implicitly establish workspace context, but the descriptions largely resolve this.
All five tools follow a strict kebab-case verb_noun pattern (open-agent-pane, close-agent-pane, open-workspace, close-workspace, list-agent-panes). The open/close/list symmetry across the two resources makes the set highly predictable.
Five tools is a tight, well-scoped surface covering create/teardown for both panes and workspaces plus enumeration. Each tool clearly earns its place with no redundancy.
The open/close lifecycle for panes and workspaces plus listing is covered, but a monitor server has no tool to read agent log contents, query agent status, or observe completion state — the client must infer these externally. This is a notable gap for the stated monitoring purpose, though the descriptions suggest the design intentionally avoids log exposure.