Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MAX_TOKENSNoMaximum generation tokens (some models have lower limits)8192
MODEL_NAMENoOverride model name (provider-specific)
CUSTOM_PATHNoAPI path for custom endpoint/chat/completions
ZHIPU_API_KEYNoAPI key for Zhipu (GLM-4.6V)
CUSTOM_API_KEYNoAPI key for custom OpenAI-compatible endpoint
MODEL_PROVIDERNoModel provider: zhipu, siliconflow, qwen, volcengine, hunyuan, customzhipu
CUSTOM_BASE_URLNoBase URL for custom endpoint (e.g., https://your-endpoint.com/v1)
HUNYUAN_API_KEYNoAPI key for Hunyuan (Hunyuan-Vision-1.5)
CUSTOM_MODEL_NAMENoModel name for custom endpoint
CUSTOM_TIMEOUT_MSNoTimeout in milliseconds for custom endpoint60000
DASHSCOPE_API_KEYNoAPI key for Qwen (DashScope)
BASE_VISION_PROMPTNoCustom base vision prompt
CUSTOM_AUTH_HEADERNoAuth header type: bearer, x-api-key, custombearer
VOLCENGINE_API_KEYNoAPI key for Volcengine (Doubao-Seed-1.6)
SILICONFLOW_API_KEYNoAPI key for SiliconFlow (DeepSeek-OCR)
CUSTOM_THINKING_MODENoThinking mode: disabled, openai, qwen_extra_bodydisabled
CUSTOM_AUTH_HEADER_VALUENoCustom auth header template (e.g., 'X-API-Key: {{key}}')

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
image_understandA

图像理解工具:

  • 何时调用:当用户提到“看图、看截图、看看这张图片/界面/页面/报错/架构/布局/组件结构/页面结构”等需求,或者在对话中出现图片附件并询问与图片内容相关的问题(包括 UI/前端界面结构、代码截图、日志/报错截图、文档截图、表单、表格等),都应优先调用本工具,而不是只用文本推理。

  • 图片来源:1) 用户粘贴图片时直接调用,无需手动指定路径 2) 指定本地图片路径,如 ./screenshot.png 3) 指定图片 URL,如 https://example.com/image.png。

  • 提示词(prompt)约定:

    • 不要在调用本工具前自己构造一大段复杂分析提示词;

    • 直接把“用户关于图片的原始问题/指令”作为 prompt 传入即可,例如:

      • “这张图是什么界面?整体结构是什么样的?”

      • “帮我从前端实现角度拆解这个页面的布局和组件结构”;

    • Luma 会在服务器内部自动拼接系统级视觉说明和分析模板,调用底层视觉模型完成完整理解;

    • 你只需要确保 prompt 准确表达用户对这张图想了解的内容,无需重复描述图片细节或编写长篇提示词。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/JochenYang/luma-mcp'

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