Skip to main content
Glama

add_flashcard

Add a flashcard with front/back text to a deck. The server sets up the spaced-repetition schedule, so the card is ready for review.

Instructions

添加一张闪卡; FSRS state 由 server 初始化.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
backYesback=答案,≤3 句。纯文本渲染(不解析 markdown/LaTeX)。注意:这与课文 :::concept-flip 块的 Front/Back 语义不同,勿混。
tagsNo可选;必须是字符串数组,例如 ["GDP"]——不要传裸字符串 "GDP"
frontYesfront=勾起回忆的问题/场景。纯文本渲染(不解析 markdown/LaTeX)。注意:这与课文 :::concept-flip 块的 Front/Back 语义不同,勿混。
deck_idYes必填;自由字符串;同名自动归入同一卡组;是卡片列表的分组主键。course/topic 级 deck 合法且推荐——间隔复习(FSRS)按主题混抽效果更好,不必"一课一卡组"。出处不要塞进 deck 名——每张卡该挂的是 concept_id (经 concept→lesson 链路追溯出处),deck_id 只管"按什么主题混抽复习"。
concept_idNo推荐每张卡都挂——deck_id 不再承载"出处"语义(course/topic 级 deck 是合法归组),concept_id 经 concept→lesson 链路才是这张卡出处可追溯的锚点。可选;若传入必须是已存在的 concept id(server 会查存在性),省略则不挂概念(verify_prep 会警告)
idempotency_keyNo可选。幂等键 (建议 uuid) —— 同一 key 重放此调用返回首次结果, 不重复写入. 网络重试/断线重连时带上同一个 key, 而不是猜"上次到底写没写".
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden of behavioral disclosure, but only states that FSRS state is initialized by the server. Other important behavioral traits (e.g., idempotency behavior, plain-text rendering, concept_id existence check, grouping semantics) are left to the schema descriptions, not the tool description. This falls short of full transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is one short, front-loaded sentence that immediately conveys the core purpose. It is appropriately concise but lacks additional context that would make it more useful. No word is wasted, but the brevity limits its overall contribution.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite having 6 parameters and no output schema or annotations, the description is extremely minimal. It does not explain what a flashcard is, how it relates to other entities, or what the expected result/return value is. The schema descriptions partially compensate, but the overall description is incomplete for a tool of this complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% parameter description coverage, so the baseline is 3. The tool description itself adds no parameter information beyond what the schema already provides. However, the schema descriptions are quite rich, so the baseline is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description '添加一张闪卡' clearly states the action (add) and the resource (flashcard), using a specific verb+resource format that directly distinguishes it from sibling tools like update_flashcard. The added note about FSRS state initialization further clarifies the tool's scope.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. There is no mention of prerequisites, exclusions, or recommendations. Although parameter schemas include some usage hints (e.g., deck_id guidance), the tool description itself offers no such direction.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sf-shenfeng/learn-shell'

If you have feedback or need assistance with the MCP directory API, please join our Discord server