任务 · MCP

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 任务管理工具。

工具参考文档只用英文维护:工具名称、参数和示例在每种语言下都完全相同。

参数

名称类型必填说明
iduuid否Verdict relay: task id the decision is about.
decision'accepted' | 'rework' | 'dropped' | 'deferred'否Verdict relay: what you said.
notestring否Your words — needed in substance for rework, since the executor acts on it.
titlestring否Standalone record: the decision, named. Required with outcome.
outcomestring否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'.
contextstring否What was true that forced a choice.
options{ title, pros?, cons? }[]否The options actually weighed — not a retrofit.
consequencesstring否What follows from the choice, good and bad.
confirmationstring否The condition under which to revisit this decision.
supersedesIduuid否A prior decision this one replaces. The old record stays, marked superseded.
projectstring否Project this decision belongs to — name or id.
taskIduuid否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."

相关