Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MISTAKE_DBNoPath to the SQLite mistake bank database file. Use this to point to a different question bank file.

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": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
add_mistakeA

记录一道新错题。返回入库后的完整记录(含 id 和下次复习时间)。

add_mistakesA

批量录入错题(一次事务,任一条失败则全部回滚)。

get_mistakeB

按 id 取一道错题的完整内容。

search_mistakesB

按条件检索错题,返回 {total, count, items}。所有条件可组合。

update_mistakeA

局部修改错题(只改传入的字段,其它保持不变)。

list_dueA

取"现在该复习"的错题队列,按到期时间从早到晚排序。

record_reviewB

记录一次复习结果,并自动算出下次复习时间(SM-2 变体)。

get_statsC

学情快照:总量、今日到期数、分学科、状态分布、错因分布、薄弱知识点、近 7 天正确率。

get_analysisB

错题数据分析:正确率、错因分布、遗忘曲线、薄弱考点、卡死题、候选行动项。

list_tagsA

列出全部标签及每个标签下的错题数量(按数量降序)。

archive_mistakeA

归档或取消归档一道错题。归档后不出现在到期队列,但数据保留。

delete_mistakeA

物理删除一道错题及其复习历史。不可恢复,优先考虑 archive_mistake。

review_historyB

查看某道错题的复习流水(评分、间隔变化、时间)。

start_unitB

开一个学习单元(20 分钟起步,按时长升级规则逐步加长)。

log_attemptA

记录一道题的作答(对的错的都记)。周复盘的"独立完成率/首次正确率"靠它。

end_unitB

结束一个单元,补时长 / 中断次数 / 事后复述质量,并写日志、备份。

lesson_statusA

读取课程入口状态:未结束单元、最近完成单元、待同步、到期题和周计划。

lesson_checkpointB

保存课堂中的进度摘要、卡点和下一问;至少提供一项。

lesson_finishC

完整收尾单元:保存进度、下一步、周计划、日志和数据库快照。

lesson_syncC

为已结束单元重试日志、周计划和数据库快照。

search_attemptsC

检索作答流水(每道题的作答记录),按时间倒序。

get_practice_statsB

周复盘三指标:独立完成率 / 首次正确率 / 复习准时率,加单元数、时长、中断、复述。

list_unitsB

最近的单元列表(新→旧),每个带做题数、独立率、中断次数、复述质量。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.1/5.0

Scored across 23 tools

Disambiguation3/5

Most tools target distinct resources, but three analytics tools (get_stats, get_analysis, get_practice_stats) heavily overlap in reporting correctness, error distribution and weak points, and the lesson lifecycle tools (lesson_checkpoint, lesson_sync, end_unit, lesson_finish) all persist progress/logs/snapshots with subtle differences. add_mistake vs add_mistakes is a near-collision that relies on descriptions alone. Descriptions do help, but an agent can easily misselect within these clusters.

Naming Consistency4/5

The dominant pattern is clear snake_case verb_noun (add_mistake, get_mistake, update_mistake, delete_mistake, list_due, record_review, search_attempts). Deviations are minor: a lesson_* noun-first family (lesson_status, lesson_sync, lesson_finish) and review_history with no leading verb, plus the plural add_mistakes variant.

Tool Count3/5

23 tools is on the heavy side for a mistake-bank/study-tracker; the scope spans mistakes, reviews, tags, stats, units and attempts, so the count is partly justified. Still, several tools duplicate surface area (multiple stats endpoints, multiple lesson-finalization endpoints) rather than each earning a unique place.

Completeness4/5

Core lifecycle is well covered: create (single and batch), read, search, partial update, archive/unarchive, delete, due queue, review recording and history, plus unit/attempt tracking and analytics. Minor gaps remain: tags can only be listed, with no create/rename/delete tag operations, and there is no bulk update or export.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues