Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
TRINITAS_DATA_DIRNoBase directory for local datadata
TRINITAS_MEMORY_DBNoSQLite memory path{TRINITAS_DATA_DIR}/trinitas_memory.db
PROVIDER_REGISTRY_URLNoRegistry document URLGitHub Pages registry.json
PROVIDER_REGISTRY_BASENoRegistry base for future detail fetchesGitHub Pages base URL
REGISTRY_CACHE_TTL_SECONDSNoIn-memory registry cache TTL60

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
store_dialog_turnA

Store a single dialog turn in persistent session memory.

Persists a message (user, assistant, system, or tool) for later retrieval and context assembly. Metadata can hold arbitrary JSON-serializable context such as model name, tool calls, or review state.

Args: session_id: Unique conversation session identifier. role: Speaker role (e.g. user, assistant, system). content: Message text content. metadata: Optional key-value context attached to this turn.

Returns: JSON string with the stored turn record including assigned id.

retrieve_recent_contextA

Retrieve the most recent dialog turns for a session.

Returns turns in chronological order (oldest first) so they can be directly used as LLM context.

Args: session_id: Conversation session to query. limit: Maximum number of recent turns to return (default 10).

Returns: JSON string with session id, turn count, and turn list.

search_memoryA

Search dialog memory within a session by text substring.

Performs a case-insensitive LIKE search over turn content and roles. Suitable for finding earlier mentions of topics, decisions, or entities.

Args: session_id: Conversation session to search. query: Substring to match in content or role. limit: Maximum results to return (default 20).

Returns: JSON string with matching turns, newest first.

route_best_modelA

Recommend the best AI provider for a given task type.

Uses the public kbarbel640-del/ai-provider-registry to score providers by capability match, free-tier preference, and known provider strengths.

Args: task_type: Task category — chat, code, reasoning, vision, search, embeddings, image, or tools. constraints: Optional routing constraints: - prefer_free (bool): Prefer free-tier providers. - exclude_providers (list[str]): Provider ids to skip. - api_style (str): Required API style (e.g. openai).

Returns: JSON string with top recommendation and up to four alternatives.

list_available_providersA

List all providers from the AI Provider Registry.

Fetches the live registry document and returns provider summaries including id, api_style, free-tier status, and supported capabilities.

Returns: JSON string with registry metadata and provider list.

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/kbarbel640-del/trinitas-mcp'

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