GLM Subagent MCP
by djerok
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GLM_CAP | No | Output-token cap. Off by default = generous (up to 131072 per call). Set on to enforce GLM_MAX_TOKENS. Default: off | off |
| GLM_API_KEY | Yes | Your Z.ai API key with GLM Coding Plan access. Required. | |
| GLM_BASE_URL | No | Anthropic-compatible endpoint. Default: https://api.z.ai/api/anthropic | https://api.z.ai/api/anthropic |
| GLM_COST_BIAS | No | How hard to favor GLM (it's ~10x cheaper). Higher = more GLM; 0 = decide on capability only. Default: 1.5 | 1.5 |
| GLM_MAX_TOKENS | No | The hard per-call limit applied only when GLM_CAP=on. Default: 32768 | 32768 |
| GLM_PEAK_MODEL | No | Model used during China peak. Default: glm-5.2 | glm-5.2 |
| GLM_PEAK_END_CN | No | Peak window end (China hour, UTC+8). Default: 18 | 18 |
| GLM_OFFPEAK_MODEL | No | Model used off-peak. Default: glm-5.2 | glm-5.2 |
| GLM_PEAK_START_CN | No | Peak window start (China hour, UTC+8). Default: 14 | 14 |
| GLM_MAX_CONCURRENT | No | GLM caps in-flight requests; keep at 1. Default: 1 | 1 |
| GLM_AGENT_MAX_ITERS | No | Max tool-loop turns for glm_agent. Default: 30 | 30 |
| GLM_MAX_TOKENS_CEILING | No | The generous default used when the cap is off. Default: 131072 | 131072 |
Capabilities
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/djerok/glm_mcp_claude'
If you have feedback or need assistance with the MCP directory API, please join our Discord server