Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PATHNoEnvironment path to ensure the humane-proxy CLI is executable/app/.venv/bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
GROQ_API_KEYNoGroq API Key for Stage 3 Reasoning (LlamaGuard)
OPENAI_API_KEYNoOpenAI API Key for Stage 3 Reasoning (OpenAI Moderation or Chat)
HUMANE_PROXY_PORTNoProxy port8000
HUMANE_PROXY_ADMIN_KEYNoBearer token for securing the /admin endpoints
HUMANE_PROXY_ENABLED_STAGESNoActive stages as a JSON array string (e.g., '[1, 2, 3]')[1]
HUMANE_PROXY_RISK_THRESHOLDNoScore threshold for criminal_intent escalation0.7
HUMANE_PROXY_STAGE1_CEILINGNoEarly exit after Stage 1 if score is below this threshold0.3
HUMANE_PROXY_STAGE2_CEILINGNoEarly exit after Stage 2 if score is below this threshold0.4
HUMANE_PROXY_STAGE3_TIMEOUTNoStage 3 timeout in seconds10
HUMANE_PROXY_STAGE3_PROVIDERNoStage 3 provider (auto, openai_moderation, llamaguard, openai_chat, none)auto

Capabilities

Features and capabilities supported by this server

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

Tools

Functions exposed to the LLM to take actions

NameDescription
check_message_safetyA

Classify a message for self-harm or criminal intent.

Parameters

message: The user message to classify. session_id: Optional session identifier for trajectory tracking.

Returns

dict {"safe": bool, "category": str, "score": float, "triggers": list, "stage_reached": int, "should_escalate": bool, ...}

get_session_riskA

Return the current risk trajectory for a session.

Parameters

session_id: The session identifier to query.

Returns

dict {"spike_detected": bool, "trend": str, "window_scores": list, "category_counts": dict, "message_count": int}

list_recent_escalationsA

Return recent escalation events from the audit log.

Parameters

limit: Maximum number of events to return (default 20). category: Filter by category ("self_harm" or "criminal_intent"). Omit for all categories.

Returns

list[dict] List of escalation records.

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/Vishisht16/Humane-Proxy'

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