Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OPENAI_API_KEYNoOpenAI API key (used in YAML config with ${OPENAI_API_KEY})
OPENROUTER_KEYNoOpenRouter API key (used in YAML config with ${OPENROUTER_KEY})
POLYBRAIN_DEBUGNoEnable debug logging to stderr
POLYBRAIN_API_KEYNoAPI key
POLYBRAIN_BASE_URLNoLLM API base URL
POLYBRAIN_HTTP_PORTNoServer port32701
POLYBRAIN_LOG_LEVELNoLog levelinfo
POLYBRAIN_MODEL_NAMENoModel name
POLYBRAIN_CONFIG_PATHNoCustom config file path

Tools

Functions exposed to the LLM to take actions

NameDescription
chat

Send a message to an available LLM for help, second opinions, or brainstorming; start new conversations, continue existing ones, or switch models mid-chat. In the first message you shall provide as much context as possible, since the model has no idea of the problem.

Example workflow:

  1. chat(message: "hello", modelId: "gpt-5-mini") → conversationId: "abc1"

  2. chat(message: "follow-up", conversationId: "abc1") → conversationId: "abc1" (continues)

  3. chat(message: "same question", conversationId: "abc1", modelId: "deepseek-r1") → conversationId: "xyz9" (cloned with new model)

list_models

Get all the models you can chat with. Each model has different strengths and expertise. Call this first to see which model is best for your question, or to find a specific model ID to use in the chat tool.

conversation_history

See what you've already discussed with a specific model. Useful for understanding context before continuing a conversation, reviewing advice you got, or checking previous responses. Long conversations are automatically shortened to save context.

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/danielwpz/polybrain-mcp'

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