mcp
v0.18.0Nimara MCP server — AI tool integration for Claude, Codex, and others
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_orgs
List all organizations (and the personal workspace) the authenticated user belongs to. Use this first to discover org IDs needed by other tools.
list_projects
List projects in a given organization. Call list_orgs first to find the orgId. Each project includes `statuses` — its workflow in board order. Read that before setting a status on any item: those names are the only accepted values, and anything else is rejected. `folder` and `isFavorite` come from the sidebar of the person you work for: the folder they filed the project in (absent at the top level) and whether they starred it. File a project with move_project_to_folder.
| Parameter | Type | Description |
|---|---|---|
orgId * | string | orgId from list_orgs |
list_work_items
List non-archived work items in a project, oldest-created first. Returns { items, nextCursor, hasMore }. Long descriptions are previewed — an item with descriptionTruncated: true has more text, readable via fullDescriptions. When hasMore is true, call again with cursor set to nextCursor to get the next page — the FIRST page is the OLDEST items, so recently created ones are on the LAST page and you have not seen the project until hasMore is false. Narrow with status/type/parentId/needsReview rather than paging and filtering yourself. If you already know which items you want, use get_work_it…
| Parameter | Type | Description |
|---|---|---|
projectId * | string | projectId from list_projects |
cursor | number | nextCursor from the previous page. Omit for the first page. |
fullDescriptions | boolean | Return descriptions in full instead of previewed. Costly on large projects — prefer paging, or read one item at a time. |
limit | integer | Items per page (default 50, max 200). |
needsReview | boolean | true returns only items flagged needsReview; false only unflagged ones. Omit for both. |
parentId | string | Only direct children of this workItemId. One level, not the whole subtree. |
status | Only items in these statuses. Names come from the project's statusOrder (e.g. 'In Progress'). One name or a list. | |
type | Only items of these types. One type or a list. |
get_work_items
Read specific work items by id — the cheap way to re-read items you already know about. Prefer this over list_work_items whenever you have a displayId (e.g. NIM-T75) or a workItemId: listing a project returns every item and its description, which is orders of magnitude more data. Accepts up to 50 ids per call and always returns descriptions in full. Returns { items, notFound }; ids in notFound either do not exist or are not readable by this token. displayIds require projectId (they are unique per project, not globally); workItemIds do not. An item an agent is working on carries `agentWorking…
| Parameter | Type | Description |
|---|---|---|
displayIds | array | Human-facing ids like ['NIM-T75', 'NIM-F27']. Case-insensitive. Requires projectId. |
projectId | string | projectId from list_projects. Required only when passing displayIds. |
workItemIds | array | Raw workItemIds, as returned by create_work_item or list_work_items. |
search_work_items
Find work items in a project by title. Use this to answer 'does an item for X already exist?' — listing the whole project and filtering yourself is far more expensive and, because the first page is the OLDEST items, easy to get wrong. Matches TITLES only, not descriptions. Returns { items, query } with descriptions previewed; once you know which item you want, get_work_items returns it in full. Capped at 25 results — narrow the query rather than paging. Call list_projects first for the projectId.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | projectId from list_projects |
q * | string | Words to match against item titles, e.g. 'mobile modal' or 'shortcut'. Matching is full-text, so word order does not matter. |
limit | integer | Maximum results (default and maximum 25). |
review_queue_summary
Check what people have handed to an agent, across every org and project you can see, without reading any of it. Call this first on a review run: when `waiting` is 0, stop; otherwise call list_ai_review_queue only for the projects listed in `projects`. Returns { waiting, followUps, newSince, oldestAt, projects: [{ projectId, name, prefix, waiting }], items: [{ workItemId, displayId, projectId, followUp, at }], capped }. `followUps` are items a person answered and handed back: do those first. `newSince` counts items handed over after `since`.
| Parameter | Type | Description |
|---|---|---|
since | integer | Epoch ms of your last look; newSince counts only items handed over after it. |
list_ai_review_queue
List work items in a project that a human has flagged for AI review (aiReviewRequested). Descriptions come back in full here, since enrichment needs the whole text. Each item also carries recentComments (the last few, oldest first) and, when a person has written one, `answer`: the newest human comment. READ `answer` FIRST. When you flagged an item with a question and it is back in this queue, `answer` is the person's reply to that question; act on it rather than asking again. Items come FOLLOW-UPS FIRST: `followUp: true` means a person answered your question and handed the item back, so finish…
| Parameter | Type | Description |
|---|---|---|
projectId * | string | projectId from list_projects |
cursor | number | nextCursor from the previous page. Omit for the first page. |
limit | integer | Items per page (default 50, max 200). |
get_active_block
The project's ACTIVE BLOCK: the small, ordered set of work a person has committed to right now. Call this BEFORE list_work_items when deciding what to work on — the first item is the next thing to do, and the wider backlog is not on the table until the block is empty. Each item carries a lane: 'person' means a human owes it (flagged for review, or parked in a Review status) and you should not touch it; 'agent' means a human asked an agent to act on it, so it is yours first, and it carries recentComments and `answer` (the newest human comment: read it before anything else). Agent items with `…
| Parameter | Type | Description |
|---|---|---|
projectId * | string | projectId from list_projects |
list_blocks
List a project's blocks: the active one first, then planned ones, with how many items each holds and how many are done. A block is Nimara's sprint without the ceremony: a small, ordered set of work a project commits to now, that closes when it is done. Blocks are optional; items can sit in a milestone or the list without one. Closed blocks are left out unless includeClosed is true. To see the active block's items in order, use get_active_block. Call list_projects first for the projectId.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | projectId from list_projects |
includeClosed | boolean | Include finished blocks too. Defaults to false. |
create_block
Create a block in a project. A block is Nimara's sprint without the ceremony: a small, ordered set of work a project commits to now, that closes when it is done. Blocks are optional; items can sit in a milestone or the list without one. When someone asks for a new block or a new sprint, this is the tool. It starts planned; pass start: true only when the person wants it to be what the project works on now, because the current active block goes back to planned. Then put work in it with add_item_to_block. Returns the new blockId.
| Parameter | Type | Description |
|---|---|---|
name * | string | A short name people will recognise, e.g. 'Launch fixes' or 'Week of Oct 20'. |
projectId * | string | projectId from list_projects |
start | boolean | Make it the project's active block now. Defaults to false (planned). |
start_block
Make a planned block the project's active block: what the project works on now, and what get_active_block returns. The current active block, if any, goes back to planned with its items kept. Only do it when the person asked, because it changes what everyone pulls from next. Starting the block that is already active does nothing; a closed block cannot be started again. To start a new block instead, use create_block with start: true. Returns the block with its status, total and done.
| Parameter | Type | Description |
|---|---|---|
blockId * | string | blockId of a planned block, from list_blocks |
add_item_to_block
Put a work item at the end of a block. An item sits in one open block at a time, so if it is already in another it moves, and the result names that block in `movedFrom`; a move takes work out of what a person committed to, so only do it when they asked. Both must be in the same project; a closed block takes no new items. Adding an item that is already there does nothing.
| Parameter | Type | Description |
|---|---|---|
blockId * | string | blockId from list_blocks or create_block |
workItemId * | string | workItemId of the item |
remove_item_from_block
Take a work item out of a block; the item itself is untouched. Does nothing if it was not in the block. Taking work out of what a person committed to is their call: only do it when they asked.
| Parameter | Type | Description |
|---|---|---|
blockId * | string | blockId from list_blocks or create_block |
workItemId * | string | workItemId of the item |
list_active_work
What every agent is working on right now: the items an agent has claimed (update_work_item agentWorking: true, or a heartbeat) and not yet let lapse. Each entry has the item (displayId, title, status, project) and `agentWorking`: whose agent it is (`by`), which harness and model (`client`), `minutesLeft` on the claim, and `yours` (true when this session holds it). Use it to avoid starting work another agent already has, or to answer "what is everyone working on?". Pass a projectId for one project, or an orgId for every project in the org you can see.
| Parameter | Type | Description |
|---|---|---|
orgId | string | orgId from list_orgs, for every project you can see |
projectId | string | projectId from list_projects |
create_project
Create a new project in an org. Prefix must be unique within the org and is uppercased (e.g. 'NIM' yields work items NIM-1, NIM-2…). Caller becomes the project admin. Returns the new projectId.
| Parameter | Type | Description |
|---|---|---|
name * | string | Project name |
orgId * | string | orgId from list_orgs |
prefix * | string | Short uppercase prefix for work item IDs (e.g. 'NIM'). Unique per org. |
description | string | Optional, and usually best left out. At most one or two plain sentences (280 characters) saying what the project is for — it shows behind an info button on the project page, so headings, stack notes… |
isPrivate | boolean | If true, only explicitly added members see it. Defaults to false. |
workflowTemplate | string | Status workflow. Defaults to 'default' (Backlog/Todo/In Progress/Review/Blocked/Done). |
create_work_item
Create a new work item in a project. Hierarchy rules: epics live at the root; features go under epics; tasks go under epics or features (or root); subtasks must go under a task. Returns the new workItemId and its display ID (e.g. NIM-42).
| Parameter | Type | Description |
|---|---|---|
projectId * | string | projectId from list_projects |
title * | string | A title a teammate can understand at a glance, without opening the item or knowing the codebase. Say what to do, as an action someone could pick up: start with a verb (Let, Show, Hide, Stop, Fix, Make… |
type * | string | Item type — drives hierarchy validation |
description | string | Markdown. Open with the problem in one plain sentence, what is wrong or missing for a person (the title says what to do about it). Then the why, acceptance criteria, reproduction steps, file paths, ro… |
dueDate | string | Optional due date as a calendar day, YYYY-MM-DD (e.g. 2026-10-24). Dates have no time or timezone. |
parentId | string | workItemId of the parent. Required for subtask, optional otherwise. The parent is the outcome this item serves, not the meeting, transcript or conversation it came from. Read the candidate epic or fea… |
priority | string | p0 highest, p3 lowest. Defaults to p2. |
status | string | Must be one of the names in the project's `statuses`, returned by list_projects. Read it rather than guessing — a status is the board column, so a name the workflow does not have is rejected, and be… |
update_work_item
Update an existing work item: title, description, solution, status, priority, due date, parent, assignee, reviewer, or review flags. Any update also stamps the item as AI-touched.
move_work_item
Move a work item to a different project, taking its whole subtree with it — children and grandchildren move too, and the hierarchy is preserved. Both projects must be in the same organization, and you need write access to both. Not reversible by calling this again: the item is renumbered in the destination, so NIM-T44 might become SKA-T18 and the old ID stops resolving. Labels and milestone assignments are dropped, because both belong to the project being left; a status the destination doesn't define falls back to its first status. The response reports every old → new ID plus everything th…
| Parameter | Type | Description |
|---|---|---|
targetProjectId * | string | projectId from list_projects — the destination. Must be in the same org as the item's current project. |
workItemId * | string | workItemId from list_work_items — the item to move. |
create_document
Create a markdown document in a project: a spec, a design, a report, research. Pass workItemId to link it to the item it is about. Leave type alone unless the document is THE project brief.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | projectId from list_projects |
title * | string | |
content | string | Optional initial markdown content. Diagrams: a ```mermaid fence for a quick flowchart or sequence the app lays out itself. For a designed diagram (boxes placed by hand, swimlanes, side-by-side compari… |
type | string | Defaults to 'note', which is right for almost everything. 'prd' is reserved for the project's own product requirements brief, one per project, never linked to a work item. 'fd' is an older spelling of… |
workItemId | string | The work item this document is about, so it shows on that item. Not allowed with type 'prd'. |
update_document
Update an existing document's markdown content and/or title. Use this to fill in or revise a document created earlier (e.g. backfill content into an empty doc). documentId comes from list_documents. Provided content fully replaces the existing content. To change part of a document, send the whole document with that part changed, never only the new part: emptying a document or cutting it by more than half counts as a destructive change, and Nimara stops an account's agents after 20 of those in an hour.
| Parameter | Type | Description |
|---|---|---|
documentId * | string | documentId from list_documents |
content | string | New markdown content. Replaces the document's existing content. Diagrams: a ```mermaid fence for a quick flowchart or sequence the app lays out itself. For a designed diagram (boxes placed by hand, sw… |
title | string | New title (optional). |
list_documents
List PRD/FD markdown documents for a project, optionally filtered to one work item.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | projectId from list_projects |
workItemId | string | Optional workItemId to list linked FD documents. |
list_document_comments
List the review comment threads on a document. Each thread is anchored to one block (a paragraph, heading, list, table or code block) and carries that block's current text as blockText; read it before acting on the comment. orphaned means the block has since been deleted from the document (blockText is then the text as it was when the comment was made); revisedSince means the block changed after the comment was made, so it may already be dealt with. Replies come oldest first. Pass includeBlocks for every block's id and text. A tool to revise a block in place is coming; until then, edit the doc…
| Parameter | Type | Description |
|---|---|---|
documentId * | string | documentId from list_documents |
includeBlocks | boolean | Also return the document's blocks in order (blockId, kind, text): the ids add_document_comment anchors a new thread to |
status | string | Which threads to list; defaults to "open" |
add_document_comment
Comment on one block of a document, or reply to a thread. To start a thread, pass the blockId of the block you mean (list_document_comments with includeBlocks lists them); read that block's text first so the comment is about what is there now. To reply, pass parentCommentId and leave blockId out. Review comments are visible to the project team only. A tool to revise a block in place is coming; until then, put proposed wording in suggestedReplacement.
| Parameter | Type | Description |
|---|---|---|
body * | string | Comment text (markdown supported). Do not open it with a date or time: the app shows when each comment was posted, in each reader's own time zone. |
documentId * | string | documentId from list_documents |
blockId | string | The block to comment on. Required unless replying. |
parentCommentId | string | commentId of the thread to reply to, from list_document_comments |
suggestedReplacement | string | Optional replacement text for the whole block, as markdown |
create_project_link
Save a link on a project for resources like APIs, dashboards, documentation, repositories, or services.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | projectId from list_projects |
title * | string | |
url * | string | http(s) URL to save |
category | string | Defaults to other. |
description | string |
list_project_links
List saved links for a project, such as APIs, dashboards, docs, repositories, and services.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | projectId from list_projects |
add_work_item_link
Attach a link to one work item: the page, file, issue or dashboard the work is about (an App Store Connect page, a Figma file, a Sentry issue). Use this rather than pasting URLs into the description. For links that belong to the whole project, use create_project_link. Adding a URL the item already has returns the existing link. There is no tool to remove a link; a person does that in the app.
| Parameter | Type | Description |
|---|---|---|
url * | string | http(s) URL |
workItemId * | string | workItemId from get_work_items or list_work_items |
title | string | Short name people will see, e.g. "App Store Connect". Leave out to show the site's host. |
move_project_to_folder
File a project into a folder in the sidebar of the person you work for, or take it out with folder: null. Folders are per person: this changes only the token owner's sidebar, never a teammate's. The folder is matched by name, ignoring case; if they have no folder by that name, one is created. list_projects shows each project's current `folder`. Taking a project out of a folder leaves the folder in place.
| Parameter | Type | Description |
|---|---|---|
folder * | Folder name, e.g. "Clients". null puts the project back at the top level. | |
projectId * | string | projectId from list_projects |
list_work_item_links
The links attached to one work item. get_work_items already includes them, so call this only when you have nothing else to read.
| Parameter | Type | Description |
|---|---|---|
workItemId * | string | workItemId from get_work_items or list_work_items |
suggest_title
Suggest a better title for a work item without changing it. A person accepts, edits or dismisses it on the Review page's Titles tab. Use this, not update_work_item's title, when reviewing titles you are not otherwise working on: someone may be editing that item, and a suggestion never changes what they see. Only suggest when the current title breaks the title rules below; leave good titles alone. Refused for an item another agent is working on, one a person edited in the last few minutes, or one whose suggestion a person already dismissed. Suggesting again replaces your earlier suggestion. Fin…
| Parameter | Type | Description |
|---|---|---|
title * | string | A title a teammate can understand at a glance, without opening the item or knowing the codebase. Say what to do, as an action someone could pick up: start with a verb (Let, Show, Hide, Stop, Fix, Make… |
workItemId * | string | workItemId from list_title_candidates or get_work_items |
reason | string | One short line on what is wrong with the current title, shown beside the suggestion, e.g. "Reads as a problem, not an action". |
list_title_candidates
List a project's items whose titles have not been reviewed yet, newest first, for a title review with suggest_title. Leaves out items that already have a suggestion for their current title, or whose suggestion a person dismissed, and done and archived items unless includeDone is set. Returns { items, nextCursor }; a page can hold fewer than `limit` items, so keep going while nextCursor is not null.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | projectId from list_projects |
cursor | string | null | nextCursor from the previous page |
includeDone | boolean | Also review finished items. Off by default. |
limit | integer | Items to scan per page (default 50). |
list_project_members
Who can open a project: userId, name, email and role for everyone with access, the same list the app's assignee picker shows. Use it to turn a name into the userId that update_work_item's assigneeId and reviewerId take, and to build a mention — [@Name](user:<userId>) in a comment notifies that person.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | projectId from list_projects |
unlink_pr
Take a pull request off a work item. PRs link themselves when their title or body names a display id, so a sample id in a PR description attaches that PR to a real item; this undoes it. Returns what was removed and what is still linked, so a wrong number can be corrected without another read. Removing the link does not touch the PR itself.
| Parameter | Type | Description |
|---|---|---|
prNumber * | integer | The PR number, e.g. 354 for #354 |
workItemId * | string | workItemId of the item the PR is wrongly on |
get_pull_request_diff
Read what a pull request changes: its title, branches, head commit and every changed file with its unified-diff patch, fetched from GitHub. Only PRs linked to a work item in the project open here (a work item's linked PRs come back from get_work_items). Patches total about 150 KB; past that a file comes back with patchOmitted "budget", so pass path to read one file in full. In a patch, a line's number on the after side (R) counts lines starting " " or "+" from the hunk's +start, on the before side (L) lines starting " " or "-" from -start: those are the numbers add_pull_request_comment takes.
| Parameter | Type | Description |
|---|---|---|
prNumber * | integer | The PR number, e.g. 553 for #553 |
projectId * | string | projectId from list_projects |
path | string | Only this file's patch, in full (the others list without patches) |
list_pull_request_comments
List the review threads on a linked pull request's diff, by file and line. Each is anchored to path, side (R = after, L = before), line (and endLine for a range) on the commit it was made on, with lineText as the line read then. If the PR has moved on, compare with get_pull_request_diff before acting: the line may already be changed. Replies come oldest first. Review comments are visible to the project team only.
| Parameter | Type | Description |
|---|---|---|
prNumber * | integer | The PR number |
projectId * | string | projectId from list_projects |
status | string | Which threads to list; defaults to "open". archived means resolved. |
add_pull_request_comment
Comment on a line of a linked pull request's diff, or reply to a thread. To start a thread, pass path and line (and side: R, the after side, by default; L for a removed line), as numbered in get_pull_request_diff; endLine makes it a range on the same side. The line must be one the diff shows; the comment is anchored to the PR's current head commit and the line's text, so people see when it has since changed. To reply, pass parentCommentId (from list_pull_request_comments) and leave path and line out. The work item's assignee and reviewer are told. Comments stay in Nimara; nothing is posted to…
| Parameter | Type | Description |
|---|---|---|
body * | string | Comment text (markdown supported) |
prNumber * | integer | The PR number |
projectId * | string | projectId from list_projects |
endLine | integer | Last line of a range, on the same side |
line | integer | The line number on that side. Required unless replying. |
parentCommentId | string | commentId of the thread to reply to, from list_pull_request_comments |
path | string | The file, as get_pull_request_diff lists it. Required unless replying. |
side | string | "R" (after, default) or "L" (before) |
list_scratch_notes
The token owner's OPEN scratch notes: thoughts and ideas they captured in the app with the `s` shortcut before deciding what to do with them. Returns the notes that belong with this project (tagged with it, or tagged with nothing), oldest first, each with noteId, body, projectId and createdAt. These are raw: a note may be one line or a paragraph, may describe one task or three, and may not be a task at all. Read each, decide what it should become (usually one or more work items via create_work_item, sometimes a comment on an existing item, sometimes nothing), do that, then call resolve_scratch…
| Parameter | Type | Description |
|---|---|---|
projectId * | string | projectId from list_projects |
resolve_scratch_note
Mark a scratch note as used, recording the work item it became. Call this after acting on a note from list_scratch_notes: pass the noteId and the workItemId you created or updated from it (omit workItemId only when the note needed no item). The note leaves the person's open list and shows where it went. Only the token owner's own notes.
| Parameter | Type | Description |
|---|---|---|
noteId * | string | noteId from list_scratch_notes |
workItemId | string | The workItemId the note became, from create_work_item or list_work_items. |
heartbeat_work_item
Say you are still working on an item. Renews (or starts) its 30-minute "agent working" lease and does nothing else: no comment, no activity event, no change to the item. The app lights the row while the lease is live, so on a long task call this every few minutes or every handful of tool calls — otherwise the row goes quiet while you are still at it. Any other Nimara call you make (any tool, any item) also renews the leases you hold; another agent's calls do not. This is for the long stretches where you do none of those. Cheap and idempotent.
| Parameter | Type | Description |
|---|---|---|
workItemId * | string | workItemId of the item you are working on |
model | string | The model you are running as, e.g. claude-opus-5 or gpt-5, so the app can say which agent is on this. Your harness is reported automatically. |
get_priority_report
Build a priority report for one or a few projects: what matters now (the active block in order, then open p0/p1 items), what got done in the period (by milestone, with the agent/human split), what is waiting and for how long, what is in progress, and milestone progress. Read-only. Covers the last 7 days unless `days` or `from`/`to` say otherwise. ASK FIRST: unless the person already named the projects, call this WITHOUT projectIds. It then returns their projects instead of a report; ask the person which to include (at most 8) and call again with those projectIds. Never pick projects yourself:…
| Parameter | Type | Description |
|---|---|---|
days | integer | How many days back from `to` (or today) the report covers. Default 7. |
from | string | First day of the period, YYYY-MM-DD. Overrides `days`. |
orgId | string | When asking: list only this org's projects (orgId from list_orgs). |
projectIds | array | projectIds the person chose. Omit to get the list of their projects to ask from. |
to | string | Last day of the period, YYYY-MM-DD. Default today (UTC). |
watch_work_item
Put the token owner on (or take them off) an item's watch list. A watcher is notified when the item changes status, gets a comment, gets a reviewer, is archived or moved — not on title or description edits. The item's assignee and reviewer already hear about it. Use this when you start work the person will want to follow, or when they ask to keep an eye on something.
| Parameter | Type | Description |
|---|---|---|
workItemId * | string | workItemId of the item |
watching | boolean | true to watch, false to stop |
add_work_item_image
Attach an externally hosted image URL to a work item. Use this when an MCP client has a screenshot, mockup, or generated image URL to preserve with the task.
| Parameter | Type | Description |
|---|---|---|
imageUrl * | string | Public or otherwise fetchable http(s) image URL |
workItemId * | string | workItemId from list_work_items |
altText | string | Optional description/caption for the image |
filename | string | Optional display filename |
list_work_item_images
List image attachments for a work item, including uploaded images and externally attached MCP images. Call list_work_items first to find the workItemId.
| Parameter | Type | Description |
|---|---|---|
workItemId * | string | workItemId from list_work_items |
add_work_item_comment
Add a timestamped comment to a work item. Use this to record notes, updates, or an 'AI touched' entry instead of editing the description. Comments are stamped with the current time automatically and never overwrite each other. To report what a session found or did, give a `headline` and `points` instead of a long `body`: the app shows the headline and one line per point, with each point's detail folded under it, so a person gets the outcome without reading every table name and count. Anything a person must act on or decide goes in raise_flag, not in a point; a single milestone line goes in add…
| Parameter | Type | Description |
|---|---|---|
workItemId * | string | workItemId from list_work_items |
body | string | Comment text (markdown supported). Required unless you give a `headline`; with one, this is the report's full notes, folded under its points. Do not open it with a date or time: the app already shows… |
headline | string | Makes the comment a report. One sentence, at most 200 characters, on what the session came to ("eXtendFiles is the file system, and the OMS is not using it"). No date or "Session" prefix. |
points | array | A report's points, at most 12, shown under headings in the order found, changed, unchecked, next. |
source | string | Who authored it; defaults to "ai" for MCP callers |
list_work_item_comments
List the timestamped comments on a work item, oldest first. Use this to check whether the item was already touched/commented before adding a new comment.
| Parameter | Type | Description |
|---|---|---|
workItemId * | string | workItemId from list_work_items |
add_timeline_step
Add one line to the item's timeline for a milestone in your work: "Opened PR #757", "Tests pass (33)", "Review: 6 rounds, 14 fixed". People skim these, so one short line each, at real milestones only. Use this instead of a progress comment; comments are for talking to a person. A need or gap goes in raise_flag, not in a step. Keeps your lease alive like any Nimara call.
| Parameter | Type | Description |
|---|---|---|
text * | string | One line, at most 140 characters, saying what happened. |
workItemId * | string | workItemId of the item |
detail | string | Optional longer version, shown folded under the line. A long report belongs in a document. |
raise_flag
Record, the moment it comes up, something a person must do or decide (a need) or something left undone, untested or declined (a gap). It shows at the top of the item until someone addresses it, and on the item's timeline at this point, so it is not lost at the bottom of a comment or in a past conversation. Use it instead of mentioning these in a comment. An open one with the same title is returned, not repeated. At hand-over, update_work_item's `handover` raises them in the same call.
| Parameter | Type | Description |
|---|---|---|
category * | string | For a need: "action" (only a person can do it, e.g. add a secret), "decision" (a choice is theirs), "risk" (a risk they are accepting by shipping). For a gap: "not_tested" (built but not checked, or c… |
kind * | string | |
title * | string | One plain line a person can act on without opening anything, at most 140 characters ("Add the npm trusted publisher for @nimara-app/cli"). The reason goes in `why`. |
workItemId * | string | workItemId of the item |
why | string | A sentence or two of context: what you found, where, why it matters. |
address_flag
Mark a need or gap addressed, saying how. Its flagId comes from get_work_items (`openFlags`) or list_flags. Only when it really is: the test ran, the step is done, the person decided. The note is what a person reads to check it, and it stays on the item's timeline. A person can reopen it.
| Parameter | Type | Description |
|---|---|---|
flagId * | string | flagId from get_work_items' openFlags or list_flags |
note * | string | How it was addressed, in a sentence a person can check ("Ran nimara next against production; it listed the block"). |
list_flags
A project's open needs and gaps across all its items, newest first (up to 200), each with the item's displayId and title. Use it to find what past work left undone or untested before starting something new, or to see what people still owe. state: "addressed" lists the ones already dealt with.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | projectId from list_projects |
kind | string | Only needs, or only gaps. |
state | string | Defaults to "open". |
list_validations
List a project's validation graph: core systems and validation/test tasks with their DERIVED state (passing, failing, stale, unvalidated). A task is 'stale' when a system it covers changed since it was last validated, or an upstream dependency is no longer passing. Call list_projects first to find the projectId.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | projectId from list_projects |
record_validation
Check off a validation task by recording a pass or fail. Stamps the task as validated 'now', clearing any stale flag until a covered system changes or an upstream dependency moves again. Get validationTaskId from list_validations.
| Parameter | Type | Description |
|---|---|---|
result * | string | Outcome of running the test |
validationTaskId * | string | validationTaskId from list_validations |
mark_system_changed
Mark a core system as changed. This is the single action that invalidates testing: every validation task that covers this system (and everything transitively depending on those tasks) immediately becomes 'stale' and needs revalidation. Get systemId from list_validations.
| Parameter | Type | Description |
|---|---|---|
systemId * | string | systemId from list_validations |
create_system
Create a core system in a project — a subsystem (e.g. Auth, Payments, Sync) whose change should invalidate the validation tasks that cover it. Returns the new systemId.
| Parameter | Type | Description |
|---|---|---|
name * | string | Short system name, e.g. 'Auth' |
projectId * | string | projectId from list_projects |
description | string | Optional details |
create_validation_task
Create a validation/test task in a project. After creating it, use add_system_to_task to declare which systems it exercises (so it goes stale when they change) and add_validation_dependency to order it after other tasks. Returns the new validationTaskId.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | projectId from list_projects |
title * | string | What this test validates |
description | string | Optional steps / details |
kind | string | 'auto' if runnable by a test runner, 'manual' if a human checks it. Defaults to manual. |
workItemId | string | Optional workItemId to link this test to a feature for traceability |
add_system_to_task
Declare that a validation task COVERS (exercises) a system. Once linked, the task becomes 'stale' whenever that system is marked changed. Idempotent. Both IDs come from list_validations and must be in the same project.
| Parameter | Type | Description |
|---|---|---|
systemId * | string | systemId from list_validations |
validationTaskId * | string | validationTaskId from list_validations |
add_validation_dependency
Make one validation task depend on another (validationTaskId depends on dependsOnTaskId). The dependent goes 'stale' whenever the upstream task is not passing or gets revalidated. Cycles and self-dependencies are rejected. Idempotent. Both IDs come from list_validations and must be in the same project.
| Parameter | Type | Description |
|---|---|---|
dependsOnTaskId * | string | The dependency (upstream) task it relies on |
validationTaskId * | string | The dependent (downstream) task |
list_labels
List all labels defined in a project. Returns each label's id, name, and color. Use the labelId with add_label_to_work_item / remove_label_from_work_item.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | projectId from list_projects |
create_label
Apply-or-seed a label. Returns the existing label if the name is already taken (idempotent), and otherwise creates it ONLY if the name is one of the curated ones. Any other new name is REFUSED — the reply carries `refused: true`, the reason, and `available`, the project's existing labels. Agents apply labels; they do not invent them, because a near-duplicate of an existing label splits the vocabulary silently. Prefer list_labels first. Colors are ignored for curated names so the vocabulary looks the same in every project.
| Parameter | Type | Description |
|---|---|---|
name * | string | Label name, unique within the project |
projectId * | string | projectId from list_projects |
color | string | Hex color like #2563eb. Defaults to a neutral slate. |
add_label_to_work_item
Attach a label to a work item (idempotent). The label and work item must be in the same project. Get labelIds from list_labels / create_label.
| Parameter | Type | Description |
|---|---|---|
labelId * | string | labelId from list_labels or create_label |
workItemId * | string | workItemId from list_work_items |
remove_label_from_work_item
Remove a label from a work item (idempotent — a no-op if it wasn't attached).
| Parameter | Type | Description |
|---|---|---|
labelId * | string | labelId from list_labels |
workItemId * | string | workItemId from list_work_items |
list_milestones
List all milestones in a project. Returns each milestone's id, name, description, dueDate and freezeDate (calendar days, YYYY-MM-DD; freezeDate is when a feature freeze starts), and status. Use the milestoneId with add_item_to_milestone / remove_item_from_milestone.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | projectId from list_projects |
create_milestone
Create a milestone in a project. Returns the milestoneId. Good for grouping work into phases (e.g. 'Phase 1 — Web', 'Phase 2 — Native').
| Parameter | Type | Description |
|---|---|---|
name * | string | Milestone name |
projectId * | string | projectId from list_projects |
description | string | Optional markdown description |
dueDate | string | Optional due date as a calendar day, YYYY-MM-DD (e.g. 2026-09-24). Dates have no time or timezone. |
freezeDate | string | Optional day a feature freeze starts, YYYY-MM-DD: from then only fixes and polish go in until the milestone. On or before dueDate. The burndown chart shades it. |
update_milestone
Change a milestone's name, description, due date or feature freeze. Omitted fields stay as they are. Returns the milestone with its progress.
| Parameter | Type | Description |
|---|---|---|
milestoneId * | string | milestoneId from list_milestones or create_milestone |
description | string | New markdown description, replacing the old one. It cannot be emptied or cut by more than half from here; a person does that in the app. |
dueDate | Due date as a calendar day, YYYY-MM-DD; null clears it. | |
freezeDate | Day a feature freeze starts, YYYY-MM-DD: from then only fixes and polish go in until the milestone. On or before the due date; null clears it. The burndown chart shades it. | |
name | string | New name |
add_item_to_milestone
Associate a work item with a milestone (idempotent). Both must be in the same project.
| Parameter | Type | Description |
|---|---|---|
milestoneId * | string | milestoneId from list_milestones or create_milestone |
workItemId * | string | workItemId from list_work_items |
remove_item_from_milestone
Remove a work item's association with a milestone (idempotent — a no-op if it wasn't associated).
| Parameter | Type | Description |
|---|---|---|
milestoneId * | string | milestoneId from list_milestones |
workItemId * | string | workItemId from list_work_items |