Record a Decision
record_decision is one of the 32 MCP tools in Weft, the AI task manager you run by talking to Claude, Cursor, Codex or ChatGPT through one MCP endpoint. One tool, two uses, one table of record. (1) Relay a verdict you gave in conversation about finished work waiting on you — approved, send it back, drop it, later — clearing the card from the review queue; the entry is stored as relayed rather than as you acting in the app, and that difference is kept visible on purpose. (2) Record a standalone decision worth remembering — 'chose Neon over Supabase', a lesson learned — as an immutable MADR-lite record with the options weighed and the condition to revisit under. Records are never edited: a new decision with supersedesId replaces an old one, and the old one stays readable as what it said the day it was made. These records are what get_context serves back to every agent next week.
Weft 是為獨立創業者和小團隊打造的 AI 任務管理工具。
工具參考文件以英文維護:工具名稱、參數與範例在每種語言中都相同。
參數
| 名稱 | 型別 | 必填 | 說明 |
|---|---|---|---|
| id | uuid | 否 | Verdict relay: task id the decision is about. |
| decision | 'accepted' | 'rework' | 'dropped' | 'deferred' | 否 | Verdict relay: what you said. |
| note | string | 否 | Your words — needed in substance for rework, since the executor acts on it. |
| title | string | 否 | Standalone record: the decision, named. Required with outcome. |
| outcome | string | 否 | Standalone record: the choice, stated as a sentence. |
| kind | 'madr' | 'lesson' | 否 | Defaults to 'madr'; 'lesson' for a lesson learned. |
| status | 'proposed' | 'accepted' | 'rejected' | 'deprecated' | 否 | Defaults to 'accepted'. |
| context | string | 否 | What was true that forced a choice. |
| options | { title, pros?, cons? }[] | 否 | The options actually weighed — not a retrofit. |
| consequences | string | 否 | What follows from the choice, good and bad. |
| confirmation | string | 否 | The condition under which to revisit this decision. |
| supersedesId | uuid | 否 | A prior decision this one replaces. The old record stays, marked superseded. |
| project | string | 否 | Project this decision belongs to — name or id. |
| taskId | uuid | 否 | A task a standalone decision is about, if any. |
回傳
The verdict path: the task with the decision recorded and the queue size after it. The record path: the immutable decision entry.
註記
預設的寫入工具。這個工具會變更狀態;只要清楚使用者要什麼,MCP 客戶端可以自行呼叫。客戶端是否要求確認,由客戶端自行決定;Model Context Protocol 規格建議讓人參與其中,並保有拒絕工具呼叫的能力。
範例
使用者說的話:
"We're going with Neon over Supabase — write that down with the reasoning."相關
- 全部 32 個 MCP 工具 — 目錄檢視。
- 梭子 — AI 客戶端如何使用這些工具。
- 用你自己的客戶端呼叫這個工具:參考設定指南,或直接打
https://letsweft.com/api/mcp。