Skip to content
intentdocs/ docs
Docs menu
MCP Integration · 3.4

Tools & resources

Every tool, resource and prompt on the hosted and local MCP servers, with parameters, results and refusals.

This is the full reference for the hosted server at https://www.intentdocs.com/api/mcp, then the local server started by npx intentdocs mcp. For how the pieces fit together, read the MCP overview first.

The hosted server registers 58 tools, one resource and two prompts. The published manifest at GET /api/mcp/manifest lists the same 58 tools with the same parameter names.

Before you read the tables

project_id. Every hosted tool except list_projects and create_project takes project_id: a project UUID, required. The tables below leave it out. Get it from list_projects, or from create_project when the project is new.

Story references. Tool tables say which forms story_id accepts:

  • Key or UUID: a key like PB-42, or a full UUID.
  • Key, UUID or prefix: also a UUID prefix, such as the first 8 characters.

update_stories takes full UUIDs in stories[].id. get_story also accepts a build-sequence reference like #5.

Access. Reads need any role on the project. Writes need editor or owner. add_note needs comment access. A project you can't reach is refused as "Project not found or access denied". A refused write names the capability it needs.

Common refusals. "No story map found for this project" when the project has no map. "No story found matching ..." when a story reference names nothing. update_stories, create_stories and set_vision refuse with "Trial expired. Upgrade at https://intentdocs.com/pricing" when the map owner's trial has ended.

Criterion input. create_stories, add_criteria, replace_criteria and preview_criteria_replacement take criteria as plain strings, or objects:

FieldTypeMeaning
textstring, requiredThe criterion, e.g. "Given X, when Y, then Z".
prioritymust, should or couldDefaults to should.
given, when, thenstringThe criterion split into parts.
verificationobjectmethod is executable, agent_self_check, visual_render or founder_confirm. Optional command, check_prompt, expected.

A criterion read back from get_story can be passed straight back. Every bad field in a batch is reported at once, naming the field and what it accepts, and nothing is written.

Title and effect. This table is generated from the same hint table the server and GET /api/mcp/manifest use. Title is the human name a directory shows next to the tool. Effect is Read when the tool changes nothing, and Write when it changes the founder's project.

ToolTitleEffect
list_projectsList projectsRead
get_contextGet project contextRead
list_storiesList storiesRead
get_storyGet story detailsRead
get_statusGet project statusRead
get_release_countsGet release countsRead
wait_for_approvalWait for an approvalRead
get_byok_statusGet API key statusWrite
get_build_orderGet build orderRead
get_visionGet visionRead
get_constitutionGet visionRead
find_orphaned_releasesFind orphaned releasesRead
list_ideasList backlog ideasRead
check_release_readinessCheck release readinessRead
preview_criteria_replacementPreview criteria replacementRead
propose_drift_fixPropose drift fixRead
analyze_complexityAnalyze story complexityRead
researchResearch a questionRead
import_prdImport PRD documentRead
get_runRead a build runRead
pause_runPause a build runWrite
check_run_plansCheck a run's plansRead
get_founder_todoWhat's waiting on meRead
get_activity_explainerRead a How it works pageRead
get_session_contextGet session contextWrite
create_projectCreate a projectWrite
archive_projectArchive a projectWrite
restore_projectRestore an archived projectWrite
create_storiesCreate storiesWrite
add_ideaAdd an ideaWrite
add_criteriaAdd acceptance criteriaWrite
start_storyStart a storyWrite
next_in_runNext story in a build runWrite
update_runUpdate a build runWrite
propose_build_orderPropose a build orderWrite
release_claimRelease a claimWrite
uncancel_storyRestore a cancelled storyWrite
raise_blockerRaise a blockerWrite
needs_founderHand a step to the founderWrite
add_noteAdd implementation noteWrite
log_decisionLog a decisionWrite
complete_storyComplete a storyWrite
link_prLink pull requestWrite
get_designFetch a design referenceWrite
update_storiesUpdate storiesWrite
rename_releaseRename a releaseWrite
replace_criteriaReplace all criteriaWrite
update_criterionEdit one criterionWrite
set_visionSet vision answersWrite
publish_draftPublish the draftWrite
set_constitutionSet vision answersWrite
amend_decisionAmend a decisionWrite
retract_decisionRetract a decisionWrite
cancel_storyCancel a storyWrite
save_planSave implementation planWrite
report_criteriaReport criteria resultsWrite
save_testsSave testsWrite
save_designAttach a design referenceWrite
save_activity_explainerSave a How it works pageWrite
save_run_briefSave a run briefWrite

Kind. The sections below split writes into adds and overwrites. Clients use the hints to decide what to confirm with you.

Projects and context

ToolPurposeKind
list_projectsList every project you can reach, with vision status.Read
create_projectCreate a project in the founder's personal workspace from an agreed name and a one-line idea.Adds
get_session_contextOne compact summary to start a session. When sign-in, GitHub or payment is still open it adds a fresh one-hour action link.Adds
get_contextThe full spec as INTENT.md.Read
get_statusProgress, cancelled stories, drift, CI regressions, sync state.Read
get_release_countsEvery release's counts and burn-up, in one read.Read

list_projects

No parameters. Returns a JSON array. Each project has id, name, description, created_at, has_synced, vision_status and vision_progress. A project row may include a type-only pending_step. A second text block names the workspace the token reads from. A user-level open step is included as pending_step and is not a new link. With no projects, the array is [].

create_project

ParamTypeRequiredMeaning
namestringYesThe project name the founder agreed to.
ideastringYesA one-line description of the idea.

idea is what the project is about. It is not added to the backlog; add_idea parks backlog ideas.

Creates the project in the founder's personal workspace and returns project_id plus a link to open it. The same name and idea again within a few minutes returns that project instead of creating a second one. When the plan has no free project slot, nothing is created and the response says why, linking only to the plans page. It is a write that creates something, so hosts ask before running it. The project's activity records that it was created from a chat assistant and names the client.

get_session_context

No parameters beyond project_id. Returns workspace, project, constitution (status, progress, and summary or unanswered), stories, sync and blockers. When sign-in, GitHub or payment is still open it adds pending_step with a fresh one-hour action link. A resume can insert one hashed human_actions row and supersede older hashes. It does not create a project, vision, or story. The link is new each time, lasts at most an hour, and works only for the signed-in account that started it.

stories has counts by status, total, cancelled, map_id, and either current (the story in progress, with its criteria) or next (the highest-priority todo). It also lists spec_changed_since_built when built stories' specs have moved. Cancelled stories are left out of the counts.

get_context

ParamTypeRequiredMeaning
agent_typeclaude_code, cursor, copilot or windsurfNoWhich agent is calling.
releasenumberNoDetail this release in full; the others list story titles.
fullbooleanNotrue returns the whole document, however large.

Over 40,000 characters, the default details the first release with unfinished stories and lists the others by title, then leaves them out, then cuts the detailed release short, each time ending with a ## Left out section that says how to get the rest.

Returns the project's INTENT.md as Markdown: brief, personas, activities, release labels, stories with their criteria and design references, and going-live answers. Parked backlog ideas are left out.

get_status

No parameters beyond project_id. Returns a text summary: complete count and percentage, approved, dev complete (done), in progress and todo. It then lists the vision state, cancelled stories ("stop all work on these"), stories whose spec changed since they were built, done or approved stories whose criteria now fail in CI, and the sync state: last activity, first sync, and stories with no reported evidence. Counts leave out cancelled stories and parked ideas. Renders a progress card.

get_release_counts

No parameters beyond project_id. Returns every release in one read: number, name, in_spec, to_build, built, approved and percent, including releases with no stories. built is dev complete plus approved. percent is built divided by in spec, rounded, and 0 when the release is empty. Cancelled stories and parked ideas are left out. Each release also has burnup (since and points) in the same shape as the web overview chart.

The iOS app calls the same numbers at GET /api/storymapper/{mapId}/release-counts with its bearer token. A signed-in founder can call it too. An agent's token is refused on that address; agents use this tool. On both MCP addresses.

Vision

ToolPurposeKind
get_visionRead the five vision questions and answers.Read
set_visionSave answers, in full or in part.Overwrites
publish_draftWrite the unpublished story map onto the map after the founder agrees.Overwrites

get_constitution is a deprecated alias of get_vision, and set_constitution of set_vision. They stay callable for older agents and are hidden from new tool lists. Same schema, same result. See Deprecations.

get_vision

No parameters beyond project_id. Returns status (missing, draft or complete), progress, unanswered, and questions. Each question has key, heading, hint, text and answered_at. A complete vision also has a short summary.

set_vision

ParamTypeRequiredMeaning
answersobjectOne of these twoKeys users, problem, switch, first, proof, each a non-empty string. Keys you leave out are untouched.
reportstringOne of these twoA brownfield report to derive answers from. Only users can be derived from a codebase.
confirmbooleanNoRequired when a report-derived answer would replace an answered key.

With both, answers wins for the keys it names. Returns status, progress, unanswered, next_step and questions, plus missing_constitution_keys for a report.

Refused with neither parameter, or with error: "invalid_report" and the problems. A report that would overwrite an answer returns requires_confirmation: true and would_overwrite, and writes nothing until you call again with confirm: true.

The fifth saved answer stores the vision, a draft screen list and an unpublished story map. Nothing is written onto the map until the founder agrees.

publish_draft

ParamTypeRequiredMeaning
confirmbooleanNotrue once the founder has agreed to publish the draft. Without it, nothing is written and the review link is returned.

This tool has no resume token. A resumed or expired link never publishes a draft. With confirm: true the unpublished story map is written onto the map and the draft is cleared. The draft screen list stays.

Stories

ToolPurposeKind
list_storiesList stories with filters.Read
get_storyEverything about one story.Read
create_storiesAdd stories to the spec, by hand or from a brownfield report.Adds
update_storiesChange story fields, in a batch.Overwrites
cancel_storyStop work on a story, reversibly.Overwrites
uncancel_storyRestore a cancelled story.Adds
import_prdParse a PRD into a story structure. Saves nothing.Read

list_stories

ParamTypeRequiredMeaning
statustodo, ready_for_dev, in_progress, needs_rework, done or approvedNoFilter by status.
activitystringNoFilter by activity name, ignoring case.
releasenumberNoFilter by release number.
limitnumberNoMaximum stories. Defaults to 50 with no filter, 200 with one.
offsetnumberNoSkip this many matching stories first.
fieldsarray of criteria, notes, user_story, depends_on, build_sequenceNoExtra detail per story.

Returns map, stories and summary. Each story has id, key, title, status, activity, release, priority, effort, criteria_count, passing_count and version, plus cancelled_at and cancellation_reason when cancelled. When the limit cuts the list, the result has truncated, showing and total_matching. Parked ideas are left out.

