glm_explain
Explain code or concepts by providing a snippet or topic with optional context, and receive clear, actionable explanations for learning, documentation, and deeper understanding using GLM.
Instructions
Explain code or a concept using GLM.
Use for: understanding code, learning concepts, documentation.
Args: code_or_concept: Code snippet or concept to explain context: Additional context (e.g., language, framework) model: "haiku" or "sonnet"
Returns: Explanation
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code_or_concept": "<code_or_concept>"
},
"name": "glm_explain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | haiku | |
| context | No | ||
| code_or_concept | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |