Skip to main content
Glama

update_flashcard

Patch existing flashcard content (front, back, deck) without resetting FSRS review schedule. Fix card text or move cards between decks while keeping progress.

Instructions

修订已有闪卡的内容字段 (front / back / deck_id) — 纯 patch 语义, 只改给出的字段, 不建 revision 快照 (同 update_concept 先例)。编辑卡面不影响复习计划: FSRS 调度状态 (fsrs_state 的 due_at/stability/difficulty/review_count 等) 与 paused 原样保留, 改内容不清进度、不重置排期。只能改当前 pair 的卡, 其他 pair (或不存在) 的卡一律 NOT_FOUND。验尺/复盘抓到卡面问题后走这里修, 不必删卡重建 (重建才会丢调度进度)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
backNo可选; 新的答案, ≤3 句, 纯文本渲染 (不解析 markdown/LaTeX), 同 add_flashcard 口径。
frontNo可选; 新的卡面问题。front=勾起回忆的问题/场景, 纯文本渲染 (不解析 markdown/LaTeX), 同 add_flashcard 口径。
deck_idNo可选; 移入的卡组 (自由字符串, 同名自动归组)。deck 语义纪律见 add_flashcard 的 deck_id 说明 — 出处不塞 deck 名, deck 只管"按什么主题混抽复习"。
flashcard_idYes必填; 要修订的闪卡 id (fc_ 前缀), 须属当前 pair
idempotency_keyNo可选。幂等键 (建议 uuid) —— 同一 key 重放此调用返回首次结果, 不重复写入. 网络重试/断线重连时带上同一个 key, 而不是猜"上次到底写没写".
Behavior5/5

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

With no annotations, the description carries the full burden and excels: it discloses pure patch semantics (only given fields changed), no revision snapshot, preservation of FSRS scheduling state and paused flag, no progress reset, and NOT_FOUND for other/nonexistent pairs. This gives the agent a complete picture of the tool's side effects.

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 a single block of several sentences, but each sentence provides a distinct piece of information: purpose, behavior, constraints, and usage context. It is front-loaded and not wastefully verbose, though it is longer than strictly necessary, earning a 4 rather than 5.

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

Completeness4/5

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

Given no annotations and no output schema, the description comprehensively covers purpose, parameter semantics, behavioral constraints, error condition (NOT_FOUND), and usage timing. The only gap is no mention of return values, but this is not critical for an update tool and the description is otherwise thorough.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3. The description adds value by clarifying patch semantics — only provided fields are modified — and referencing update_concept precedent, which goes beyond the schema's simple 'optional' labels. This meaningfully aids parameter handling.

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 explicitly states it revises existing flashcard content fields (front/back/deck_id) using pure patch semantics. It clearly differentiates from add_flashcard and delete-recreate workflows, and references update_concept as a precedent, making the purpose unambiguous.

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

Usage Guidelines5/5

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

The description provides explicit when-to-use guidance: after verification/review catches card face issues, and explicitly advises against delete-and-rebuild, noting that rebuilding loses scheduling progress. It also states the constraint that only the current pair's cards can be modified, setting clear boundaries.

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