get_story

ParamTypeRequiredMeaning
story_idstringYesKey, UUID, prefix, or build-sequence reference like #5.

Returns the story with:

  • key, suggested_branch, title, status, activity, user_story, priority, effort, release, build_sequence, depends_on, version
  • claim: who is building it, the client, claimed_at, last_seen_at, and state (held or stalled)
  • acceptance_criteria: each with id, text, priority, given/when/then, verification, last_result, test_count, and ci_regressed when CI now fails it
  • tests, and test_coverage with untested_criteria and unlinked_tests
  • plan (the structured plan, its version and review state), plan_feedback, plan_warnings, and the older implementation_plan when there is one
  • notes, review_notes, implementation_summary, implemented_files, implemented_at
  • spec_changed_since_built, and tests_predate_code when results are older than the latest code change in the linked PR
  • design_refs: each with id, kind, url, selector, match_instruction, drifted
  • record (who marked it ready, built it and approved it) and history (every status change, by whom and from where)

Renders a story card.

create_stories

Adds stories to the spec. To park an idea that is not ready to build, use add_idea instead.

ParamTypeRequiredMeaning
storiesarrayOne of stories or reportStories to create.
stories[].titlestringYesStory title.
stories[].activitystringNoActivity name. Created if new.
stories[].as_a, i_want, so_thatstringNoThe user story.
stories[].prioritymust, should or couldNoDefaults to should.
stories[].effortXS, S, M, L or XLNoDefaults to M.
stories[].release_ordernumberNoDefaults to 1. See Releases.
stories[].acceptance_criteriaarrayNoSee criterion input above.
reportstringOne of stories or reportA brownfield report. Each bullet under "Existing features" becomes a story, under the activity "Existing functionality (from brownfield report)".
confirmbooleanNoRequired when report targets a map that already has stories.
forcebooleanNoSkip the vision gate. Not recommended.

New stories start as todo. A title that matches a live story on the map, ignoring case, is skipped rather than duplicated.

Returns created, and stories with each new story's id, title and criteria ids. Also skipped_duplicates when titles were skipped, and missing_constitution_keys and missing_sections for a report.

Refused without a complete vision (error: "constitution_required"), for bad criteria (nothing is created), or for a release out of sequence. A report on a non-empty map without confirm returns requires_confirmation: true with a stories_preview, and writes nothing.

update_stories

ParamTypeRequiredMeaning
storiesarrayYesOne entry per story.
stories[].idstring (UUID)YesThe story.
stories[].expected_versionnumberNoRefuse if the story changed since this version.
stories[].statustodo, in_progress, needs_rework or doneNoready_for_dev and approved are refused: a person sets them in the app.
stories[].title, priority, effortNoAs in create_stories.
stories[].releasenumberNoMove to this release. The next sequential number creates it.
stories[].activitystringNoMove to this activity. It must exist.
stories[].sort_ordernumberNoPosition in its activity lane, from 0.
stories[].build_sequencenumber or nullNoRefused. Agents can't change the build order. The founder reorders on the Plan tab. The refusal includes that link. Other fields in the same call still save.
stories[].dependenciesarray of UUIDsNoReplaces the story's dependencies.
stories[].notesstringNoReplaces the notes. To append, use add_note.
stories[].implementation_summary, implemented_filesNoWhat was built.
stories[].as_a, i_want, so_thatstringNoThe user story.

Returns updated, the applied stories, dependencies_updated, and readyReleases with a release_note when a release can now be closed.

Refused for human-only statuses, an unknown activity (the valid names are listed), a release out of sequence, or a dependency outside the project. With expected_version, every row is checked before any is written. One stale row refuses the batch with VERSION_CONFLICT and stale_stories.

Setting status: "done" here skips the must-criteria gate and doesn't release the story's claim. To finish a story you built, use complete_story.

cancel_story

ParamTypeRequiredMeaning
story_idstringYesKey, UUID or prefix.
reasonstringNoShown wherever the story appears.

Drops the story from progress counts and "what's next" answers. Its status stays as it was, and nothing is deleted. Returns cancelled: true, status_preserved, cancellation_reason and effect. Refused when the story is already cancelled.

start_story and complete_story refuse cancelled stories, with the reason.

uncancel_story

ParamTypeRequiredMeaning
story_idstringYesKey, UUID or prefix.

Restores the story at the status it was cancelled at, never reset to todo. Refused when the story isn't cancelled.

import_prd

ParamTypeRequiredMeaning
prdstringYesThe PRD or spec text.
formatPRD, Markdown or textNoDefaults to PRD.
forcebooleanNoSkip the vision gate. Not recommended.

Parses the text with AI. Returns hierarchy (activities, their steps and stories with acceptance criteria), a summary of counts, and existingActivities. It doesn't write stories to the map. Pass the stories you want to create_stories.

Refused without a complete vision. A failed parse returns "PRD import failed" with the HTTP status.

Backlog ideas

An idea is something parked that is not ready to build. It is not a story: it has no acceptance criteria or release, it is not part of the spec, and no build tool sees it. The founder promotes, kills or revives ideas on the project's Backlog page. No tool does that.

ToolPurposeKind
add_ideaPark an idea that is not ready to build on the project's backlog.Adds
list_ideasList the backlog's open and killed ideas.Read

