Skip to content
DFL / MCP
esc
↑↓navigate ↵open ⌘↵copy tool name

Plans

Search, read, author, and triage plans on plans.devfellowship.com — the DFL planning system (plans, ADRs/decision records, and the questions/DTQ surface). This MCP wraps the same REST backend the web UI and the read-plan/search-plans/publish-plan skills use, so there is one backend and one visibility policy.

Connector
https://mcp.devfellowship.com/mcp
Tools
43 in 8 groups
Package
packages/dfl-mcp-plans
Auth
Sign in once on the DFL connector. Every call runs as you, under RLS and your IAM role. See Auth & security.

Connect

Add the one DFL connector, https://mcp.devfellowship.com/mcp, to your client. Sign in once. On the consent page choose the plans domain: read gives the scope plans.read, and write gives plans.write. The steps for each client are on Connect the DFL MCP.

Then find a tool of this domain with the router tools of the connector:

  1. search_tools with a keyword or an exact tool name. Each result gives plans.<tool> and its mode (read or write).
    {
      "query": "search_plans"
    }
  2. describe_tool with that id for the description and the input schema.
    {
      "tool": "plans.search_plans"
    }
  3. call_read_tool for a read tool, or call_write_tool for a write tool, with the id and the arguments.

Scripts and agents that sign in with a token: see Getting started, For scripts.

Backing dataThe plans REST API (plans.devfellowship.com/api) — plans, versions, ADRs, questions.

Find and read plans, see which tasks a plan carries, which plans moved on a given day, which N1 areas exist, and which tags are in use.

search_plans

Hybrid semantic + keyword search over plans (and optionally ADRs) on plans.devfellowship.com.read

Search Plans

Hybrid semantic + keyword search over plans (and optionally ADRs) on plans.devfellowship.com. Blends pgvector cosine similarity with full-text tsvector ranking, so both exact keyword hits and conceptual paraphrases surface. Results are visibility-filtered to what YOU can read (your own personal plans + shared plans if you are member+). Use this to find prior art before drafting a plan, or to locate a plan by topic.

ParameterTypeRequiredDescription
querystringyesSearch query — keywords or a natural-language concept. Example: "auth gating for the plans MCP".
typeenumnoWhat to search: "plan", "adr" (decision records), or "all" (default). One of: plan, adr, all. Default: "all".
limitnumbernoMax results to return (default 25, max 100). Default: 25.
active_onlybooleannoWhen true, exclude done/archived plans (only draft/in_review/fired/executing/paused surface). Default: false.

get_plan

Read a plan's full markdown body plus metadata (status, version, ADR count, parent, parent_relation, tags, visibility/owner, area, area_other_reason, and the lifecycle fields blocked, pause_reason, resume_at…read

Read Plan

Read a plan's full markdown body plus metadata (status, version, ADR count, parent, parent_relation, tags, visibility/owner, area, area_other_reason, and the lifecycle fields blocked, pause_reason, resume_at, resume_due; app_slugs once the plans.app_slugs column is live) by slug. Optionally pass a specific version; defaults to the latest. Visibility-enforced: if you cannot read the plan (e.g. it is someone else's personal plan), this returns not-found.

ParameterTypeRequiredDescription
slugstringyesThe plan slug, e.g. "20260619-plans-mcp-per-domain".
versionnumbernoSpecific version number to read. Omit for the latest version.
metadata_onlybooleannoWhen true, return only metadata (no body fetch). Default: false.

list_plans

List plans with optional filters (status, source, tag, area, has_children, has_pending_questions).read

List Plans

List plans with optional filters (status, source, tag, area, has_children, has_pending_questions). Returns only plans YOU can read (your personal plans + shared plans if you are member+). Status is one of draft|in_review|fired|executing|paused|done|archived. Use this to browse the inbox or filter by lifecycle state. To see the plans that wait for YOUR review, pass awaiting_my_review:true: it returns the in_review plans you own, oldest in review first. Agents mark a plan that waits for its owner with status in_review, not with the "for-review" tag. Each plan carries its lifecycle fields: blocked (a blocking question is unanswered), pause_reason, resume_at and resume_due (a paused plan whose resume_at has passed), parent_relation (program|step|follow_up), area (the N1 area) and area_other_reason. Every row also carries created_by_actor_id (the actor that created the plan; null on a legacy plan), so an attribution audit is ONE call. A call with no filter lists only the plans active in the last 7 days; pass since (YYYY-MM-DD) to list every plan with activity since that date, e.g. since:"2026-09-11".

ParameterTypeRequiredDescription
statusstringnoFilter by status. Single value or comma-separated, e.g. "draft" or "in_review,executing". One of draft|in_review|fired|executing|paused|done|archived.
areastringnoFilter to plans in this N1 area (an area slug from list_plan_areas, or "other").
sourcestringnoFilter by source. Single value or comma-separated, e.g. "claude-main" or "claude-main,telegram".
tagstringnoFilter to plans carrying this tag.
has_childrenbooleannoWhen true, only plans that have child plans.
has_pending_questionsbooleannoWhen true, only plans with pending (unanswered) questions.
sincestringnoDate floor on the plan LAST ACTIVITY (YYYY-MM-DD or an ISO timestamp). Lists every plan active since then, with no 7-day window and no row cap. Use it for an audit over a period.
awaiting_my_reviewbooleannoWhen true, only the in_review plans that YOU own, oldest in review first. Cannot be combined with a paging cursor.

list_plan_tasks

List the DevFellowship work tasks bound to a plan — the plan's EXECUTION CHECKLIST, the read half of set_plan_tasks.read

List Plan Tasks

List the DevFellowship work tasks bound to a plan — the plan's EXECUTION CHECKLIST, the read half of set_plan_tasks. Answers "what is still open on this plan": by DEFAULT it returns only OPEN tasks (it hides done and no_longer_needed); pass include_finished:true for the whole bound set. The summary always counts ALL bound tasks, so you get "27 open of 33" plus a breakdown by status and by stage even when the rows are filtered. Each row carries identifier, name, live status, stage name, points, priority, owner, epic, acceptance criteria and updated_at, read from work.tasks with YOUR JWT (RLS applies). Rows are sorted by stage, then priority, then identifier. Visibility-enforced: a plan you cannot read returns not-found. Read-only — it never edits the plan or the tasks. Use it before set_plan_tasks (which REPLACES the whole list, so you need the current set first) and to report progress; use the work MCP's update_task to advance a task.

ParameterTypeRequiredDescription
slugstringyesThe plan slug whose bound tasks to list.
include_finishedbooleannoInclude finished tasks (done + no_longer_needed) in the returned rows. Default false — the common question is what is still open. The counts in the summary cover every bound task either way. Default: false.

list_plans_by_activity

List the plans with ACTIVITY in a day window — the same rule as the calendar Day board (plans.devfellowship.com/calendar?view=day).read

List Plans by Activity Day

List the plans with ACTIVITY in a day window — the same rule as the calendar Day board (plans.devfellowship.com/calendar?view=day). Activity = the plan row (create, publish, status) plus every related entity: versions, comments, questions and answers, ADRs, child plans, bound tasks and bound content. The day is a calendar day in tz (default America/Sao_Paulo), not UTC. Window: date (one day, default today) OR from + to (inclusive, max 62 days). mode: "activity_on_day" (default — at least one event in the window; a plan touched yesterday and today is on both days) or "last_activity_on_day" (the LAST event of the plan is in the window: "plans updated for the last time yesterday"). owner: "me", a user id, an e-mail, or a name/handle ("tainan" resolves to the profile and also matches the legacy literal owner); a name that matches two people is refused with the candidates. status: one value or a comma list. limit: 1-200, default 50. Each row: slug, title, status, owner, last_activity_at/kind, the events in the window (what happened), bound task counts by status (null = the task rail is unavailable, not zero), open and blocking question counts, and whether the latest body has a Verification section. TWO ACTIVITY CLASSES: every event is "work" (body revision, task change, question created or answered, a status move by a person) or "housekeeping" (question withdraw, archive, stale-rule move, auto-withdraw on close, bulk cleanup). Default: WORK ONLY, like the calendar. Pass include_housekeeping: true to count both; each event carries its class either way. events_limit: 1-200, default 20 — the max events listed per plan; a plan with more sets day_activity.events_capped true, so raise it when a count must not be a floor. Returns only plans you can read. Read-only. Use it to start a daily sweep, then list_plan_tasks and get_plan per plan.

