Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CHAT_MODELNoModel namegpt-4o
CHAT_MODEL_API_KEYYesAPI key for the LLM provider (required)
CHAT_MODEL_BASE_URLNoCustom API base URL (optional)
CHAT_MODEL_PROVIDERNoProvider: openai, anthropic, google_genai, ollamaopenai
CHAT_MODEL_SUPPORTS_VISIONNoOverride vision detection (true/false, empty = auto)

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
create_sessionA

Creates an isolated sandbox environment (Docker container).

The sandbox starts empty — specify ALL needed packages in dependencies.
For data analysis, always include pandas and numpy.

Args:
    language: Sandbox language/runtime. Use "python", "node", or "r".
    dependencies: Packages to pre-install. Keys are package names,
        values are version strings (use "" for latest). Always use strings,
        never numbers — e.g. "2.2" not 2.2. Null/None is treated as "".
        Example: {"pandas": "", "numpy": "1.26", "matplotlib": "3.9.0"}.

Returns:
    JSON with session_id and session info.
execute_codeA

Executes code in the sandbox. State persists across calls (like Jupyter cells).

Args:
    session_id: ID returned by create_session.
    code: Code to execute (Python, Node.js, or R, depending on the session runtime).
    timeout: Max execution time in seconds (max 300). Defaults to 30.

Returns:
    JSON with success, stdout, stderr, result, error, and display_outputs.
execute_terminalA

Runs a shell command inside the sandbox.

Useful for listing files, installing Linux dependencies, etc.

Args:
    session_id: ID returned by create_session.
    command: Shell command to execute (e.g. "ls -la", "apt-get install -y curl").

Returns:
    JSON with stdout, stderr, and exit_code.
import_filesA

Imports files into the sandbox from host or from another session.

Each entry can be:
- Host path: "source" (host path), optional "destination"
- Cross-session: "session_id" (source session), "path" (container path),
  optional "destination" — file must have been exported from that session.

Args:
    session_id: ID returned by create_session (destination).
    files: List of file objects. Examples:
        [{"source": "/tmp/report.pdf", "destination": "report.pdf"}]
        [{"session_id": "abc123", "path": "/workspace/out.csv", "destination": "out.csv"}]

Returns:
    JSON with per-file results (source, destination, success, size, error).
export_filesA

Registers files for download and cross-session import (no host copy).

Files become available via the API download endpoint and for import_files
in other sessions. Result includes download_url for each file (API must
be running).

Args:
    session_id: ID returned by create_session.
    files: List of objects with "source" (path in container).
        Example: [{"source": "report.pdf"}, {"source": "/workspace/data.csv"}]

Returns:
    JSON with per-file results (session_id, path, success, size, error,
    download_url). path is always absolute (e.g. /workspace/file.png).
stop_sessionA

Stops and removes the sandbox completely. Use when done with a session.

Args:
    session_id: ID returned by create_session.

Returns:
    JSON with success status.

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/eduresser/sandbox-agent'

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