add_idea

ParamTypeRequiredMeaning
titlestringYesThe idea in one line, up to 300 characters.
detailstringNoMore about it, up to 2000 characters.

Parks the idea at the bottom of the open list on the project's backlog. It does not add a story to the spec, and it creates no activity or step. To add a story to the spec, use create_stories.

Returns idea with its id, title, detail and status (open), a backlog_url to the Backlog page, and a note. Refused when title is empty or too long, and when the project has no story map: no map is created.

list_ideas

No parameters beyond project_id. Returns open and killed counts, ideas, and backlog_url. Each idea has id, title, detail and status (open or killed); a killed idea also has kill_reason and killed_at. These are backlog ideas, not spec stories. An idea the founder promoted is a story now, so it is not listed here: find it with list_stories.

Building a story

ToolPurposeKind
start_storyClaim a story and get everything needed to build it.Adds
save_planSave the next version of a story's plan.Overwrites
save_testsSave tests and link them to criteria.Overwrites
report_criteriaRecord pass, fail or blocked per criterion.Overwrites
raise_blockerRecord a blocker and the decision needed.Adds
add_noteAppend an implementation note.Adds
complete_storyMark a story done, with a summary and PR.Adds
link_prLink a pull request to a story.Adds
wait_for_approvalWait for a person to approve, send back or change one story.Reads

start_story

ParamTypeRequiredMeaning
story_idstringYesKey, UUID or prefix.
release_currentbooleanNoThis session already holds another story: put it back and start this one.

Sets the story to in_progress and claims it for this session. A story with no build sequence is added to the end of the build order.

Returns story_id, title, status, priority, effort, release, build_sequence, version, user_story, notes, acceptance_criteria, plan and plan_feedback, design_refs, affected_built_stories, warnings and note. You don't need get_story as well. Renders a story card.

warnings can say: the story was already in progress; it was taken over from a quiet session; another session's plan touches the same files; other stories are in progress; criteria have no linked test yet; the story has no criteria or no plan; it is outside the current release; or the plan touches files that built stories own, which you should re-verify before completing.

Refused when the story is cancelled, when the project's build gate isn't met, when this session already holds another story (unless release_current: true), or when another live session holds it. See One story per session.

save_plan

ParamTypeRequiredMeaning
story_idstringYesKey, UUID or prefix.
stepsarray, at least oneYesThe whole new version, in order.
steps[].textstringYesThe step.
steps[].idstringNoThe step's id from the current plan (s1, s2, ...) when this step continues one.
steps[].filesarray of stringsNoFiles this step creates or changes.
questionsarray of text and optional optionsNoThings a person needs to decide before building.
riskstringNoOne line on what could go wrong. Shown to the reviewer first.
responsesarray of feedback_id and replyWhen changes were requestedYour answer to every point in plan_feedback.
expected_versionnumberNo, but recommendedRefuse if the story changed since you read it.

Returns story_id, the saved plan, review: "awaiting", how many feedback points were answered, and warnings.

Refused with FEEDBACK_UNANSWERED and the open plan_feedback when a requested change has no response, or VERSION_CONFLICT. Steps a person edited keep their words: pass their id and text unchanged. A save that rewords or drops one is saved, recorded as a conflict for the reviewer, and warned about.

save_tests

ParamTypeRequiredMeaning
story_idstringYesKey, UUID or prefix.
testsarray, at least oneYesTests to add or link.
tests[].idstringNoAn existing test's id, to set its links. Omit to add a new test.
tests[].titlestringUnless id is givenThe new test's title.
tests[].steps, expected_resultstringNoHow to run it and what passing looks like.
tests[].test_typefunctional, edge_case, integration or error_handlingNoDefaults to functional.
tests[].criterion_idsarray of stringsNoFull ids of the criteria this test proves. Prefixes aren't accepted here. One test can prove several.
tests[].filestringNoTest file path as JUnit reports it, e.g. src/lib/__tests__/foo.test.ts.
tests[].full_namestringNoFull test name as JUnit reports it, e.g. MyLib > when X > does Y. Set with file to match CI results.

Returns added, linked, tests, untested_criteria and unlinked_tests. A criterion id that isn't a live criterion on the story is refused, with the valid ids listed, and nothing is saved. So is an id that names no test on the story.

report_criteria

ParamTypeRequiredMeaning
story_idstringYesKey or UUID.
resultsarrayYesOne entry per criterion.
results[].criterion_idstringYesFull id, or a prefix of at least 4 characters that names one criterion.
results[].statuspass, fail or blockedYesThe result.
results[].detailstringNoWhat you observed.
results[].caveatstringNoAnything a person should read before accepting this result. A result with a caveat is never bulk-approved.
results[].testsarray of file, full_name, optional titleNoTests that prove this criterion. Saved as the story's tests and linked.
expected_versionnumberNoRefuse if the story changed since this version.

Each result is stored as the criterion's latest, with its attempt number and time. A story still todo moves to in_progress and is claimed for this session. Reporting also clears the story's "code changed" flag.

Returns updated, passed, failed, started when the story was started, tests_saved when tests were named, and the full criteria list.

If any criterion_id names no criterion, names more than one, or appears twice, the whole report is refused, nothing is saved, and the valid ids are listed. Also refused with VERSION_CONFLICT.

raise_blocker

