Skip to main content
Glama
djerok

GLM Subagent MCP

Recommend GLM vs Opus for a task

glm_recommend
Read-onlyIdempotent

Recommends optimal engine (GLM vs Opus) for a task by analyzing its complexity, vision needs, language, and other parameters. Avoids overpaying for simple tasks or underpowering complex ones.

Instructions

Free local advisory (no GLM call): given a task profile, returns GLM-vs-Opus, model, confidence, and reasons. Call when unsure which engine to use.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stepsNoApprox number of dependent sequential steps. >20 forces Opus (goal drift).
visionNoTrue if input includes images/screenshots/GUI/computer-use (forces Opus).
chineseNoTrue if Chinese or Chinese-English bilingual (GLM strength, +1).
sensitiveNoTrue if proprietary/security-critical (forces Opus).
task_typeNoClosest task category. Default 'general'.
complexityNoDefault 'medium'.
input_tokensNoApprox context size needed. >128K forces Opus (GLM degrades past ~100K).
long_horizonNoTrue if many sequential steps / multi-hour autonomy.
tool_patternNoTool-use shape: single one-shot call / short independent fanout (GLM-ok) vs heavy dependent agentic loop (forces Opus).
needs_parallelNoTrue if it needs several concurrent agents (forces Opus).
unfamiliar_apiNoTrue if it uses a niche/post-cutoff/internal API GLM can't know (-2; paste docs or use Opus).
latency_sensitiveNoTrue if a tight interactive loop (forces Opus).
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false. The description adds value by stating 'Free local advisory (no GLM call),' confirming no side effects and no cost, which aligns with readOnlyHint. It could also mention that input stays local, but the provided information is sufficient.

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 description is extremely concise (two sentences) and front-loaded with the core purpose. Every word earns its place, with no fluff. It achieves maximal information density in minimal space.

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?

Given the complexity (12 parameters, all well-described in schema) and the presence of sibling tools, the description is complete. It states that the tool is advisory and free, specifies the return format, and the schema covers all parameter semantics. No output schema is needed as the return format is described.

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

Parameters3/5

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

Schema description coverage is 100%, so the baseline is 3. The description does not add additional parameter semantics beyond what the schema already provides (e.g., '>20 forces Opus'). The schema descriptions are detailed and include decision-relevant hints. The description's summary of return values is useful but not parameter-specific.

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?

Description clearly states the tool's purpose: 'given a task profile, returns GLM-vs-Opus, model, confidence, and reasons.' It uses a specific verb ('recommend'), specifies the resource ('GLM vs Opus for a task'), and distinguishes from sibling tools like glm_agent and glm_delegate which are for actual execution, not advisory.

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?

Description explicitly says 'Call when unsure which engine to use,' providing clear context for when to use this tool. It does not explicitly state when not to use it or list alternatives, but the sibling tool names (glm_agent, glm_delegate, glm_status) imply they are for different tasks. A clear guidance with exclusions would improve it to a 5.

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

Install Server

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

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