Skip to main content
Glama
gaztrabisme

glm-subagent-mcp

by gaztrabisme

glm_delegate

Delegate coding tasks to a fresh subagent that runs independently, with a verification command to prove completion. Returns immediately, enabling parallel or asynchronous work.

Instructions

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
taskYes
modelNo
workspaceNo
instructionsNo
verificationYes
wait_secondsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Install Server

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full behavioral burden and does so thoroughly. It discloses immediate return with agent_id and run_id, per-call process/session isolation, the child's inability to ask clarifying questions, and how the verification command is run and its exit code determines completed vs. completed_unverified. This is far beyond a minimal description.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The most important behavioral facts are front-loaded before the parameter list, and every sentence earns its place. The parameter explanations are compact yet concrete, using examples and defaults rather than padding. Length is proportionate to the tool's complexity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter tool with no annotations, the description covers invocation behavior, parameter semantics, defaults, workspace configuration, return behavior, and verification semantics. Since an output schema exists, the description does not need to enumerate return fields; the agent has enough context to select and call the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, but the Args section fully compensates by explaining every parameter: task requires acceptance criteria, verification is an executable shell command with examples, workspace resolves relative paths against the server workspace, instructions are prepended, model defaults to server config, name appears in glm_list, and wait_seconds blocks for up to that duration.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: 'Start a new Claude Code subagent on a task.' It also distinguishes itself from the sibling glm_continue by noting that each call creates a fresh agent and that glm_continue is for existing agents. An agent can tell this is the creation tool, not a listing, waiting, cancellation, or transcript tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly tells the agent to use glm_continue for work on an already-existing agent, and explains that wait_seconds controls immediate vs. blocking behavior. It does not explicitly contrast with glm_await or glm_cancel, but the core when-to-use guidance for creating a new subagent is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Other Tools

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