glm-mcp-server-use

GLM MCP Server Use for OpenClaw. Configure and use the 4 official Z.AI / GLM MCP servers (vision, web search, web reader, zread) with environment-variable API-key auth. Use for endpoint wiring, schema inspection, smoke tests, and troubleshooting MCP calls.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "glm-mcp-server-use" with this command: npx skills add conanwhf/glm-mcp-server-use

GLM MCP Server Use

Overview

This skill provides a practical workflow to install, validate, and use the 4 official GLM MCP servers in OpenClaw:

  1. Vision MCP (local stdio via @z_ai/mcp-server)
  2. Web Search MCP (remote HTTP)
  3. Web Reader MCP (remote HTTP)
  4. Zread MCP (remote HTTP)

It also includes scripts to read API key from environment variables, generate mcporter config, and run a smoke test.

Quick Start

From this skill directory:

export Z_AI_API_KEY="your_zai_api_key"
python3 scripts/setup_glm_mcp_servers.py --config ./tmp/mcporter-glm.json
python3 scripts/smoke_test_glm_mcp.py --config ./tmp/mcporter-glm.json

Smoke test report will be written to ./tmp/glm-mcp-smoke-report.json.

API Key Resolution

setup_glm_mcp_servers.py resolves API key from environment variables in this order:

  1. Z_AI_API_KEY
  2. ZAI_API_KEY
  3. GLM_API_KEY
  4. ZHIPU_API_KEY You can check key availability without exposing full token:
python3 scripts/get_zai_api_key.py --masked

Installed MCP Entries

The setup script writes these mcporter servers:

  • web-search-primehttps://api.z.ai/api/mcp/web_search_prime/mcp
  • web-readerhttps://api.z.ai/api/mcp/web_reader/mcp
  • zreadhttps://api.z.ai/api/mcp/zread/mcp
  • zai-vision → stdio npx -y @z_ai/mcp-server (with Z_AI_API_KEY, Z_AI_MODE=ZAI)

Validation Workflow

1) Inspect real schemas first

mcporter --config ./tmp/mcporter-glm.json list web-reader --schema --json
mcporter --config ./tmp/mcporter-glm.json list web-search-prime --schema --json
mcporter --config ./tmp/mcporter-glm.json list zread --schema --json
mcporter --config ./tmp/mcporter-glm.json list zai-vision --schema --json

2) Minimal call examples

mcporter --config ./tmp/mcporter-glm.json call web-search-prime.web_search_prime search_query="GLM-5.1 release notes"
mcporter --config ./tmp/mcporter-glm.json call web-reader.webReader url="https://example.com"
mcporter --config ./tmp/mcporter-glm.json call zread.get_repo_structure repo_name="microsoft/vscode"
mcporter --config ./tmp/mcporter-glm.json call zai-vision.analyze_image image_source="/path/to/image.png" prompt="Describe key elements"

Important Runtime Notes

  • Actual tool names can differ from docs examples. Always trust --schema output from live server.
  • Search tool currently exposes web_search_prime and requires search_query.
  • Zread calls require repo_name (not repo).
  • Web Reader may return anti-bot or verification content for protected pages (for example some WeChat links).

Troubleshooting

  • Tool not found: check exact tool name from mcporter ... --schema --json.
  • parameter error: verify argument names match schema exactly.
  • Empty/strange reader content: target page may block scraping or require interactive verification.
  • Vision local server issues: verify Node.js >= 22 and rerun with latest @z_ai/mcp-server.

Resources

  • Server matrix and endpoint notes: references/official-endpoints.md
  • Tested behavior record: references/test-report.md
  • Scripts: scripts/

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

Zero-API-Key Web Search

Zero-API-key free web search, browsing, and claim verification for AI agents. No API keys required. 100% free. Designed to reduce hallucination risk by surfa...

Registry SourceRecently Updated
1.4K2Profile unavailable
General

xiaohongshu-mcp-openclaw

当用户提到小红书/XHS/Rednote 并需要关键词搜笔记、看笔记详情、抓评论、统计点赞与评论数时使用。通过 xpzouying/xiaohongshu-mcp + mcporter 提供统一查询流程。

Registry SourceRecently Updated
2090Profile unavailable
General

VideoMemory

Start VideoMemory from OpenClaw and return the local UI link.

Registry SourceRecently Updated
1660Profile unavailable
General

vemem — visual entity memory

Visual entity memory — remember faces, objects, and places across sessions with persistent identity. Use when the user asks who is in an image, when you need...

Registry SourceRecently Updated
600Profile unavailable