Skip to main content
Glama
gaztrabisme

glm-subagent-mcp

by gaztrabisme

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GSA_MODELNo Model for delegated work.glm-5.3[1m]
GLM_API_KEYNoZ.ai API key used for GLM Coding Plan access.
ZAI_API_KEYNoAlternative Z.ai API key.
GSA_BASE_URLNoAnthropic-compatible GLM endpoint.https://api.z.ai/api/anthropic
GSA_MAX_STEPSNo--max-turns.40
GSA_WORKSPACENoDirectory the child reads and writes. Defaults to server cwd.
GSA_MAX_AGENTSNoConcurrent in-flight children.4
GSA_SUPERVISORNoauto / agent / sampling / elicitation / off.auto
GSA_FLASH_MODELNoHai ku-slot mapping.glm-5.3-flash[1m]
GSA_RUN_TIMEOUTNoSeconds before a run is killed.1800
ANTHROPIC_AUTH_TOKENNoAnthropic-compatible auth token alternative to GLM_API_KEY.

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": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
glm_delegateA

Start a new Claude Code subagent on a task.

Returns immediately with an agent_id and run_id unless wait_seconds is set. Each call creates a fresh agent with its own runtime process and session; use glm_continue to give more work to an agent that already exists.

Args: task: What to do, with a clear definition of done. The child cannot ask you clarifying questions, so state the acceptance criteria. verification: The shell command that proves the task is done, run by this server in the workspace after the child finishes — e.g. "pytest -q" or "npm test && npm run lint". Its exit code decides whether the run is reported completed or completed_unverified. Pass "true" if there is genuinely nothing to check. workspace: Directory the child reads and writes. Relative paths resolve against the server's configured workspace. Defaults to that workspace. instructions: Optional standing guidance prepended to the task, e.g. coding conventions or files to leave alone. model: GLM model id. Defaults to the server's configured model. name: Human label for this agent, shown in glm_list. wait_seconds: Block up to this long for the run to finish. 0 returns at once.

glm_awaitA

Wait for a run to finish and return its result.

Safe to call repeatedly. If the run is still going when wait_seconds elapses, this returns the current state rather than an error. Runs whose agent has since been reaped are still readable — their results are archived.

Args: run_id: The run to wait on, from glm_delegate or glm_continue. wait_seconds: Maximum time to block. Use a longer value for big tasks.

glm_continueA

Send follow-up work to an existing subagent, in its original session.

The child keeps the full context of its earlier turns, so refer to prior work directly ("the migration you just wrote"). Work is queued: if the agent is mid-run, this message runs after it.

Args: agent_id: Agent to continue, from glm_delegate or glm_list. message: The follow-up instruction. verification: Command proving this follow-up is done. Omit to skip verification for this turn; the run then reports completed_unverified. wait_seconds: Block up to this long for the run to finish. 0 returns at once.

glm_listA

List every subagent this server owns, with its state, cost, and run history.

glm_cancelA

Stop a subagent and release its runtime process.

The harness protocol has no mid-turn cancel, so this kills the child process. Any in-flight run is reported as cancelled, and file edits it already made stay on disk. Cancelling ends the session: its context cannot be resumed, so start a new agent rather than continuing this one.

Args: agent_id: Agent to stop.

glm_transcriptA

Show what a subagent actually did during a run.

Returns the tail of its activity log — tool calls, assistant messages, turn endings. Use this to check progress on a long run, or to understand a failure. Returns live data while the run is still going.

Args: run_id: The run to inspect. limit: How many of the most recent activity lines to return. raw: Also return the child's full uncapped response. glm_delegate returns a distilled version when the answer is large; this is where the original text lives.

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/gaztrabisme/glm-subagent-mcp'

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