grammar-kb-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GRAMMAR_KB_DB | No | Path to the SQLite database file. Defaults to 'data/grammar.db' in the running directory. | data/grammar.db |
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 | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| search_knowledge_pointsB | 按关键词检索语法知识点。 参数: query: 关键词(中文或英文,如 "现在完成时"、"主将从现"、"since")。 category: 可选,限定大类:词法/句法/时态/语态/非谓语/综合复习。 limit: 最多返回条数。 返回:知识点列表(标题、所在讲次、分类、标签)。 |
| get_knowledge_pointA | 按 id 获取单个知识点的完整 markdown(含解释、例句、表格、溯源)。 |
| get_lecture_markdownB | 获取某讲的完整 markdown 讲义(标题/正文/表格已还原为 GFM)。 例如 number=25 返回"第二十五讲 动词时态3"的完整 md。 |
| list_lecturesA | 列出已导入的全部讲次(讲号、标题、分类)。 |
| list_markersA | 列出标志词/关键词,可溯源到讲次。 默认返回所有时态关键词(category="时态")。 可用 tense 限定具体时态,如 tense="现在完成时"。 |
| find_by_relationB | 按关系类型查知识点,如 relation_type="主将从现"、"时态呼应"。 |
| statsC | 返回知识库统计(讲次/知识点/标志词数量,按类别分布)。 |
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 7 tools
Each tool has a clearly distinct retrieval purpose: search, get by id, get lecture markdown, list lectures, list markers, find by relation, and stats. Overlap between search_knowledge_points and list_markers is minimal because markers are a specific entity type with their own filters.
Most tools follow a consistent verb_noun pattern (search_, get_, list_, find_by_). 'stats' is a minor deviation as a bare noun, but the overall naming remains predictable and readable.
7 tools is well-scoped for a knowledge base retrieval server. Each tool serves a clear function without redundancy, fitting comfortably within the ideal 3-15 range.
Core retrieval operations are covered: search, get by id, get lecture, list lectures, list markers, find by relation, and stats. Minor gaps exist, such as no direct way to list all knowledge points without a search term or to filter markers by lecture, but agents can work around these.