Công việc · 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 là trình quản lý công việc bằng AI cho nhà sáng lập độc lập và nhóm nhỏ.

Tài liệu tham khảo công cụ được duy trì bằng tiếng Anh: tên công cụ, tham số và ví dụ là như nhau trong mọi ngôn ngữ.

Tham số

TênKiểuBắt buộcMô tả
iduuidkhôngVerdict relay: task id the decision is about.
decision'accepted' | 'rework' | 'dropped' | 'deferred'khôngVerdict relay: what you said.
notestringkhôngYour words — needed in substance for rework, since the executor acts on it.
titlestringkhôngStandalone record: the decision, named. Required with outcome.
outcomestringkhôngStandalone record: the choice, stated as a sentence.
kind'madr' | 'lesson'khôngDefaults to 'madr'; 'lesson' for a lesson learned.
status'proposed' | 'accepted' | 'rejected' | 'deprecated'khôngDefaults to 'accepted'.
contextstringkhôngWhat was true that forced a choice.
options{ title, pros?, cons? }[]khôngThe options actually weighed — not a retrofit.
consequencesstringkhôngWhat follows from the choice, good and bad.
confirmationstringkhôngThe condition under which to revisit this decision.
supersedesIduuidkhôngA prior decision this one replaces. The old record stays, marked superseded.
projectstringkhôngProject this decision belongs to — name or id.
taskIduuidkhôngA task a standalone decision is about, if any.

Trả về

The verdict path: the task with the decision recorded and the queue size after it. The record path: the immutable decision entry.

Chú thích

Công cụ ghi mặc định. Công cụ thay đổi trạng thái; client MCP có thể tự gọi khi đã biết người dùng muốn gì. Việc có hỏi xác nhận hay không là lựa chọn của client; đặc tả Model Context Protocol khuyến nghị luôn có con người trong vòng lặp, với khả năng từ chối các lượt gọi công cụ.

Ví dụ

Người dùng nói:

"We're going with Neon over Supabase — write that down with the reasoning."

Liên quan