Skip to main content
Glama

save_card

Convert resolved debugging sessions, explained concepts, and decisions into concise memory cards with symptoms, checks, and root causes. Enable future retrieval when problems recur.

Instructions

当一段 AI 协作产生了值得用户长期记住的内容时调用此工具沉淀成卡。三种类型: 触发时机:①解决完 bug/讲懂概念/做完决策后主动调用;②用户说「存一下」「今天就到这」「收尾」时,回看全对话把值得留的全部蒸馏存卡(可多张)。 type=debug(默认):解决了一个 bug/报错。symptom=症状一句话;checks=下次遇到同样症状的首查步骤(2-4条);rootCause=根因一句话。 type=knowledge:用户不懂某概念/知识,经 AI 讲解后弄懂了。symptom=问题或概念一句话(如"什么是MVCC");checks=理解的要点/记忆钩子(2-4条);rootCause=最终结论一句话。 type=decision:做了一个技术/产品决策。symptom=要决策的问题;checks=主要考量因素;rootCause=最终结论及理由。 anchors=知识锚点(1-4个词,尽量复用库中已有锚点命名,服务端自动归并相似锚点)。 请在调用前根据整段对话自行蒸馏字段(本工具核心价值:把几万字过程压成百字结论)。 存卡后向用户展示一行确认:"已存卡: → <checks[0]>(可丢弃)"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ctxNo当时的坐标(解决"找不到当时的卡"):project=项目名、file=文件路径,都可选。存卡时自动带上当时的上下文,以后可按"那个项目的问题"检索
typeNo卡类型,默认 debug
storyNo当时的处境一句话(≤40字),写场景不写解法,帮三个月后的你唤起现场。可选
checksYes首查路径或理解要点 2-4 条,每条动词开头一行一步不超15字
sourceNo来源标识,如 trae 会话主题(可选)
anchorsYes知识锚点 1-4 个
exampleNo精选示例:一段最有代表性的代码/SQL/报错原文(≤300字)。复习流不展示,详情里折叠可查。可选
symptomYes症状/问题/决策点,一句话
rootCauseYes根因/结论,一句话

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It explains the tool's core value (compressing a long conversation into a short card), discloses that anchors are automatically merged server-side, and specifies a post-call confirmation message to show the user. This is behaviorally informative without annotations.

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 front-loaded with purpose and trigger timing, followed by a clean type-by-type breakdown. It is fairly long, but the length is justified by the need to define three distinct card types and their field semantics. A slightly tighter structure could improve scannability, but there is little waste.

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

Completeness5/5

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

For a creation tool with 9 parameters, 4 required, and no output schema, the description covers what the tool does, when to trigger it, how to map conversation content into fields, and what to output after saving. It also explains the optional ctx coordinates and the anchoring behavior, so an agent has enough context to invoke it correctly.

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

Parameters5/5

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

Although schema coverage is 100%, the description adds substantial meaning beyond the schema: it maps each card type to specific field interpretations, gives constraints like checks 2-4 items with verb-first steps, anchors 1-4 words, and clarifies that symptom/checks/rootCause mean different things per type. This is far beyond a baseline schema-only definition.

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 opens with a specific verb and resource: '沉淀成卡' (distill into a card) when AI collaboration produces content worth long-term memory. It further defines three concrete card types (debug, knowledge, decision), making the tool's purpose unambiguous and distinct from sibling tools like search_cards, review_card, or delete_card.

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

Usage Guidelines4/5

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

The description gives explicit trigger conditions: call proactively after solving a bug, explaining a concept, or making a decision; also trigger on user phrases like '存一下', '今天就到这', or '收尾'. It covers when to use the tool well, though it does not explicitly state when not to use it or name alternative sibling tools.

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