ParamTypeRequiredMeaning
story_idstringYesKey, UUID or prefix.
summarystringYesShort summary.
attemptingstringYesWhat you were trying to do.
failingstringYesWhat's failing and why.
decision_neededstringYesThe single decision the owner needs to make.
criterion_idstringNoThe blocked criterion.
attemptsnumberNoHow many fix attempts were made. Defaults to 1.

Records the blocker on the story and in the project's activity. Returns the summary and the decision needed. Stop work on the story after calling it.

add_note

ParamTypeRequiredMeaning
story_idstringYesKey, UUID or prefix.
notestringYesThe note.

Appends to the story's notes after a blank line. Needs comment access, not edit access.

complete_story

ParamTypeRequiredMeaning
story_idstringYesKey, UUID or prefix.
summarystringYesWhat you built, key decisions, anything the owner should know.
implemented_filesarray of stringsNoFiles created or changed.
pr_urlstring (URL)NoThe pull request to link and stamp.
forcebooleanNoMark done even with failing must criteria. Use sparingly.

Sets the story to done, saves the summary and files, releases the claim and links the PR. When GitHub is connected, the PR body is stamped with the IntentDocs footer. Otherwise the response gives you the footer line to add.

The response is text. It names must criteria with no linked test, files that overlap built stories or another session's planned work, and, when the GitHub App is installed, files that differ between implemented_files and the PR. It ends with the next story in the release by build sequence, and the top of the whole build order when that is a different story. Renders a story card.

Without force, it refuses while any must criterion is failing or unreported, listing each with its state. It can also refuse when implemented_files overlaps built stories and the project's PR check is set to require action. Fix and report, or pass force: true. Refused for a cancelled story.

wait_for_approval

ParamTypeRequiredMeaning
story_idstringYesKey or UUID.
kindplan, acceptance, founder_steps or ready_for_devYesWhat the story waits on.
max_secondsinteger, 10 to 120NoHow long to hold. Default 120.

Holds the request open and re-reads the story every 3 seconds — one read of one row, no model call. Returns outcome approved, rejected or changed the moment a person acts (changed covers a new plan version, a stale approval, or some founder steps ticked, with founder_steps {done, total}), or still_waiting at the cap — call it again with the same arguments. Returns at once when the story is already decided. One agent token holds at most 3 open waits; a fourth is refused with too_many_waits.

Every response with waiting_for for a plan, an acceptance or ready for dev on one story carries waiting_for.next with these arguments, and needs_founder returns them as wait_args with kind founder_steps.

ParamTypeRequiredMeaning
story_idstringYesKey, UUID or prefix.
pr_urlstring (URL)Yese.g. https://github.com/org/repo/pull/123

Saves the link, so the PR number shows on the story card, then stamps the PR body as complete_story does. The link is saved even when stamping fails.

Criteria

ToolPurposeKind
add_criteriaAppend criteria to a story.Adds
update_criterionChange one criterion's text or priority.Overwrites
preview_criteria_replacementShow what a replacement would change.Read
replace_criteriaReplace all of a story's criteria.Overwrites

report_criteria is under Building a story.

add_criteria

ParamTypeRequiredMeaning
story_idstringYesKey or UUID.
criteriaarrayYesCriteria to append.

Existing criteria are kept. Returns added, total, and the new criteria with their ids. Bad criteria are refused, and nothing is added.

update_criterion

ParamTypeRequiredMeaning
story_idstringYesKey or UUID.
criterion_idstringYesThe full criterion id.
textstringOne of text or priorityNew wording.
prioritymust or shouldOne of text or priorityNew priority.
expected_versionnumberNoRefuse if the story changed since this version.

Every other criterion, and this criterion's id and results, stay as they are. Returns updated_criterion and other_criteria_untouched. Refused with nothing to change, an unknown id (the valid ids are listed), or VERSION_CONFLICT.

preview_criteria_replacement

ParamTypeRequiredMeaning
story_idstringYesKey or UUID.
criteriaarrayYesThe proposed full set.

Writes nothing. Returns would_remove, would_add, removing (with has_results and last_status for each), adding, and an evidence_warning when criteria with reported results would be discarded.

replace_criteria

ParamTypeRequiredMeaning
story_idstringYesKey or UUID.
criteriaarrayYesThe full new set.
expected_versionnumberNoRefuse if the story changed since this version.
dry_runbooleanNoDeprecated. Use preview_criteria_replacement. Still accepted this release and removed in the next release.

Deletes every criterion and inserts the new set. On a done or approved story, a new criterion worded the same as an old one keeps the old id and result. Returns replaced and the new criteria with their ids. Refused for bad criteria or VERSION_CONFLICT.

Build order and runs

ToolPurposeKind
get_build_orderThe order stories are built in.Read
propose_build_orderPropose an order for the founder to review on the Plan tab. Changes no story.Adds
get_runA build run, its stories, and its brief or report with staleness.Read
check_run_plansShared files, migrations and libraries across a run's plans, and the same computed facts a brief would. Writes nothing.Read
save_run_briefSave why these stories belong together. IntentDocs computes the facts. Does not count as a build.Overwrites
get_founder_todoEverything waiting on the founder, across every project.Read
next_in_runStart the next story in an approved run.Adds

get_build_order

ParamTypeRequiredMeaning
limitnumberNoHow many entries to return.
offsetnumberNoSkip this many entries first.
include_donebooleanNoInclude done and approved stories.

