Skip to main content
Glama
hxyz486

police-legal-agent

by hxyz486

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoHTTP service port.8888
LAWS_DIRNoDirectory containing the law TXT files (knowledge base source).<repository>/laws
CONSENSUSNoBatch risk assessment reliability switch: dual-vote consensus.1
LLM_MODELNoText model name (can be auto-discovered).
RULE_MODENoRule-based fallback layer when no model is available: auto/on/off.auto
FLUSH_EVERYNoBatch risk assessment reliability switch: atomic flush interval (items).20
LLM_API_KEYNoAPI key for the text model. If not set, the service still starts: QA falls back to the deterministic rule-based synthesis layer and risk assessment returns a degraded structure.
LLM_API_URLNoText model API URL (OpenAI-compatible gateway).
LLM_RETRIESNoNumber of LLM call retries.3
LLM_TIMEOUTNoLLM call timeout.240
MAX_WORKERSNoNumber of concurrent threads for batch assessment.4
PRESET_FILENoOptional preset answer library; if the file is missing, normal RAG is used.<repository>/preset/preset_answers.json
RETRY_FAILEDNoBatch risk assessment reliability switch: retry failed items.1
LLM_MAX_TOKENSNoMaximum tokens per LLM call.2048
RERANK_API_KEYNoAPI key for the rerank model.
RERANK_API_URLNoRerank model API URL; if unavailable, reranking degrades to coarse ranking.
RISK_GROUNDINGNoSwitch for law-article grounding during risk assessment (0 = restore original assessment behavior).1
VERIFY_NO_RISKNoBatch risk assessment reliability switch: no-risk verification.1
EMBEDDING_API_KEYNoAPI key for the embedding model.
EMBEDDING_API_URLNoEmbedding model API URL; if unavailable, retrieval automatically degrades to keyword search.
RISK_GROUNDING_TOP_KNoNumber of grounding law articles.3

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources