Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SRELAY_PROJECT_ROOTNoExplicitly specifies the project root so the server does not depend on the subprocess working directory (useful when PATH resolution fails, the client does not set cwd, or you want to pin one of several projects).

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

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
search_sessionsA

搜索本项目的历史会话记忆。何时用:用户问"之前/上次/为什么当时/我们讨论过吗"、接手项目需要背景、实现前确认已有决策、报错排查怀疑有历史结论。何时不调:纯新问题、当前对话刚说过的内容

get_session_detailA

取某会话的消息(可按角色过滤、限制范围与长度)。默认安全:最多 20 条 × 1000 字 ≈ 20KB。要更多请显式传 start_msg/end_msg 或 max_chars。session_id 支持前缀

list_sessionsB

按过滤条件列出本项目会话(scope 生效)

get_decisionsC

本项目全部已确认技术决策(带出处,可回跳)

get_file_historyC

某文件路径被哪些会话讨论过(跨 agent)

get_unresolvedC

会话中提出但(启发式判定)未解决的问题

get_statsA

本项目记忆库统计(会话数/状态/来源/体积/当前 scope)。开始处理项目任务前可调用,了解记忆库规模与覆盖范围

set_scopeA

收得太紧时的放宽通道:mode:"full" 解除裁剪(隐私 ignore 永不受影响);或设置新过滤条件

annotate_sessionA

为会话添加/移除标签、设置人工摘要(进入检索索引)。这是元数据编辑,不改写对话内容

save_noteB

把结论/备忘写入项目记忆(source=note,origin=manual,立即确认并提取)。笔记中的决策句式会直接进入决策库

export_handoffB

生成 .hop 交接包(sha256 完整性 + 默认脱敏)或 HANDOFF.md。默认尊重当前 scope

import_handoffA

导入 .hop 交接包:sha256 全量校验 + 归化到当前项目。经 AI 发起的导入默认走隔离模式(只入元数据与摘要,正文待 release)

release_quarantineB

把隔离导入的会话正文放行入库(用户确认后使用)

link_sessionsB

把两个会话建立关联(continues=延续 / related=相关 / pinned=挂载),供 get_linked_sessions 与跨会话追溯

get_linked_sessionsB

某会话的全部关联(双向:它指向的 / 指向它的),带 kind 与方向

suggest_related_sessionsA

推荐与某会话主题相关的其他历史会话(算法发现,非显式关联)。何时用:正在看一个会话想知道"还有哪些相关讨论"、开新会话前想找可 attach 的历史、记不清关键词搜不到时以会话为锚找线索。注意:推荐仅为导航线索,内容以 get_session_detail 为准

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.4/5.0

Scored across 16 tools

Disambiguation4/5

Most tools target a clearly distinct action+resource (export/import handoff, save_note, link_sessions, get_decisions, get_stats), and descriptions explicitly state when to use and when not to call each one. The only mild overlap is the discovery trio (search_sessions, suggest_related_sessions, list_sessions) and get_linked_sessions vs suggest_related_sessions, but the keyword-vs-algorithmic-vs-filter distinction is spelled out well enough to disambiguate.

Naming Consistency5/5

All 16 names follow a consistent snake_case verb_noun pattern (export_handoff, annotate_session, save_note, get_session_detail, list_sessions, set_scope). Verbs are used predictably: get_/list_ for reads, save_/annotate_/link_/set_ for writes, export_/import_ for package transfer.

Tool Count4/5

16 tools is at the upper end of the ideal 3-15 range but each maps to a real capability in the session-memory/handoff lifecycle rather than being redundant. A few could arguably be folded (set_scope as a config tool, get_linked_sessions into get_session_detail), so it is slightly heavy but reasonable.

Completeness4/5

The surface covers the core lifecycle: capture (save_note, annotate_session), retrieve (search_sessions, get_session_detail, list_sessions, get_decisions, get_file_history, get_unresolved), link/graph, and handoff transfer with quarantine release. Gaps are minor: no delete/forget operation for sessions, notes or decisions, and no explicit add_decision tool (decision capture is only implicit via save_note).

Maintenance

ActivityActive
ResponsivenessUnresponsive