ParameterTypeRequiredDescription
datestringnoOne calendar day, YYYY-MM-DD. Default: today in tz. Not with from/to.
fromstringnoRange start, YYYY-MM-DD, inclusive. Needs to.
tostringnoRange end, YYYY-MM-DD, inclusive. Needs from. Max 62 days.
tzstringnoIANA timezone of the day boundary. Default America/Sao_Paulo.
modeenumnoactivity_on_day (default): at least one event in the window. last_activity_on_day: the plan's last event is in the window. One of: activity_on_day, last_activity_on_day.
ownerstringnoOwner filter: "me", a user id, an e-mail, or a name/handle such as "tainan".
statusstringnoPlan status filter. One value or a comma list of draft|in_review|fired|executing|paused|done|archived.
limitnumbernoMax plans returned (1-200, default 50).
events_limitnumbernoMax events listed per plan in day_activity.events (1-200, default 20). A plan with more events sets day_activity.events_capped true.
include_housekeepingbooleannoDefault false: only WORK events count (the calendar rule). true: housekeeping events (question withdraw, archive, stale-rule move, auto-withdraw on close) count too; each event carries its class.

list_plan_areas

List the N1 areas a plan can be filed under: slug, label, description and whether the area is active.read

List Plan Areas

List the N1 areas a plan can be filed under: slug, label, description and whether the area is active. Call it before you set area on create_plan / publish_plan or filter list_plans by area. When no listed area fits, use area "other" WITH an area_other_reason — the reasons are read to grow this list (upsert_plan_area adds one).

Takes no parameters.

search_plan_tags

Suggest tags for a plan: list the tags already in use across the plans you can read, with how many plans carry each, most used first (GET /api/tags).read

Search Plan Tags

Suggest tags for a plan: list the tags already in use across the plans you can read, with how many plans carry each, most used first (GET /api/tags). Pass q to filter by text. Call it BEFORE you set tags on create_plan / publish_plan, and reuse an existing tag instead of a near-duplicate; the write answers tag_warnings when a new tag is close to an existing one. Read-only.

ParameterTypeRequiredDescription
qstringnoText filter on the tag, e.g. "plan" matches "plans" and "plans-mcp". Omit for the top tags.
limitnumbernoMaximum tags to return (1-50). Default 20.

set_plan_visibility and set_plan_visibility_batch moved here from Platform (ops), where they were plans_set_visibility and plans_set_visibility_batch (plan task T2.5). An owner can change the visibility of an own plan; only a superadmin can reassign owner. The plans-app decides, with your forwarded identity.

Create and publish a plan, change its status, owner, visibility, links and N1 area, bind its tasks, backfill the area and parent relation of many plans, and run the stale-plan sweep.

create_plan

Create a new plan (or upsert one by slug) on plans.devfellowship.com.write

Create Plan

Create a new plan (or upsert one by slug) on plans.devfellowship.com. The plan is owned by YOU (the calling user). visibility defaults to "shared" (member+ can see it); pass "personal" to keep it owner-only. To change visibility on an existing plan later, use set_plan_visibility. Writing requires a member+ identity. Slug rule: a NEW slug must be YYYYMMDD-title-slug (date prefix, then kebab-case), for example "20261029-plans-tag-suggestions"; the plans-app refuses a new slug in another shape (400 invalid_slug). A legacy slug that already exists keeps working. Before you set tags, call search_plan_tags to reuse an existing tag instead of a near-duplicate; the response may carry tag_warnings (a tag close to an existing one), which this tool prints ahead of the JSON. area is the N1 area (see list_plan_areas); pick "other" only with a reason in area_other_reason — the reasons are read to grow the list. parent_relation says how this plan relates to parent_slug (program|step|follow_up). When a plan is written and waits for its owner to review it, set status "in_review" (shown as "Em revisao"). Do NOT use the "for-review" tag for this any more. Status "paused" = parked by decision: it needs BOTH pause_reason (why) and resume_at (ISO date or datetime). The plan and its pending questions are hidden from the inbox until resume_at; after that date the plan reads back resume_due:true. A move to done or archived WITHDRAWS the plan's pending questions and returns their ids in withdrawn_question_ids, plus warnings (open_children with their slugs, open_tasks with a count). Warnings never block the move. Closing a parent never closes its children: close each child on its own. Plan activity has two classes, work and housekeeping; the calendar and activity=last count work only by default. A status move is work unless you say otherwise: a system or bulk move (stale rule, cleanup) passes status_change_class="housekeeping" and a reason in status_reason, so the move does not show up as work on the calendar. Attribution comes from your token: the plans-app sets the owner, the actor and the source label from the authenticated identity. There is no source input; a legacy source argument is ignored and never forwarded.

ParameterTypeRequiredDescription
slugstringyesUnique plan slug. A NEW slug must be YYYYMMDD-title-slug, e.g. "20260619-my-new-plan" (400 invalid_slug otherwise); an existing legacy slug keeps working.
titlestringyesHuman-readable plan title.
bodystringyesFull markdown body of the plan.
statusenumnoLifecycle status (draft|in_review|fired|executing|paused|done|archived); defaults to draft when omitted. Use in_review for a plan that waits for its owner. paused needs pause_reason + resume_at. One of: draft, in_review, fired, executing, paused, done, archived.
parent_slugstringnoSlug of a parent plan (must already exist).
tagsstring[]noTags, e.g. ["infra","plans"]. Call search_plan_tags first and reuse an existing tag; the response warns (tag_warnings) on a near-duplicate.
visibilityenumno"shared" (default) or "personal" (owner-only). One of: shared, personal.
parent_relationenumnoHow this plan relates to parent_slug: "program" (the parent is an umbrella), "step" (this plan is one step of the parent), "follow_up" (this plan continues the parent after it closed). Pass null to clear. Needs parent_slug. One of: program, step, follow_up.
areastringnoThe N1 area slug of the plan (see list_plan_areas). Pick "other" only with a reason in area_other_reason — the reasons are read to grow the list. Pass null to clear.
area_other_reasonstringnoREQUIRED when area is "other": why no listed area fits (1-500 chars).
app_slugsstring[]noThe apps this plan touches: 0 to 3 slugs that exist in apps.apps (the app marks of the Plans App). An unknown slug is refused. Pass null to clear; omit to leave it as it is. Stored only once the plans.app_slugs column is live: the answer says app_slugs.written.
pause_reasonstringnoWhy the plan is parked (1-500 chars). REQUIRED when status is "paused"; ignored otherwise.
resume_atstringnoWhen the plan comes back to the inbox: an ISO date (YYYY-MM-DD) or datetime. REQUIRED when status is "paused"; ignored otherwise.
allow_past_resumebooleannoWhen true, accept a resume_at that is already in the past (the plan is then immediately resume_due). Default false.
status_reasonstringnoWhy the status moves (1-500 chars). REQUIRED when status_change_class is "housekeeping"; optional otherwise. Ignored when no status is set.
status_change_classenumno"work" (default: a person or an agent on their behalf moved the plan) or "housekeeping" (a system or bulk move: stale rule, cleanup, archive sweep). Housekeeping needs status_reason. Ignored when no status is set. One of: work, housekeeping.

publish_plan

Publish (or re-publish) a plan body, creating a new version.write

Publish Plan

Publish (or re-publish) a plan body, creating a new version. Use this when you have edited a plan's markdown and want to push the update. Upserts by slug: an existing plan keeps its owner and gets a new version; a new slug is created owned by you. Writing requires a member+ identity. ALWAYS pass base_body_sha256 (the body_sha256 get_plan returned for the version you edited) when updating an existing plan: it makes the publish a compare-and-swap that is REJECTED — with nothing written — if someone else published in the meantime, instead of silently erasing their version. Slug rule: a NEW slug must be YYYYMMDD-title-slug (date prefix, then kebab-case), for example "20261029-plans-tag-suggestions"; the plans-app refuses a new slug in another shape (400 invalid_slug). A legacy slug that already exists keeps working. Before you set tags, call search_plan_tags to reuse an existing tag instead of a near-duplicate; the response may carry tag_warnings (a tag close to an existing one), which this tool prints ahead of the JSON. area is the N1 area (see list_plan_areas); pick "other" only with a reason in area_other_reason — the reasons are read to grow the list. parent_relation says how this plan relates to parent_slug (program|step|follow_up). When a plan is written and waits for its owner to review it, set status "in_review" (shown as "Em revisao"). Do NOT use the "for-review" tag for this any more. Status "paused" = parked by decision: it needs BOTH pause_reason (why) and resume_at (ISO date or datetime). The plan and its pending questions are hidden from the inbox until resume_at; after that date the plan reads back resume_due:true. A move to done or archived WITHDRAWS the plan's pending questions and returns their ids in withdrawn_question_ids, plus warnings (open_children with their slugs, open_tasks with a count). Warnings never block the move. Closing a parent never closes its children: close each child on its own. Plan activity has two classes, work and housekeeping; the calendar and activity=last count work only by default. A status move is work unless you say otherwise: a system or bulk move (stale rule, cleanup) passes status_change_class="housekeeping" and a reason in status_reason, so the move does not show up as work on the calendar. Attribution comes from your token: the plans-app sets the owner, the actor and the source label from the authenticated identity. There is no source input; a legacy source argument is ignored and never forwarded.

ParameterTypeRequiredDescription
slugstringyesThe plan slug to publish. A NEW slug must be YYYYMMDD-title-slug (400 invalid_slug otherwise); an existing legacy slug keeps working.
titlestringyesPlan title.
bodystringyesFull markdown body (a new version is stored).
statusenumnoOptionally set status (draft|in_review|fired|executing|paused|done|archived) while publishing. Use in_review for a plan that waits for its owner. paused needs pause_reason + resume_at. One of: draft, in_review, fired, executing, paused, done, archived.
parent_slugstringnoParent plan slug (must exist).
tagsstring[]noTags array. Call search_plan_tags first and reuse an existing tag; the response warns (tag_warnings) on a near-duplicate.
visibilityenumno"shared" or "personal". One of: shared, personal.
parent_relationenumnoHow this plan relates to parent_slug: "program" (the parent is an umbrella), "step" (this plan is one step of the parent), "follow_up" (this plan continues the parent after it closed). Pass null to clear. Needs parent_slug. One of: program, step, follow_up.
areastringnoThe N1 area slug of the plan (see list_plan_areas). Pick "other" only with a reason in area_other_reason — the reasons are read to grow the list. Pass null to clear.
area_other_reasonstringnoREQUIRED when area is "other": why no listed area fits (1-500 chars).
app_slugsstring[]noThe apps this plan touches: 0 to 3 slugs that exist in apps.apps (the app marks of the Plans App). An unknown slug is refused. Pass null to clear; omit to leave it as it is. Stored only once the plans.app_slugs column is live: the answer says app_slugs.written.
pause_reasonstringnoWhy the plan is parked (1-500 chars). REQUIRED when status is "paused"; ignored otherwise.
resume_atstringnoWhen the plan comes back to the inbox: an ISO date (YYYY-MM-DD) or datetime. REQUIRED when status is "paused"; ignored otherwise.
allow_past_resumebooleannoWhen true, accept a resume_at that is already in the past (the plan is then immediately resume_due). Default false.
status_reasonstringnoWhy the status moves (1-500 chars). REQUIRED when status_change_class is "housekeeping"; optional otherwise. Ignored when no status is set.
status_change_classenumno"work" (default: a person or an agent on their behalf moved the plan) or "housekeeping" (a system or bulk move: stale rule, cleanup, archive sweep). Housekeeping needs status_reason. Ignored when no status is set. One of: work, housekeeping.
base_body_sha256stringnoCONDITIONAL WRITE (recommended): sha256 hex of the plan body you started from — the body_sha256 field get_plan returns. The publish is rejected, writing nothing, if the current body no longer hashes to this. This is the authoritative guard: the plans-app writes version rows best-effort, so the body can change without latest_version moving.
base_versionnumbernoCONDITIONAL WRITE (convenience): the latest_version you read. Weaker than base_body_sha256 — supply both when you have them; the hash wins.

patch_status

Transition a plan's lifecycle status: draft -> in_review -> fired -> executing -> done (or archived), with paused as a side state.write

Patch Plan Status

Transition a plan's lifecycle status: draft -> in_review -> fired -> executing -> done (or archived), with paused as a side state. Any transition to or from in_review is allowed. Transitioning to fired/executing is BLOCKED (409) when the plan still has unanswered blocking questions — answer them first. Use this when dispatching a plan (fired), parking it (paused) or marking it complete (done). Status "paused" = parked by decision: it needs BOTH pause_reason (why) and resume_at (ISO date or datetime). The plan and its pending questions are hidden from the inbox until resume_at; after that date the plan reads back resume_due:true. A move to done or archived WITHDRAWS the plan's pending questions and returns their ids in withdrawn_question_ids, plus warnings (open_children with their slugs, open_tasks with a count). Warnings never block the move. Closing a parent never closes its children: close each child on its own. Plan activity has two classes, work and housekeeping; the calendar and activity=last count work only by default. A status move is work unless you say otherwise: a system or bulk move (stale rule, cleanup) passes status_change_class="housekeeping" and a reason in status_reason, so the move does not show up as work on the calendar. When a plan is written and waits for its owner to review it, set status "in_review" (shown as "Em revisao"). Do NOT use the "for-review" tag for this any more.

ParameterTypeRequiredDescription
slugstringyesThe plan slug to transition.
statusenumyesTarget status: draft|in_review|fired|executing|paused|done|archived. One of: draft, in_review, fired, executing, paused, done, archived.
pause_reasonstringnoWhy the plan is parked (1-500 chars). REQUIRED when status is "paused"; ignored otherwise.
resume_atstringnoWhen the plan comes back to the inbox: an ISO date (YYYY-MM-DD) or datetime. REQUIRED when status is "paused"; ignored otherwise.
allow_past_resumebooleannoWhen true, accept a resume_at that is already in the past (the plan is then immediately resume_due). Default false.
status_reasonstringnoWhy the status moves (1-500 chars). REQUIRED when status_change_class is "housekeeping"; optional otherwise. Ignored when no status is set.
status_change_classenumno"work" (default: a person or an agent on their behalf moved the plan) or "housekeeping" (a system or bulk move: stale rule, cleanup, archive sweep). Housekeeping needs status_reason. Ignored when no status is set. One of: work, housekeeping.
Replace a plan's external links list — the FIRST-CLASS sidebar links (Miro / Figma / GitHub / Epic / docs / any URL) rendered in the plans-app sidebar, SEPARATE from the URLs inside the markdown body.write

Set Plan Links

Replace a plan's external links list — the FIRST-CLASS sidebar links (Miro / Figma / GitHub / Epic / docs / any URL) rendered in the plans-app sidebar, SEPARATE from the URLs inside the markdown body. This REPLACES the entire list (not append) — pass the full desired set, or [] to clear all links. Owner-only (you must be the plan owner). kind is auto-detected server-side from the URL when omitted.

ParameterTypeRequiredDescription
slugstringyesThe plan slug whose links to replace.
linksobject[]yesReplaces the plan's entire links list (Miro/Figma/GitHub/Epic/docs/… or any URL). kind auto-detected server-side if omitted. Pass [] to clear.

set_owner

Reassign the owner column of the named plans to a canonical Supabase auth uid.write

Set Plan Owner (Backfill / Reconcile)

Reassign the owner column of the named plans to a canonical Supabase auth uid. Use this to reconcile a legacy or non-uuid plans.owner value (an email, a handle, or a service name written by an older writer) to the auth uid that identifies the same person. plans.owner MUST hold the auth uid, because the canonical readability predicate plans.can_read_row matches owner = auth.uid()::text — a non-uuid owner therefore makes a *personal* plan unreadable by its own owner, which looks like the plan was deleted. Pass slugs: exactly those plans are reassigned, whatever their current owner. There is no whole-table mode any more (the only_null and confirm_reassign_all filters were retired). Requires superadmin (IAM level >= 100); the server answers 403 otherwise.

