Loci
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
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
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| memory_saveA | 保存一条记忆到本地共享记忆库(跨 Agent 可见)。返回写回回执:写了哪条 / 归到哪 / 出自哪 / 怎么撤 —— 请把回执转述给用户,没有任何东西会静默进入长期记忆 |
| memory_searchB | 语义检索本地记忆库(中文 bigram + 英文混合检索) |
| memory_listC | 列出最近的记忆 |
| memory_deleteB | 删除一条记忆(软删除) |
| memory_statsB | 记忆库统计信息(总数/按类型/按项目/按来源Agent) |
| memory_handoffB | 生成项目交接卡(markdown),切换到另一个 Agent 时注入上下文用 |
| session_saveB | 归档一次对话原文(会话层)。把当前对话保存进本地库,其他 Agent 之后可检索复现 |
| session_recallB | 检索历史对话原文(会话层),返回当时的原话片段——用于在新 Agent 里复现旧对话上下文 |
| memory_contextA | 获取常驻上下文包(建议每次对话开始时调用):常驻记忆 + 近期重点记忆,一次拿齐跨 Agent 共享的上下文。输出顺序固定(常驻在前、近期在后),便于模型商前缀缓存命中、省 token |
| memory_pinA | 把一条记忆设为常驻(始终随 memory_context 返回)或取消常驻 |
| panel_openA | 打开 Loci 网页面板(看记忆 / 会话原文 / 交接卡 / 库)。只在用户明确想看面板时才调用(例如用户说「打开 Loci 面板」「我想看看我的记忆」);平时不要主动调、也不要每轮对话都调 —— 默认情况下面板不会自己弹出来 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 11 tools
Each tool has a distinct layer+action scope: memory_* tools target the memory store, session_* tools target archived conversation text, and panel_open is a UI action. The only mild overlaps are memory_list vs memory_context (recent vs resident context) and memory_handoff vs memory_context, but the descriptions clarify their different outputs and use cases.
Nearly all tools follow a predictable domain_action pattern (memory_save, memory_search, session_save, session_recall). Minor deviation: verbs mix actions (save/list/search) with nouns (stats/context/handoff), though it stays readable and consistent in style.
11 tools is well-scoped for a cross-agent memory system, covering listing, saving, searching, deleting, stats, pinning, context retrieval, session archive/recall, handoff, and panel access. Each tool earns its place with no obvious redundancy.
Strong lifecycle coverage across both memory and session layers, including soft delete and pin/unpin toggle. The notable gap is a memory_update/edit operation — editing requires delete-then-save — and there is no direct get-by-id retrieval, but core workflows are covered.