An order of more than 50 entries returns the next 50 still to build, with truncated, total, done_count, next_offset and a more line; the card is unchanged. Returns order, each story with id, title, activity, effort, priority, status, build_sequence, depends_on and reason. Also generated_at. Stories with no build order yet are listed under unsequenced (each with unsequenced: true, its release and story_url), with a note saying how many.

The order lists stories with a build sequence, and finished stories; agents don't build an unsequenced story until it's sequenced. Sequence the rest on the Plan view, or propose an order with propose_build_order. If the project offers current-release stories first, those come first, in their existing order. Renders a card with a reorderable build order.

propose_build_order

ParamTypeRequiredMeaning
orderarrayYesStories first to last, each { story_id, reason }. story_id is the key, like PB-42, or the id. reason is one sentence the founder reads beside the story.

Agents can't set build_sequence. This saves a proposal and changes no story. The Plan tab offers it with Review and Dismiss. Review opens the same panel as a generated order, and only Save order writes it. A new proposal replaces one the founder hasn't reviewed.

The order runs release by release. Stories that already have a place must all be listed, in their current order; place the rest among them. Each new story goes right after the story listed before it. Unknown, repeated or cancelled stories are refused, and nothing is saved. Returns proposed, stories, placing (how many stories it gives a place) and plan_url.

get_run

ParamTypeRequiredMeaning
runstringYesThe run's key, like R-7, or its id.

Returns run (key, id, title, status, concurrency, on_failure), progress, and stories in build order. Each story has its status, claim, pull request, has_plan, plan_steps and acceptance_criteria with each result. A claim held by a worker includes worker_id and lease_expires_at. release is why the story was handed back, until someone takes it again. next says what to do: call next_in_run, wait for approval, or stop. brief is the saved brief, or the report once the run is complete, with facts computed on this read and stale. Once the run is complete, report is that same document in the past tense: accepted stories and their pull requests, demo steps with proof marks, computed deviations (scope drift, plans changed after lock, skipped, blocked and dropped stories, migrations added) and the agent's notes. brief.approval says whether an approval still stands: a material change re-opens it, and a smaller change says it changed since you approved without asking again. ChatGPT reads the brief and the report and cannot save or approve either. Refused when no run matches. On both addresses. Reading it changes nothing.

check_run_plans

ParamTypeRequiredMeaning
runstringYesThe run's key, like R-7, or its id.