ParameterTypeRequiredDescription
ownerstringyesThe Supabase auth uid (uuid) to assign as the new owner. This is what plans.owner stores and what the readability predicate matches against (owner = auth.uid()::text), so it must be the auth uid — not an email, a handle, or a display name.
slugsstring[]yesThe plan slugs to reassign, whatever their current owner. 1 to 200 per call (server-side limit).

set_plan_actor

Set the CREATOR attribution of existing plans: created_by_actor_id and the source label, from an agent actor_slug.write

Set Plan Creator Actor (Attribution Repair)

Set the CREATOR attribution of existing plans: created_by_actor_id and the source label, from an agent actor_slug. Use it to repair plans that show the wrong creator (for example a plan that an agent wrote with a human login, which shows "by <human>" instead of "by <agent> for <human>"). DRY RUN BY DEFAULT: without dry_run: false it writes nothing and returns, per plan, the before/after values plus would_change, unchanged and missing. Run the dry run first and read it. actor_slug must name exactly one agent actor (public.actors.metadata.agent_slug); an unknown, human or ambiguous slug is refused and nothing is written. A real run is all or nothing: if one slug matches no plan, nothing is written. source becomes the agent slug; created_by_user_id, updated_at and the work timestamp do not change. Max 200 slugs per call. Requires superadmin (IAM level >= 100) or a service viewer; the server answers 403 otherwise. Does not change owner (use set_owner for that).

ParameterTypeRequiredDescription
actor_slugstringyesThe agent slug of the creator to record, e.g. "claude-main". Must match exactly one agent actor.
slugsstring[]yesPlan slugs to repair (1..200).
dry_runbooleannoDefault true: report only, write nothing. Pass false to write.

set_plan_visibility

Set a single plan's visibility to personal or shared.write

Set Plan Visibility

Set a single plan's visibility to personal or shared. personal plans are only visible to their owner; shared plans are visible to every member+ caller. Only the plan owner may change it (403 otherwise). It does not change the body, version or status. Use this when a plan should be hidden from the shared inbox (mark it personal), or when a personal draft is ready to be shared with the team. Identify the plan by its slug (e.g. "20260616-plans-app-personal-shared-visibility").

ParameterTypeRequiredDescription
slugstringyesThe plan slug to update (e.g. "20260616-plans-app-personal-shared-visibility").
visibilityenumyesTarget visibility: "shared" (member+ can see it) or "personal" (owner-only). One of: shared, personal.
ownerstringnoOptional owner to assign. Only honored server-side for superadmin callers; normal callers cannot reassign ownership and this field is ignored for them.

set_plan_tasks

Bind DevFellowship work tasks (work.tasks) to a plan — the plan's EXECUTION CHECKLIST, rendered in the plans-app right sidebar with each task's LIVE status and a done/total progress counter.write

Set Plan Tasks

Bind DevFellowship work tasks (work.tasks) to a plan — the plan's EXECUTION CHECKLIST, rendered in the plans-app right sidebar with each task's LIVE status and a done/total progress counter. The binding is stored in work.entity_connections (the first-class entity↔task join) and the panel reads each task's name+status live from work.tasks. This REPLACES the plan's task list (pass the full desired set, or [] to unbind all) but PRESERVES every other sidebar link (Miro/Figma/GitHub/…) — a task sync is never destructive to curated links. Allowed on a plan you own OR as an admin, since a checklist is execution state. The work MCP stays the source of truth for a task: create/advance tasks there (create_task / update_task) and the status flows in automatically. In the steady state you only need to pass each task_id; call this after every meaningful step so the plan reflects the current set of bound tasks.

ParameterTypeRequiredDescription
slugstringyesThe plan slug whose task list to replace.
tasksobject[]yesReplaces the plan's entire task list (max 99). Pass [] to unbind all tasks. Other sidebar links are left untouched.

move_plan_tasks

Move bound work tasks from one plan to another in ONE transaction: the tasks leave from_slug and are bound to to_slug, and EVERY OTHER binding of both plans stays as it was.write

Move Plan Tasks

Move bound work tasks from one plan to another in ONE transaction: the tasks leave from_slug and are bound to to_slug, and EVERY OTHER binding of both plans stays as it was. Use this instead of two set_plan_tasks calls (set_plan_tasks REPLACES a whole set, so a wrong list unbinds other tasks). Needs you to be an editor (owner, delegate or admin) of BOTH plans. Each task_id is a work.tasks UUID or its identifier (DFL-xxxxx). Idempotent: a task already on the target and not on the source is reported as already_moved and nothing is written. Refused, with nothing written: a task bound to neither plan (task_not_bound), an unknown task (task_not_found), the same plan twice (same_plan), and a move that takes the target past 99 tasks (target_cap). The answer reads back both bound sets from the same transaction. The new target bindings are written as you (created_by). The task's own row (status, context.plan_ref) does not change: edit it with the work MCP update_task.

ParameterTypeRequiredDescription
from_slugstringyesThe plan slug that holds the tasks now.
to_slugstringyesThe plan slug that gets the tasks.
task_idsstring[]yesThe tasks to move (1..99). Each must be bound to from_slug (or already moved).
reasonstringnoOptional note why the tasks move. It is echoed in the answer and in the service log.

upsert_plan_area

Create or update one N1 plan area, keyed by slug (POST /api/areas).write

Upsert Plan Area

Create or update one N1 plan area, keyed by slug (POST /api/areas). Use it to grow the area list after reading the area_other_reason values of plans filed under "other", or to deactivate an area (active:false) that no new plan should pick. Read the current list with list_plan_areas first. Writing requires a member+ identity.

ParameterTypeRequiredDescription
slugstringyesThe area slug (kebab-case), e.g. "lesson-studio". The upsert key.
labelstringyesHuman-readable label, e.g. "Lesson Studio".
descriptionstringnoOne or two sentences on what belongs in this area.
activebooleannoWhether new plans may pick this area. Omit to keep the current value (new areas default to active).

classify_plan_activity

Repair the activity CLASS of one plan event that was counted as the wrong class — for example a bulk cleanup or a stale-rule archive that showed up as WORK on the calendar, or a real decision that a job recorded as…write

Classify Plan Activity Event

Repair the activity CLASS of one plan event that was counted as the wrong class — for example a bulk cleanup or a stale-rule archive that showed up as WORK on the calendar, or a real decision that a job recorded as housekeeping. event is "plan_touch" (the plan row's last touch) or "status" (the last status move); class is "work" or "housekeeping"; reason says why. Generic and idempotent: the same class again changes nothing. Returns before and after. This does NOT move the status and does NOT create a new event; to classify a move while you make it, pass status_change_class to patch_status.

ParameterTypeRequiredDescription
slugstringyesThe plan slug whose event is reclassified.
eventenumyes"plan_touch" = the plan row's last touch event; "status" = the last status-change event. One of: plan_touch, status.
classenumyesThe class the event SHOULD have: "work" or "housekeeping". One of: work, housekeeping.
reasonstringyesWhy the class changes (1-500 chars), e.g. "bulk archive sweep 2026-10-29 counted as work".

classify_task_activity

Mark PAST activity events as HOUSEKEEPING in bulk, so a repair or a bulk re-set stops showing up as work on the plans calendar (activity=last).write

Classify Task Activity (bulk, after the fact)

Mark PAST activity events as HOUSEKEEPING in bulk, so a repair or a bulk re-set stops showing up as work on the plans calendar (activity=last). kind "task": every task whose LAST write falls in [from, to), scoped by plan_slugs and/or task_ids (one is required), optionally only the writes of actor_user_id. Each task keeps its previous real work time (the newest audit event before from, or a status timestamp, or created_at) and gets the reason. dry_run defaults to true: it lists the rows and writes nothing — check the list, then call again with dry_run:false. Global admin only (level >= 80). Uses your JWT; each write is guarded on the updated_at it read. Idempotent: a row already marked is skipped. Returns before/after and a read-back per row. To mark a task write AS you make it, pass activity_class:"housekeeping" to the work MCP update_task instead; for a plan status or plan-row event, use classify_plan_activity.

ParameterTypeRequiredDescription
fromstringyesWindow start (ISO 8601, inclusive), e.g. "2026-11-04T00:20:00Z".
tostringyesWindow end (ISO 8601, exclusive). At most 7 days after from.
kindenumnoThe event kind. Today only "task" (a work.tasks write). One of: task. Default: "task".
plan_slugsstring[]noOnly tasks bound to these plans (read through the plans API, so visibility applies).
task_idsstring[]noOnly these task ids. With plan_slugs, both filters apply.
actor_user_idstringnoOnly tasks whose last write was made by this auth user id (public.activity_logs.user_id).
classliteral("housekeeping")noThe target class. Today only "housekeeping". Default: "housekeeping".
reasonstringyesWhy these writes are housekeeping, e.g. "merge steward re-set of 21 damaged rows, 2026-11-04".
dry_runbooleannoDefault true: list what would change and write nothing. Default: true.

dispatch_stale_plans_sweep

Run the stale-plan sweep once (the ADR-10 rule of plan 20261029-plans-app-lifecycle-and-taxonomy).write

Dispatch the Stale Plans Sweep

Run the stale-plan sweep once (the ADR-10 rule of plan 20261029-plans-app-lifecycle-and-taxonomy). DRY RUN BY DEFAULT: dry_run is TRUE unless you pass dry_run:false, so a call with no arguments moves NOTHING and only lists the candidates with the rule each one matches (pause or archive). ADR-10 rules: an OPEN plan (draft, in_review, fired, executing) with no work activity for idle_days (default 30) is PAUSED with resume_at = now + grace_days (default 30) and a pause_reason that names the rule; a PAUSED plan that is still idle grace_days after its resume_at is ARCHIVED and its pending questions are withdrawn. A plan with an in_progress task is skipped, and so is a plan the caller cannot edit. Every move is HOUSEKEEPING (status_change_class housekeeping, not calendar work) and is signed with the caller actor. Output: one summary line with the counts, the candidate (or moved) list — at most 50 lines, then "+N more" — and the full JSON (counts, candidates, moved, errors, truncated). Run it with dry_run:true first, read the list, then run it with dry_run:false. Answers 503 while the plans-app capability stale_sweep is off. Writing requires a member+ identity.

ParameterTypeRequiredDescription
idle_daysnumbernoDays without WORK activity before an open plan is paused (1-365). Default 30 (the plans-app default).
grace_daysnumbernoDays of grace: the pause sets resume_at = now + grace_days, and a paused plan still idle grace_days after resume_at is archived (0-365). Default 30 (the plans-app default).
dry_runbooleannoDEFAULT TRUE: list the candidates and move NOTHING. Pass false to apply the moves (pause / archive, housekeeping, signed with your actor).
max_movesnumbernoUpper bound of moves in one run (1-2000). Default 500 (the plans-app default). The response says truncated:true when it was reached.

set_plan_taxonomy

Set the taxonomy fields of one or many plans in one call: area, area_other_reason, parent_relation, parent_slug (a slug re-parents the plan; null DETACHES it from its parent and also clears parent_relation; omit to…write

Set Plan Taxonomy (bulk)

Set the taxonomy fields of one or many plans in one call: area, area_other_reason, parent_relation, parent_slug (a slug re-parents the plan; null DETACHES it from its parent and also clears parent_relation; omit to leave the parent unchanged; the plans-app refuses a cycle with 400 parent_cycle and an unknown parent with 400 parent_not_found; a parent_slug change is NOT a housekeeping touch) and app_slugs (the apps of the plan, 0 to 3 slugs of apps.apps; [] = the neutral mark on purpose; Decision Facets P2 T6 backfill) (PATCH /api/plans/:slug with ONLY the keys you give, one plan at a time, in order). This is a HOUSEKEEPING write, not calendar work: a body with only area, area_other_reason, parent_relation and app_slugs does not count as work activity. It is THE path for an area or parent_relation backfill — no psql, no service_role; every PATCH runs as you. Up to 100 items. Per item, the tool refuses locally, before any call: an item with no field, area "other" without area_other_reason, and a parent_relation outside program|step|follow_up (or null to clear). One failure never stops the rest. Output: "ok N / failed M", one line per failure, then the JSON results [{slug, ok, status, error?}] (status 0 = refused locally, no call made). Read the area slugs with list_plan_areas first; the plans-app refuses an unknown area (400 invalid_area) and a parent_relation on a plan without a parent. Writing requires a member+ identity.

ParameterTypeRequiredDescription
itemsobject[]yesThe plans to update, 1-100. Each item carries ONLY the fields to set; a missing field is left unchanged.

Read, add and delete comments on a plan.

create_plan_comment

Create a comment on a plan at plans.devfellowship.com — the same annotation the web UI produces with select-to-comment.write

Create Plan Comment

Create a comment on a plan at plans.devfellowship.com — the same annotation the web UI produces with select-to-comment. Required: slug and body. Optional: selection_text (the highlighted text; defaults to "(plan)" for a plan-wide comment), selection_start, selection_end, version, and metadata (a JSON object with context that is not identity, e.g. the channel for a bot). Attribution comes from your token: the author, the actor and its principal are taken from your authenticated identity. There is no attribution input; legacy identity keys in metadata (source, actor_slug, requester, attribution) are dropped and never forwarded. Writing requires a member+ identity.

ParameterTypeRequiredDescription
slugstringyesThe plan slug to comment on.
bodystringyesThe comment text.
selection_textstringnoThe exact text the comment is anchored to. Omit for a plan-wide comment; the API stores "(plan)".
selection_startnumbernoAnchor start offset in the plan body.
selection_endnumbernoAnchor end offset in the plan body.
versionnumbernoThe plan version this comment is on.
metadataobjectnoOptional JSON object with context that is not identity, e.g. {"channel":{"name":"commands","id":"2"}}. Identity comes from your token: the keys source, actor_slug, requester and attribution are dropped.

list_plan_comments

List the comments on a plan (the select-to-comment annotations from the web UI, plus any written by a bot).read

List Plan Comments

List the comments on a plan (the select-to-comment annotations from the web UI, plus any written by a bot). Returns id, version, selection_text, body, created_by, created_at and metadata. Optional version filter. Read-only; your normal plan visibility applies.

ParameterTypeRequiredDescription
slugstringyesThe plan slug.
versionnumbernoOnly comments on this plan version.

delete_plan_comment

Delete one plan comment by id.write

Delete Plan Comment

Delete one plan comment by id. The API allows the comment author or an admin; a comment you did not write is refused (403). Find the id with list_plan_comments. Returns the deleted row.

ParameterTypeRequiredDescription
slugstringyesThe plan slug that owns the comment.
comment_idnumberyesThe comment id to delete.

A plan can embed an artifact that lives in another DFL app — a diagram from diagrams.devfellowship.com, a document from documents.devfellowship.com, an image from the media bucket — instead of merely linking it. The plan body holds an External Entity Reference (EER): a token that points at the artifact and nothing else.

{{dfl-entity:<type>:<locator>}}
{{dfl-entity:<type>:<locator>|mode=live;caption=Arquitetura;rev=<uuid|iso8601>}}
{{dfl-diagram:<uuid>}} ← legacy alias for {{dfl-entity:diagram:<uuid>}}

type is diagram, document or image. The locator is a UUID for diagram and document; for image it is a media id or an https:// URL. Options after the | are k=v pairs separated by ; — mode (live, the default, or pinned), caption, rev.

Find a diagram, document, image or spec run, and put it in a plan or take it out.

search_entities

Find a diagram, document, image or spec run across the DFL fleet and get its LOCATOR — the UUID (diagram / document / spec_run) or media id/URL (image) that attach_entity requires.read

Search External Entities

Find a diagram, document, image or spec run across the DFL fleet and get its LOCATOR — the UUID (diagram / document / spec_run) or media id/URL (image) that attach_entity requires. This is the DISCOVERY step and the ONLY way to obtain that locator from inside the Plans MCP: diagrams and documents live in other apps, so you cannot attach an entity you have not looked up here. Never paste, guess or recall a UUID — a wrong-but-valid UUID silently points the plan at somebody else's artifact. Omit query to list the most recently updated entities; omit type to search every searchable type at once (ux_path is not one of them — see type). Results are scoped to what YOU can see. Set include_latest_revision when you intend to PIN a diagram — it returns each diagram's newest revision id, which is the rev attach_entity needs and which nothing else can give you.

ParameterTypeRequiredDescription
querystringnoFree-text match over the entity name/description (e.g. "arquitetura de dados", "onboarding"). Omit to get the most recently updated entities.
typeenumnoNarrow to one entity type. Omit to search all of them together. Entity type. diagram = a dfl-diagrams canvas, embedded live and pinnable to a revision. document = a dfl-documents document. image = a media asset rendered inline. ux_path = a flows spec served by dfl-ux-paths over its external-URL transport; ⚠️ its locator is a CAPABILITY URL when it points at DFL media — whoever holds it can read the spec, which is why it belongs in an auth-gated plan body and must never be mirrored into a repo or a config file. spec_run = one Spec Builder round (a versioned, priced set of candidate tasks); attach it ONCE per run, never one reference per task, and pin it with mode: "pinned" + a work.spec_run_versions.id as rev whenever a quote or a decision cites its point total. ⚠️ ux_path is deliberately NOT searchable and is absent from this list: a flows spec is a file behind an https URL, not a row in any table the plans-app can query. Attach one by passing its URL straight to attach_entity, which does accept the type. One of: diagram, document, image, spec_run.
limitnumbernoMax results to return (default 20, max 50). Default: 20.
include_latest_revisionbooleannoAlso resolve each DIAGRAM hit's newest saved revision (id, version number, date). Set this when you plan to pin: the id it returns is the rev that attach_entity({ mode: "pinned" }) requires, and a pinned attach without one renders live content under a "pinning unavailable" badge. Costs one extra request per diagram hit, so at most 10 are resolved — narrow the query if you need more. Ignored for documents and images (they have no revision history). A diagram can still come back with no revision — see the note printed under that hit for the actual reason, which since 2026-08-04 is almost never "you are not the author".

list_plan_entities

List the external entities (diagrams / documents / images) a plan references — the {{dfl-entity:…}} tokens embedded in its body, with each one's type, locator, mode (live/pinned) and caption.read

List Plan Entities

List the external entities (diagrams / documents / images) a plan references — the {{dfl-entity:…}} tokens embedded in its body, with each one's type, locator, mode (live/pinned) and caption. Derived by parsing the plan body, so it is always in sync with what the plan actually says; it returns POINTERS, not the resolved diagram or document content. Read-only — it never edits the plan and never creates a version. Use it before attach_entity (to see what is already there — re-attaching is a no-op) and before detach_entity (to get the exact type + locator to remove).

ParameterTypeRequiredDescription
slugstringyesThe plan slug whose entity references to list.

attach_entity

Attach an external entity (diagram / document / image / ux_path / spec_run) to a plan by inserting a {{dfl-entity:<type>:<locator>}} token into its body — without you having to republish the whole body.write

Attach Entity to Plan

Attach an external entity (diagram / document / image / ux_path / spec_run) to a plan by inserting a {{dfl-entity:<type>:<locator>}} token into its body — without you having to republish the whole body. Get locator from search_entities first; do not guess a UUID. ATTACHING DOES CREATE A NEW PLAN VERSION, because adding a reference is an edit of the plan — that is expected and correct. What never versions the plan is the referenced entity's own CONTENT changing: the body stores only the pointer, so the diagram or document stays live and the plan follows it with no new version. Idempotent — re-attaching the same type+locator changes nothing and creates no version. Requires edit rights on the plan (owner). To PIN a diagram to a fixed revision you must pass rev as well — mode: "pinned" on its own cannot be honoured and renders live content under a "pinning unavailable" badge.

ParameterTypeRequiredDescription
slugstringyesThe plan slug to attach the entity to.
typeenumyesEntity type. diagram = a dfl-diagrams canvas, embedded live and pinnable to a revision. document = a dfl-documents document. image = a media asset rendered inline. ux_path = a flows spec served by dfl-ux-paths over its external-URL transport; ⚠️ its locator is a CAPABILITY URL when it points at DFL media — whoever holds it can read the spec, which is why it belongs in an auth-gated plan body and must never be mirrored into a repo or a config file. spec_run = one Spec Builder round (a versioned, priced set of candidate tasks); attach it ONCE per run, never one reference per task, and pin it with mode: "pinned" + a work.spec_run_versions.id as rev whenever a quote or a decision cites its point total. diagram, document and spec_run take a UUID (respectively public.diagrams.id, documents.document.id, work.ai_spec_inputs.id), lowercased by the server so one entity cannot fork into two registry rows. image takes a media id or an https:// URL. ux_path takes an https:// URL ONLY — a bare id is rejected, and so are the git-shaped shorthands repo@ref:flow and repo:path@ref, which look like bare ids and are made to fail loudly rather than half-resolve. One of: diagram, document, image, ux_path, spec_run.
locatorstringyesThe entity locator, copied verbatim from search_entities (or, for a ux_path, the spec URL — that type is not searchable). diagram, document and spec_run take a UUID (respectively public.diagrams.id, documents.document.id, work.ai_spec_inputs.id), lowercased by the server so one entity cannot fork into two registry rows. image takes a media id or an https:// URL. ux_path takes an https:// URL ONLY — a bare id is rejected, and so are the git-shaped shorthands repo@ref:flow and repo:path@ref, which look like bare ids and are made to fail loudly rather than half-resolve.
modeenumnoResolution mode. live (default) always renders the current state of the entity — this is the point of the feature. pinned freezes it to the state a decision was taken against (use inside ADR/decision blocks), and REQUIRES rev to actually take effect: pinned without a rev renders live content under a badge saying the pin could not be applied. One of: live, pinned.
revstringnoRevision to pin to. ONLY meaningful together with mode: "pinned", and only on the two VERSIONED types — diagram (a public.diagram_versions id) and spec_run (a work.spec_run_versions id). It is ignored (and reported as pin state "unsupported") on a document, an image or a ux_path, which have no revision history to pin to. Preferred form: the EXACT version id (a UUID), which pins to precisely that checkpoint. An ISO-8601 timestamp is also accepted, but resolves APPROXIMATELY — the newest checkpoint at or before that instant, so how close it lands depends on how often a checkpoint happened to be cut. dfl-diagrams' own guidance to consumers creating a new pin is to store the exact version id, so prefer it. ⚠️ PIN A spec_run WHENEVER THE PLAN CITES ITS POINTS. A quote is derived from points_total, so an unpinned reference means the number moves the moment anyone edits an item — the same failure as an unpinned diagram cited inside an ADR. Get the id from get_spec_run on the engineering MCP. search_entities({ type: "diagram", include_latest_revision: true }) returns each diagram's newest revision id; pass it as rev.
captionstringnoOptional caption rendered with the embedded entity, e.g. "Arquitetura de dados".
anchorstringnoText of an existing ## Heading in the body to append the token under. Omit to append under an ## Entidades section at the end of the plan (created if absent).

detach_entity

Remove an external entity reference from a plan — deletes the {{dfl-entity:<type>:<locator>}} token(s) from the body, leaving the rest of the plan untouched.write

Detach Entity from Plan

Remove an external entity reference from a plan — deletes the {{dfl-entity:<type>:<locator>}} token(s) from the body, leaving the rest of the plan untouched. This removes the POINTER only; the diagram / document / image / ux_path / spec_run itself is not deleted and stays in its own app — detaching a spec_run in particular does NOT discard the run, its items, its versions or its comments. Detaching DOES create a new plan version, because removing a reference is an edit of the plan. Idempotent — detaching something the plan does not reference changes nothing. Use list_plan_entities to get the exact type + locator. Requires edit rights on the plan (owner).

ParameterTypeRequiredDescription
slugstringyesThe plan slug to remove the entity reference from.
typeenumyesEntity type of the reference to remove. diagram, document and spec_run take a UUID (respectively public.diagrams.id, documents.document.id, work.ai_spec_inputs.id), lowercased by the server so one entity cannot fork into two registry rows. image takes a media id or an https:// URL. ux_path takes an https:// URL ONLY — a bare id is rejected, and so are the git-shaped shorthands repo@ref:flow and repo:path@ref, which look like bare ids and are made to fail loudly rather than half-resolve. One of: diagram, document, image, ux_path, spec_run.
locatorstringyesThe entity locator to remove, exactly as returned by list_plan_entities. diagram, document and spec_run take a UUID (respectively public.diagrams.id, documents.document.id, work.ai_spec_inputs.id), lowercased by the server so one entity cannot fork into two registry rows. image takes a media id or an https:// URL. ux_path takes an https:// URL ONLY — a bare id is rejected, and so are the git-shaped shorthands repo@ref:flow and repo:path@ref, which look like bare ids and are made to fail loudly rather than half-resolve.

Announce the comments of a plan in one Discord channel.

list_discord_channels

List the Discord channels the DevFellowship bot can see, grouped by category — the ONLY valid source of a channel_id for set_plan_discord_channel.read

List Discord Channels

List the Discord channels the DevFellowship bot can see, grouped by category — the ONLY valid source of a channel_id for set_plan_discord_channel. A channel absent from this list cannot be bound (the server refuses ids that are not in it), so never paste, guess or infer a snowflake: call this first. Channels that look CLIENT-FACING (squad channels, client project categories) are tagged ⚠️ CLIENT-FACING — the DFL guild has client staff in those channels, so anything a plan posts there is seen by the client. Optionally filter with query (matches channel name AND category, accent-insensitive, e.g. "admin", "squad", "terravita"). Results are cached ~60s by the backend; pass refresh:true to force a live re-read.

ParameterTypeRequiredDescription
querystringnoOptional case- and accent-insensitive substring filter over channel name AND category. Omit to get the whole guild.
refreshbooleannoBypass the backend 60s cache and re-read the guild live. Use when a channel was just created or renamed; otherwise leave off.

set_plan_discord_channel

Bind a plan to ONE Discord channel so that EVERY COMMENT posted on that plan is announced in that channel (author + excerpt + link), or unbind it with channel_id: null.write

Set Plan Discord Channel

Bind a plan to ONE Discord channel so that EVERY COMMENT posted on that plan is announced in that channel (author + excerpt + link), or unbind it with channel_id: null. ⚠️ CONSEQUENCE, read before calling: this publishes plan activity to everyone in that Discord channel, and 15 of the DFL guild channels contain CLIENT staff — binding one of those means the client sees the plan's comments. Rules: (1) channel_id MUST come from list_discord_channels — pasted, guessed or remembered snowflakes are refused server-side; (2) the PLAN OWNER or an admin (canonical IAM level >= 80) may bind or unbind — on SHARED plans; a personal plan is readable only by its owner, so it stays owner-only in effect; (3) binding a client-facing channel, or binding any channel on a personal plan, additionally requires confirm_client_exposure: true — this is the same blocking confirmation the web UI demands from a human, and you should only set it when the person you are acting for asked for THAT channel specifically. Unbinding is never blocked. Read the current binding with get_plan (it is in the plan metadata as discord_channel_id/discord_channel_name); this tool also reports the before → after transition.

ParameterTypeRequiredDescription
slugstringyesThe plan slug to bind (or unbind).
channel_idstringyesThe Discord channel snowflake, taken VERBATIM from list_discord_channels — or null to UNBIND (stop all Discord notifications for this plan). This field is REQUIRED even when unbinding: omitting it is an error, never a silent no-op, so a forgotten argument can never quietly change a client channel's notifications.
confirm_client_exposurebooleannoExplicit acknowledgement that plan comments will become visible to everyone in the target channel. REQUIRED (true) when the channel is client-facing or the plan is personal; the bind is refused without it and nothing is written. Do not set it pre-emptively "just in case" — it is the record that a human chose this channel. Ignored when unbinding.

search_decisions (semantic search over the ADRs) moved here from Platform (ops), where it was decisions_search (plan task T2.5).

Read and search the architecture decisions recorded in plans.

list_adrs

List architectural decision records (ADRs).read

List ADRs (Decision Records)

List architectural decision records (ADRs). Pass slug to list a single plan's decisions (visibility-enforced — a plan you can't read returns not-found), or omit it to list ADRs globally with optional filters (tag, decided_by). Use to review what was decided about a topic.

ParameterTypeRequiredDescription
slugstringnoScope to a single plan's ADRs. Omit for a global list.
tagstringnoGlobal mode: filter by tag.
decided_bystringnoGlobal mode: filter by who decided.

get_adr

Get a single architectural decision record by plan slug + decision number (or id).read

Get ADR (Decision Record)

Get a single architectural decision record by plan slug + decision number (or id). Visibility-enforced via the parent plan. Use after list_adrs to read the full decision text.

ParameterTypeRequiredDescription
slugstringyesThe plan slug the ADR belongs to.
numbernumbernoThe decision number within the plan (ADR-N).
idstring | numbernoThe decision record id (alternative to number).

search_decisions

Semantic search over architectural decision records (ADRs) using pgvector cosine similarity.read

Search ADRs (Decision Records)

Semantic search over architectural decision records (ADRs) using pgvector cosine similarity. Embed a natural language query and retrieve the most relevant past decisions. Use this when you need to check what was decided about a topic before proposing a direction.

ParameterTypeRequiredDescription
querystringyesNatural language description of the decision context or question. Example: "how do we handle authentication for agents?" or "vector DB choice".
top_knumbernoMaximum number of results to return (default 5, max 20). Default: 5.
min_scorenumbernoMinimum cosine similarity threshold (0–1, default 0.7). Lower values return more results but with weaker relevance. Default: 0.7.

Ask a person a decision question on a plan, answer it, and see every open question in one inbox.

list_questions

List structured questions (blocking + non-blocking) with their options and current answers.read

List Questions (one plan, or across all plans)

List structured questions (blocking + non-blocking) with their options and current answers. TWO MODES: pass slug for ONE plan (grouped by round), or OMIT slug for the CROSS-PLAN query over every readable plan — that is how you answer "what is pending across all plans". Filter with status (pending|answered|deferred|withdrawn|all; default pending), blocking, include_finished_plans, include_snoozed, include_paused (questions of a paused plan are hidden until its resume_at). Visibility-enforced: only questions on plans you can read. To fetch ONE question whose UUID you already have, use get_question — it needs no slug. Each question carries context_facets ({kind, door, app_slugs, diagram_id or chart}) once the plan_questions.context_facets column is live; it is absent before that. context_facets.chart comes back exactly as it was posted.

ParameterTypeRequiredDescription
slugstringnoPlan slug to scope to. OMIT for the cross-plan query over all readable plans.
statusenumnoQuestion status to match. Default "pending" (the open inbox). Use "all" to search every status — a question you cannot find is very often answered. One of: pending, answered, deferred, withdrawn, all.
blockingbooleannoWhen true, return only questions that gate plan execution (blocks_execution).
include_finished_plansbooleannoWhen true, do NOT exclude questions on done/archived plans. Default false (finished plans are noise for direction-setting, but they DO hide questions).
include_snoozedbooleannoWhen true, include pending questions that are still snoozed ("ask me later").
include_pausedbooleannoWhen true, include questions of PAUSED plans whose resume_at is still in the future. Default false: a paused plan is parked by decision, so its questions are hidden from the inbox until resume_at.

get_question

Fetch ONE plan question by its UUID — no slug needed.read

Get Question by UUID

Fetch ONE plan question by its UUID — no slug needed. Returns the question with its plan_slug, plan_title, options and answer history. Searches by identity, so it finds answered/deferred/withdrawn questions and questions on done or archived plans — all of which the pending inbox hides. Use this whenever you have a question id and do not know (or should not have to guess) which plan it belongs to. Visibility-enforced: a question on a plan you cannot read reports not-found rather than a permission error. The question carries context_facets and plan_app_slugs once those columns are live; they are absent before that. context_facets.chart comes back exactly as it was posted.

ParameterTypeRequiredDescription
question_idstringyesThe question UUID, in full (e.g. c541f864-88ea-4c57-af00-47f72f6033d3).

post_question

Create a structured question on a plan (DTQ — drift/decision to question).write

Post Plan Question

Create a structured question on a plan (DTQ — drift/decision to question). Provide question_text and optional options [{letter,label,description}]. Set blocks_execution=true to make answering it a gate before the plan can be fired/executed. Writing requires a member+ identity. Write to the card contract: one decision per question, headline at most 90 characters; set the type and the door (one-way = expensive to undo); name at most 3 apps; 2 to 4 options, each a short label plus one line on what the reader gets and what it costs, no tool names; one line on why the recommended option is recommended; a diagram only when the question has structure, or a chart (context_facets.chart) when the context compares numbers across categories, never both; background in context with its source; before a schema question read the engineering catalog tools. The service checks the contract: today a broken rule comes back as a warning on a posted question; later it refuses the post (and names every rule). Rules and examples: dfl-infra claude-md/question-triage.md, "The card contract".

ParameterTypeRequiredDescription
slugstringyesThe plan slug to attach the question to.
question_textstringyesThe question text.
roundnumbernoQuestion round (default 1).
order_within_roundnumbernoOrdering within the round (default 0).
contextstringnoBackground context shown with the question.
author_reasoningstringno1-2 sentences on WHY this question was created (stored, not shown in UI).
multi_selectbooleannoAllow selecting multiple options (default false).
blocks_executionbooleannoWhen true, this question must be answered before the plan can transition draft->fired/executing.
recommended_option_letterstringnoRecommended option letter, e.g. "A".
statusenumnoInitial status (default pending). One of: pending, answered, deferred, withdrawn.
optionsobject[]noAnswer options.
context_facetsobjectnoThe context facets of the question (they render as its DecisionCard): kind (type), door, app_slugs (at most 3), and one optional visual: diagram_id or chart.
cardobjectnoDEPRECATED: the old name of context_facets (until 2026-11-17), taken for one release. Send context_facets. Both at once is refused.

update_question

Edit question_text and/or context on an existing question.write

Update Plan Question Text

Edit question_text and/or context on an existing question. Preserves its ID, status, options and answer history. Requires the plan editor identity. Other fields are rejected.

ParameterTypeRequiredDescription
slugstringyesThe plan slug the question belongs to.
question_idstringyesThe existing question UUID.
question_textstringnoReplacement question text; must not be blank.
contextstringnoBackground context; an empty string clears it.

answer_question

Record an answer to a plan question.write

Answer Plan Question

Record an answer to a plan question. THREE forms: (1) pick option letters — ["A"] single-select, ["A","B"] multi-select; (2) answer with FREE TEXT that rejects every offered option — pass ["OTHER"] and put the answer in freeform_notes, which records the question as answered just like a letter does; (3) pass [] with NO notes to clear an existing answer and put the question back to pending. Form 3 is a reset, not an answer — [] together with notes is rejected, because it would store the text and leave the question pending. The qid must be the UUID returned by list_questions.

ParameterTypeRequiredDescription
slugstringyesThe plan slug the question belongs to.
question_idstringyesThe question UUID (from list_questions).
selected_option_lettersstring[]yesChosen option letters, e.g. ["A"] (single) or ["A","B"] (multi). Use ["OTHER"] with freeform_notes when the real answer is none of the offered options — that still records the question as answered. Use [] with no notes ONLY to reset an answer back to pending.
freeform_notesstringnoThe freeform text of the answer, or extra context alongside a letter. When this carries the actual decision, selected_option_letters must be ["OTHER"].
answer_textstringnoAlias of freeform_notes. Accepted so the text is never silently dropped.

withdraw_question

Retire an obsolete plan question by setting its status to "withdrawn".write

Withdraw Plan Question

Retire an obsolete plan question by setting its status to "withdrawn". Safe + idempotent: only questions still OPEN (pending or deferred) are withdrawn; answered or already-withdrawn questions are left intact. Use when a question no longer applies (e.g. the decision was resolved out of band). The question_id is the UUID returned by list_questions. A withdraw is HOUSEKEEPING on the activity calendar, so pass reason (stored as withdrawn_reason) to say why; for a question already withdrawn, use set_question_withdraw_reason.

ParameterTypeRequiredDescription
slugstringyesThe plan slug the question belongs to.
question_idstringyesThe question UUID (from list_questions).
reasonstringnoWhy the question is withdrawn (1-500 chars), e.g. "decided out of band in TG 25098". Stored as withdrawn_reason on the question.

list_global_questions

List OPEN (pending, non-snoozed) questions across ALL readable plans — the cross-plan question inbox.read

List Global Question Inbox

List OPEN (pending, non-snoozed) questions across ALL readable plans — the cross-plan question inbox. Each item carries its plan_slug + plan_title so you can dedup before posting a new question. Visibility-enforced: only questions on plans you can read are returned. Same data as list_questions with no slug; widen beyond the open inbox with status (use "all"), include_finished_plans include_snoozed and include_paused (questions of a paused plan are hidden until its resume_at). Use blocking=true to narrow to execution-gating questions only.

ParameterTypeRequiredDescription
statusenumnoQuestion status to match. Default "pending" (the open inbox). Use "all" to search every status — a question you cannot find is very often answered. One of: pending, answered, deferred, withdrawn, all.
blockingbooleannoWhen true, return only questions that gate plan execution (blocks_execution).
include_finished_plansbooleannoWhen true, do NOT exclude questions on done/archived plans. Default false (finished plans are noise for direction-setting, but they DO hide questions).
include_snoozedbooleannoWhen true, include pending questions that are still snoozed ("ask me later").
include_pausedbooleannoWhen true, include questions of PAUSED plans whose resume_at is still in the future. Default false: a paused plan is parked by decision, so its questions are hidden from the inbox until resume_at.

close_plan_pending_questions

Withdraw EVERY pending question of one plan in one call, with one reason.write

Close a Plan's Pending Questions

Withdraw EVERY pending question of one plan in one call, with one reason. For a plan that is already done or archived: a move to done/archived with patch_status withdraws them by itself, so this is the catch-up for a plan closed before that rule, or one whose close left questions open. Idempotent — a second call withdraws nothing and returns an empty list. Returns withdrawn_question_ids. For ONE question, use withdraw_question.

ParameterTypeRequiredDescription
slugstringyesThe plan slug whose pending questions to withdraw.
reasonstringyesWhy the questions are withdrawn (1-500 chars), e.g. "plan closed 2026-10-29".

set_question_withdraw_reason

Store the reason (withdrawn_reason) on a question that is ALREADY withdrawn — one the close of its plan withdrew by itself, one close_plan_pending_questions retired, or one withdrawn earlier with no reason.write

Set Question Withdraw Reason

Store the reason (withdrawn_reason) on a question that is ALREADY withdrawn — one the close of its plan withdrew by itself, one close_plan_pending_questions retired, or one withdrawn earlier with no reason. A withdraw is housekeeping on the activity calendar, and the reason is what makes it auditable. Only a withdrawn question accepts it; to withdraw an open question WITH a reason in one call, use withdraw_question with reason.

ParameterTypeRequiredDescription
slugstringyesThe plan slug the question belongs to.
question_idstringyesThe question UUID (from list_questions or get_question).
reasonstringyesWhy the question was withdrawn (1-500 chars). Replaces any earlier reason.

See which actor, OAuth client and scope this connection uses on this host.

get_current_actor

Returns who this MCP session acts as on this host: actor {id, slug, display_name, type}, client {id, name} (the OAuth client; name is null when the provider does not show it), scope ("read" or "read+write"), and source.read

Get Current Actor

Returns who this MCP session acts as on this host: actor {id, slug, display_name, type}, client {id, name} (the OAuth client; name is null when the provider does not show it), scope ("read" or "read+write"), and source. source "oauth_grant": an OAuth session, the actor is the grant actor (null when the grant has no actor, which makes the session read-only). source "agent_login": a first-party dfl-auth login of an agent user; the actor is that user's own agent actor, client and scope are null. source "first_party_login": a first-party login with no own agent actor (a human user); all three are null. source "unresolved": this host could not resolve the actor. Read-only.

Takes no parameters.

docs tools plans 15 domains published