Call it before review. Returns overlaps (shared step files, touches, migrations from a plan's risk_areas or a migration path, and libraries named in introduces), uncovered_musts, and suggested_parallel tiers. computed is the same activities, graph, lanes, overlaps, hand-applied migrations, stops, unlocked stories, separable stories and uncovered musts a brief would return, even when no brief is saved. Each story includes its story_url. Writes nothing. Not on the ChatGPT address — a planning agent calls it on the main server. save_plan accepts optional introduces, the libraries that plan adds.

save_run_brief

ParamTypeRequiredMeaning
runstringYesThe run's key, like R-7, or its id.
expected_versionnumberYesThe current version, or 0 when the run has no brief yet.
kindstringYesbrief, or report once the run is complete.
goalstringYes1 to 3 plain sentences, at most 400 characters, no file names or code. Nothing is written for you.
rationalearrayYesEach item has text and story_keys.
left_outarrayYesStories left out, each with story keys and a reason.
fitstringYesHow the run fits the product.
risksstringYesWhat could go wrong, in plain words.
demoarrayYesEach item has step and optional criteria.
under_the_hoodstringNoFolded detail.
notesstringNoA report's deviation notes, in the past tense. IntentDocs still computes the deviations.

Stores the next version and returns the facts IntentDocs computed. A report also returns accepted stories and pull requests, demo proof marks, and the computed deviations, and marks every activity the run touched explainer_due with reason run consolidation. A claim that cites stories with no computed link, or a left-out story with no reason, is a warning. A report before the run is complete, a bad goal, or a stale expected_version saves nothing. Does not count as a build. Not on the ChatGPT address — ChatGPT reads the brief and the report through get_run.

get_founder_todo

ParamTypeRequiredMeaning
project_idstring (uuid)NoOnly this project's items. Omit it for every project.

Returns what waits on the founder, most unblocking first: steps an agent handed them (needs_founder), blockers, plans awaiting approval (or approved before the spec changed), and built stories awaiting acceptance. An item that unblocks more unbuilt stories comes first, then items in an approved run. Each item has a url to the page where it's cleared, plus kind, story_key, action, detail, unblocks and run. get_status ends with the same list for its project, and the app's To do page and the daily email carry it too. On both addresses.

next_in_run

ParamTypeRequiredMeaning
runstringYesThe run's key, like R-7, or its id.
worker_idstringNoThis worker's id. The claim is held by the worker, so other workers on the same connection can take other stories. Omit it and the claim is held by this MCP session, as before.

When there is a story to build, starts it and returns what start_story returns, plus run with key, position and of, and lease_expires_at. A run claim lasts 30 minutes and any call on the connection keeps it alive. When the lease expires the story returns to the queue. Call it again after each complete_story.

Otherwise returns run, state and message, and you stop. state is draft, paused, cancelled, stopped, complete, full or waiting. waiting includes waiting_on, the stories the rest depend on. When a run completes and the next phase is lined up as a draft for a person to approve, next_run names it. Don't start it until next_in_run hands it out.

release_claim

ParamTypeRequiredMeaning
story_idstringYesThe story's key, like PB-42, its id, or a prefix.
reasonstringYesWhy it is going back to the queue, in one line. The run page shows it.
worker_idstringNoThe worker that holds the claim. Omit it to release the claim this MCP session holds.

Hands the story back. A story that was in progress returns to to do, or to ready for dev if it had reached that, and the claim is deleted. The run keeps the reason until someone takes the story again. A live claim held by someone else is refused. A claim that has gone quiet can be released.

Releases

ToolPurposeKind
check_release_readinessPre-flight check before building a release.Read
rename_releaseRename a release.Overwrites
find_orphaned_releasesFind releases stories use but the canvas can't show.Read

Releases are created by placing stories in them. Pass the next sequential number as release in update_stories or release_order in create_stories, and the release is created, as the canvas's "Add release" does. A bigger jump is refused, naming the next available number. Release 1000 is Go live, the release every project ends with.

A release number stories use with no label is an orphan, and the canvas doesn't show it. Placing a story in an orphan creates its label.

check_release_readiness

ParamTypeRequiredMeaning
release_ordernumberNoThe release to check. Omit it to check the current release: the one the team made current, else the first that isn't closed.

Show the report to the person and ask before building.

Returns release, release_order, auto_selected, selection_reason, counts (total, done, in_progress, to_build), gaps, verification_gaps, blocking, advisory, ready and a Markdown report. Renders a progress card.

  • Gaps block the verdict: a story to build with no criteria, or no must criteria.
  • Verification gaps also block: a finished story with no passing result, or with passing results reported more than an hour before it was implemented.
  • Advice doesn't block: stories with no plan, under advisory.missing_plans.
  • Acceptance says how approved stories were accepted: reviewed by someone else, self-accepted, carried end to end by one person, or approved before the record began. A viewer's agent doesn't get it.

An unknown release is refused, listing the valid releases.

rename_release

ParamTypeRequiredMeaning
release_ordernumberYesThe release to rename.
labelstringYesThe new name.

Returns release_order, previous_label and label. Refused when the release doesn't exist yet. Create it first by placing a story in it.

find_orphaned_releases

No parameters beyond project_id. Returns orphaned_releases, and orphans with each release number, its story_count and stories. When there are orphans, fix says how to heal one: call update_stories on one of its stories with release set to that number.

Decisions

ToolPurposeKind
log_decisionRecord a decision.Adds
amend_decisionCorrect a decision.Overwrites
retract_decisionWithdraw a decision, keeping the record.Overwrites

log_decision

ParamTypeRequiredMeaning
titlestringYesShort title.
descriptionstringYesWhat was decided and why.
categoryarchitecture, product, technical or trade-offNoDefaults to technical.
story_idstringNoA story to link it to.

Records the decision and an activity entry. Returns a confirmation with the title.

amend_decision

ParamTypeRequiredMeaning
decision_idstringYesFull UUID or prefix.
title, descriptionstringAt least one fieldThe new text.
categoryas in log_decisionAt least one fieldThe new category.

Refused with nothing to change, an unknown id, or a retracted decision.

retract_decision

ParamTypeRequiredMeaning
decision_idstringYesFull UUID or prefix.
reasonstringNoWhy.

Marks the decision retracted with a time and reason. Nothing is deleted. Refused when already retracted.

Design

ToolPurposeKind
save_designAttach a design reference to a story.Overwrites
get_designFetch a Figma or Claude design for a story.Adds

save_design

ParamTypeRequiredMeaning
story_idstringYesKey, UUID or prefix.
urlstringYesA Figma frame, a claude.ai design, an image, a Storybook story, or a repo-relative path.
kindfigma, claude-design, image-url, repo-path, storybook or otherNoInferred from the URL when left out.
selectorstringNoFrame or node id, Storybook path. Taken from the URL where possible.

The reference shows under Spec › Design, grouped by the story's activity. Attach the same URL to every story a screen covers. Existing references stay. Returns ref and design_refs_count, or already_attached: true with the existing reference.

get_design

ParamTypeRequiredMeaning
story_idstringYesKey, UUID or prefix.
ref_idstringNoWhich reference, from get_story's design_refs. Omit when the story has one Figma or Claude design reference.

Fetches the design so the agent can see it without its own credentials: the HTML of a Claude design, or Figma's node or file JSON. Returns ref_id, kind, url, content_type, content (the first 50,000 characters), fetched_at, content_hash and drifted. drifted: true means the design changed since an earlier fetch. Only the hash and time are stored.

Other kinds have nothing to fetch: open their URL. Figma needs a token configured on the IntentDocs server. Without one, the result says Figma isn't configured. A failed fetch returns error: "FETCH_FAILED".

How it works

ToolPurposeKind
save_activity_explainerSave the next draft of an activity's How it works page.Overwrites
get_activity_explainerRead that page, with marks and staleness computed on the read.Read

Both are on the main MCP server. ChatGPT's read-only tool is a later story, and so are the web panel, the build skill and the digest. Neither call counts as a build.

save_activity_explainer

ParamTypeRequiredMeaning
activitystringYesThe activity's id, an id prefix, or its title.
expected_versionnumberYesThe page's current version. 0 when it has none.
based_onarray of stringsYesStory keys the page is based on. Each must be done or approved.
summarystringYesWhat the activity does.
stepsarray of stringsYesHow it works, 3 to 6 steps.
branchesarray of when and thenNoOptional branches.
rulesarray of text and criteriaYesKey rules. Criteria are ids, prefixes, AC1, or INT-12 AC1.
under_the_hoodstringNoFolded detail.
story_idstringNoThe story this draft belongs to.

A story that is not done or approved, or a rule that cites nothing, is refused and nothing is stored. A stale expected_version is refused with error: "VERSION_CONFLICT". Unknown criteria, rules whose citations did not resolve, and files no based-on story implemented come back in warnings. The draft is versioned. Marks are not stored.

get_activity_explainer

ParamTypeRequiredMeaning
activitystringYesThe activity's id, an id prefix, or its title.

Returns the latest page. Each rule has a mark: blue when a passing test is newer than the last commit, red when a criterion is failing or regressed, grey when it is only claimed or unreported. made_of lists the stories and files the page is built from. stale is { stale, reasons }, computed on this read and never stored. When the activity has no page yet, found is false and made_of still lists its done and approved stories.

Drift and analysis

ToolPurposeKind
propose_drift_fixPropose how to settle a story whose spec drifted after it was built.Read
analyze_complexityScore stories' complexity with AI.Read
researchResearch a question with the project as context.Read

propose_drift_fix

ParamTypeRequiredMeaning
story_idstringYesKey, UUID or prefix. The story must be drifted (code_changed or regressed).

Reads the PR diff and the spec, then proposes either spec changes that lock in what was built, or a rework note for the code. Nothing is written. A person accepts the proposal or sends the story back. Returns text with the drift, the verdict (update_spec or rework), the reasoning, and the spec changes or rework instruction. A story with no drift says so.

analyze_complexity

ParamTypeRequiredMeaning
story_idsarray of stringsNoStories to analyze. Defaults to every story not done.

Returns, per story, a complexity score from 1 to 10, the reasoning, risks and a suggested effort. Nothing is saved.

research

ParamTypeRequiredMeaning
querystringYesWhat to research.

Returns findings, recommendations, risks and next steps as text. Nothing is saved.

Resources and prompts

Card resource

The hosted server registers one resource, ui://intentdocs/card.html. Clients that support MCP Apps, such as Claude.ai and Claude Desktop, render it as an interactive card beside these tools' results:

  • Story card: get_story, start_story, complete_story
  • Progress card: get_status, check_release_readiness
  • Build order card, which can reorder stories: get_build_order

A card-bearing tool's structuredContent carries everything its text does, plus a card object. Some clients show the agent structuredContent instead of the text, so nothing is lost either way. Cards name stories by their keys.

Prompts

spec-my-idea takes no arguments. It starts the flow described on Spec my idea. The prompt, the server instructions and that page are one text.

intentdocs-workflow takes no arguments. It returns a guide to the workflow: orient, check release readiness, pick a story, start it, build, save tests, report criteria, raise blockers, complete, repeat. Its examples use the same tools and parameters as this page.

Local server

The local server, started by npx intentdocs mcp, is a separate, smaller server. Its tools act on the one project linked in .intent/config.json, so none of them take project_id. It authenticates with the login saved by npx intentdocs login. story_id accepts a story key like PB-42, a full UUID or a UUID prefix.

--mode picks the tools. Each mode includes the ones before it. The default is all. A tool outside the current mode is refused with the mode it needs.

Core (7 tools)

ToolParametersWhat it does
list_storiesfilter (optional): todo, in_progress, done, or a search termStories with status, priority, effort and criteria, and a summary.
mark_in_progressstory_idMark a story in progress.
report_criteriastory_id, results of criterion_id, status (pass, fail or blocked), optional detail and attemptReport criteria results.
raise_blockerstory_id, summary, attempting, failing, decision_needed, optional criterion_id and attemptsRecord a blocker. Stop work after, and don't call mark_done.
mark_donestory_id, optional forceMark done. Returns the blocking list instead while any must criterion is failing or unreported, unless force: true.
get_statusnoneDone, in progress and todo counts.
add_notestory_id, noteAdd an implementation note.

Standard (adds 5)

ToolParametersWhat it does
create_storytitle, optional activity, priority (must, should, could), effort (S, M, L, XL)Create one story.
get_contextnoneThe project's INTENT.md.
log_decisiontitle, description, optional category, story_idRecord a decision.
amend_decisiondecision_id, optional title, description, categoryCorrect a decision.
retract_decisiondecision_id, optional reasonWithdraw a decision.

All (adds 3)

ToolParametersWhat it does
analyze_complexityoptional story_idsAI complexity scores.
researchqueryAI research with project context.
import_prdprd, optional format (PRD, Markdown, text)Parse a PRD into stories.

Resources

Always available, whatever the mode:

ResourceURIType
Story Mapintentdocs://project/storymaptext/markdown
Storiesintentdocs://project/storiesapplication/json
Project Statusintentdocs://project/statusapplication/json
Decisionsintentdocs://project/decisionsapplication/json
Data Modelintentdocs://project/data-modelapplication/json
Build Orderintentdocs://project/build-orderapplication/json

Cancelled stories

If a story has been cancelled, the local server refuses every tool call that names it, except list_stories and get_status. The response starts "Development of ... was cancelled" and tells the agent to stop all work on it. Treat it as a hard stop, not an error to retry.

What the local server doesn't have

There are no claims, build runs, plans, tests, design tools or PR linking. mark_in_progress and mark_done are the local equivalents of start_story and complete_story, without the claim, the summary or the next-story handout.