Skip to content

MCP tool reference ​

critterstack serves 79 tools over one streamable-HTTP MCP endpoint:

http://localhost:5526/api/mcp

Stateless, so every call is a self-contained request — a dropped connection costs nothing, and several agents share one server with no sessions to keep straight.

Conventions ​

  • Naming a plan and a node. The plan tools (get_plan, plan_status, get_node, the authoring tools) name a plan slug and a node id. The work-loop tools (next_ready_nodes, claim_node, report_node, release_node, ask_person, the await_* tools) name them plan and node.
  • agent is your identity, and every write takes it: it is recorded on what you assert, so pick one name and keep it.
  • session is your Claude Code session id ($CLAUDE_CODE_SESSION_ID). A claim keeps it as you pass it; a lead names itself by it, and its calls under it are what say it is alive.
  • Every tool's full schema comes from tools/list. A call that misses a required argument, or names one the tool does not take, is answered with what is missing and what the tool takes, so the next call can be right.
  • Refusals are results, not errors. A tool that will not do something says why in a JSON object with an error ({"error": "no repository 'JasperFx/x' — register it with register_repository first; …"}).

The endpoint has no authentication. By default it answers this machine only; see Who can reach the server.

Plans — 28 tools ​

A plan is a cross-repository DAG. Nodes are GitHub issues, PRs, NuGet and npm publishes and consumes, test-run gates, Event Modeling slices and reviews; edges are dependencies; status is derived from observation, never asserted.

Reading ​

ToolWhat it does
list_plansEvery active plan. Use the slug with get_plan / plan_status.
get_planOne plan's full DAG — nodes, depends_on edges, and dependencyOrder (every node listed after everything it depends on).
plan_statusThe live view: each node's derived status — unrealized, unknown, missing, open, claimed, pr-open, abandoned, done, waiting, running, failed, mismatch, partial, and stale for a gate that must be verified again, findings / fixing for a review. An issue or pr node carries prs: each pull request's number, URL, state, CI with the failing checks named, review decision and mergeability, what the card's PR line shows. Each node carries its stance and what a person owes it (needs), the plan its grouped needs, and each ready node nobody is on its launch: next when it is free to take, or what holds it (go-ahead, machine-resource, exclusive).
get_nodeOne node, zoomed in: the same view a person gets by clicking its card. Its plan_status entry under node, then readiness (why it is or is not ready, in words: waiting on \fix`, ready, awaiting a go-ahead), its brief, url, the latest claim(agent, since, session, lease, live or not, steps), thequestionsasked on it, people'snotes, a gate's gateRuns, its own timelinelines,dependsOnandunblocks(direct, across plans), and arecallof its repository's notes and the memories filed under the plan and that repository.includeGitHub: trueanswers, adding the issue's body, labels and recent comments, and each PR's description, diff stat and checks, a failing GitHub Actions job with the tail of its log; cached for a minute. Same view as [GET /api/plans/{slug}/nodes/{id}`](/critterstack/reference/rest-api#one-node).
plan_historyEvery change ever made to a plan, oldest first: who, when, what.
next_ready_nodesReady work across every plan or one — dependencies all done, not itself done/missing/running. Sorted by leverage (how many nodes it unblocks). Each entry carries claimedBy when another agent holds it, the skills its work uses, and the node's launch, as plan_status has it: read it before you claim. A node kept for a person is left out.

Authoring ​

ToolWhat it does
create_planAn empty plan. Status derives from observation immediately. repoBranches names the branch each repository's consume pins are read from, alias or org/name → branch (the branch a pin is read from). model is the model a session working its nodes is asked to use, and skills the skills its work uses, for a node that names none (which skills a node's work uses).
change_planTitle, anchor, repo aliases, repoBranches (replaced wholesale; {} clears them), and branch, the plan's integration branch, where its finished work is gathered before one PR to the default branch ("" clears it), and its model ("" clears it) and skills ([] clears them). Omitted values keep their current value.
declare_plan_resourcesThe infrastructure a plan's nodes share and each one's capacity, { "postgres": 1 }, replacing what the plan had. Nodes name what they hold with uses, for the sessions working the plan to read and honour. A resource still in use cannot be removed. Names in machine are the whole machine's: critterstack holds those itself across every plan and repository, refusing a claim while one is full, a running critterstack gate exec included. heavy needs no declaration: a node with uses: [heavy] runs one at a time on the machine.
add_plan_nodeKinds: issue, pr, publish, consume, test-run-gate, slice, review, person. An issue number is optional — unbound means unrealized. Refused with the reason when it would break the plan. Also takes the node's brief (Markdown instructions a session that takes the node reads with get_node), a gate's steps ([{ id, title?, run?, cwd?, env?, timeout? }]: cwd relative to the repository root, env a map that never sets BOBCAT_RUN_TAG, timeout a duration such as 20m or 00:20:00), its optional repo (the checkout its steps run in) and reverify: on-branch-change (the gate verifies the whole branch; critterstack watches no branch, so whoever works the plan runs it again, or a person asks with re-verify), a consume node's branch (where its pin is read, over the repo's declared branch), the resources it uses, and placement: cloud to keep it for a cloud agent (agent: cloud). With checkout naming a local clone, a dotnet test step is checked against it and any problem comes back as warnings, never a refusal. merge: merge-on-green is refused here: only a person turns it on. model (issue, slice, test-run-gate, review): the model a session working this node is asked to use, over the plan's; skills, the skills its work uses. assignee: person keeps a node for a person, exclusive: machine keeps the machine to itself while it is claimed, a local publish rehearses the real one, and a consume's bumpedBy names the node that moves its pin.
change_plan_nodeReplaces a node wholesale; anything omitted is cleared. Use link/unlink for edges only.
remove_plan_nodeRefused while others depend on it — dropping an edge is a decision, not a side effect.
link_plan_nodesAdd an edge. Refused if it would make a cycle.
unlink_plan_nodesRemove an edge.
bind_plan_nodeThe materialize step: bind an unrealized node to the GitHub thing you just created.
archive_planOut of the active set; history stays.
import_planA whole plan as YAML (schema 1). Diffs into an existing plan, so re-importing the same document records nothing. Takes checkout for step warnings like add_plan_node, and refuses to move a node to merge-on-green.
export_planOne plan as a YAML document — the shape import_plan takes, so importing it back records nothing.

Claims ​

ToolWhat it does
claim_nodeClaim or renew. A lease (default 30 minutes), so a dead session does not hold a node forever. Refused with the holder's name when taken, outright for a done node or a person's, and with the reason while a machine resource it uses is full or the machine is reserved for an exclusive node. The answer carries the node's skills. A cloud agent passes where: cloud and its session's link.
report_nodeAttach or replace your note and renew the lease. For decisions worth surfacing, not a transcript. A cloud agent says its session's link here once it knows it. On an issue node, pr (a number in the node's repository) links the pull request you opened, however its description is worded: GitHub attaches a PR to its issue only through a closing keyword, so a Part of #n PR is otherwise invisible to the plan. A linked PR is observed and shown on the card like a closing PR, and never closes the node (the issue does). The scope report (leftOut, scopeDone, scopeTotal) says what an issue asks for that you did not do: the node reads partial until a person accepts it. The answer says prLinked, or prErrors when it was refused. The REST twin takes pr in the same body.
ask_personAsk a question about the node you hold, with optional short options and needs (agent: the plan's lead agent may answer; person: only a person may; left out, the lead while one is alive, else a person), and park until it is answered, at most about four minutes per call (CritterStack:AskPersonParkSeconds, default 240, under a client's tool timeout; your lease is renewed). recommended says what you go with if nobody answers, shown as your default. Returns answered with the answer, who gave it and byLead, or pending (pending: true with its questionId) when nobody has answered yet: call again with that questionId to keep waiting, and do not carry on with your recommendation meanwhile unless your question said you would. unanswered (recorded on the question, which stays open) only when you passed a timeoutSeconds shorter than the park limit. If you cannot wait, report where you stopped with report_node and end your run: the question stays open while your claim's lease holds. One open question at a time; it never changes the node's status.
submit_reviewFor the review node you hold: your findings on the integration branch, each { title, brief, severity?, steps? }. For a red test-run gate you hold: your diagnosis, one finding per cause, each also with cause (product, test, environment, tooling, flaky, lane-clash; product needs repository), repository?, fixKind? (person for an environment) and evidence?: { failingTests, step, framework, rerun }; a person accepts one as an unbound issue (or a person step) the gate waits on. Findings are proposals — a person accepts (it becomes a fix node the review depends on), edits or rejects each one, and the review is done only when they have; an empty list still needs a person's sign-off. Submitting again replaces the undecided findings.
declare_node_stepsThe steps you mean to take on a node you hold, { id, title, gate?, runTag? }, so the agent view shows what is and is not complete. gate names a repository gate the step runs; runTag names the BOBCAT_RUN_TAG whose run is the step's observed evidence. Steps live and die with the claim.
report_node_stepWhere one step stands: pending / running / done / failed / skipped, with a note and, for a gate, the exit code it returned. Reporting the current state again records nothing.
release_nodeStatus stays whatever observation says: finishing the work is proven by the issue closing, the version appearing, the suite passing.
report_gate_resultA test-run gate's result in your own words, for a suite that reports to no Bobcat monitor and could not be run through critterstack gate exec. Asserted, not observed: recorded and shown as yours, and it decides the gate only where a person allowed asserted results on it from the plan page. The answer says whether it counts. Prefer critterstack gate exec, which critterstack observes.

Steps never move a node's status

A checklist is the agent's own word. It shows a person how far along the work is (the repository lanes), and it is never a second, softer definition of done. A node is done when its evidence says so (the issue closed, the version published, the specs green), even if every step reads done before then. Where a step names a runTag, the run's verdict is shown beside the agent's state, never in place of it.

Parking ​

ToolWhat it does
await_dependenciesBlock until every dependency of a node is done. Returns ready, or timeout with what is still outstanding.
await_package_versionBlock until a feed serves >= minVersion. Queries the feed directly, so it works for any package, not only ones a plan declares.

Every await_* tool (these two, await_memories, await_run_completion and the lead's await_questions) waits 240 seconds by default, under the time an MCP client commonly allows a tool call, and answers a timeout rather than being cut off. On a timeout, call again.

Leading a plan — 5 tools ​

A plan is usually worked through a supervising agent session, together with a person. These make that role explicit: the lead is the first responder for its workers' ask_person questions marked agent, and escalates the rest. critterstack records the lead and routes to it; it never depends on it. See Working a plan with a supervising agent.

ToolWhat it does
lead_planTake the lead of a plan with your session id. Workers' questions marked for an agent then come to you first, and you may relay a decision the person made in your conversation. Refused while another lead is alive (heard from within ten minutes); a person can clear a lead from the plan page. The answer says what to do next: park on await_questions.
release_plan_leadStep down. The plan's questions go to the person from then on.
await_questionsAs the lead, park until a worker's question you may answer is open, and return them all. Parking here is what keeps you alive: a lead not heard from for ten minutes is routed nothing, and its questions go to the person.
answer_questionAs the plan's live lead, answer a question marked agent, by its questionId. The parked worker wakes with your answer, recorded as the lead's. A question marked person is refused: only a person answers it.
escalate_questionAs the lead, hand a question to the person, with why: it is theirs from then on, on the strip and the needs panel.

The lead is an agent, and holds none of a person's checkpoints of its own

A question marked person is never answerable over MCP, by the lead or anyone. The go-ahead, merge policy and the person's other controls are the person's: the lead may only relay a decision the person made, recorded as theirs. Clearing the lead and purging a plan have no MCP twin at all. And the lead is alive only while it keeps calling (lead_plan, await_questions, an answer, an escalation, a relay): a lead not heard from for ten minutes never leaves a question unrouted, since every question it held is the person's at once, and no relay is accepted until it calls again.

Relaying a person's decision — 12 tools ​

Every control the plan page keeps for a person has an MCP twin that only the plan's live lead may call: the session that took lead_plan, while it is alive: heard from within ten minutes. The lead relays what the person decided in its conversation; it holds no checkpoint of its own. Each takes agent and session (the lead's) and relayFor (the person, as they would sign it), sends the very command the REST endpoint sends, and records the person as by and the lead as relayedBy on the event. The plan's Activity names both ("approved for agents, relayed by net11-lead · Jeremy D. Miller").

Refused, each with a test named for it: an agent that is not the plan's lead, a lead not heard from lately, a relayFor that is missing or names the lead itself, and a decision about a node the lead holds a claim on (a worker still cannot approve its own node). A repository's controls are relayed only for a repository the plan works in.

ToolWhat it does
approve_for_agentsGive issue nodes the go-ahead for agents to claim them, or withdraw it. A node already done, approved or not bound is skipped and named, as the plan page's "approve all" does.
set_merge_policyHow an issue, pr or consume node's PR lands: manual-review (a person merges) or merge-on-green (it may be merged with no review once critterstack observes its CI green). critterstack merges nothing. Keeps the go-ahead.
accept_partialAccept a node's reported partial work as enough, or sendBack an acceptance.
mark_person_node_doneMark a person's node done, or undo it. Refused for any other node.
reverify_gateAsk for a done test-run gate to be verified again: a pass from before now stops counting, and the gate is ready to run again.
accept_stale_gate_passAccept a gate's stale pass (one on a dirty tree) as it stands, or withdraw that. A newer run replaces it.
allow_asserted_resultsLet a test-run gate be decided by an asserted result, or withdraw that.
propose_base_fixAdd the fix node for a default branch a node's merge turned red: an unbound issue node, linked ahead of the nodes whose open PRs are red only because of it. It still needs a go-ahead; answers the existing fix if there is one.
add_person_noteA person's note on the plan or a node.
decide_reviewaccept or reject a review finding, or sign-off a review that found nothing. A red test-run gate's findings are decided the same way: an accepted one becomes an unbound issue (or a person node for an environment) the gate waits on.
set_repository_ciTurn a repository's CI off on purpose, with a reason, or back on. It removes the wait, never the review.
set_gate_stand_inLet a repository's declared commit or push gate stand in for CI for a merge-on-green PR, or take that back. A new command or checkout on the gate clears it.

Repositories — 15 tools ​

The cross-plan knowledge base. Check here before asking a question a previous session answered.

ToolWhat it does
list_repositoriesEvery repository: slug, what it publishes and consumes, CI workflows, dependencies, note count.
get_repositoryOne in full, including every markdown note with who wrote it and when.
register_repositorySlug is owner/name — the same shape issue refs use.
describe_repositoryDescription or default branch.
declare_repository_packageThis repository publishes or consumes a package — the cross-repo edge planning runs on. Re-declaring a known fact is a no-op.
retract_repository_packageRemoves it from publishes and consumes both.
declare_repository_ciA gating check name — the expected-check list PR status is read against.
retract_repository_ci
declare_repository_packHow the repository packs its NuGet packages to a local folder feed: a command with {version} and {feed}, such as ./build.sh Pack --version {version} --feed {feed}. A publish node on a folder feed carries it, filled with the next -local.N version and the feed folder, so the next pack is one command. Re-declaring replaces it; no person's OK is needed.
declare_repository_gateA repository-specific gate: a build target an agent runs before committing or pushing, like CritterWatch's ./build.sh CommitGate, with what it is made of. Not a test run and not a CI workflow. critterstack records it and never runs it. With a role, it is run on a node's work: a commit gate through critterstack gate run, proved on the commit it ran on. Only a person lets a gate stand in for CI, and changing its command takes that back. Re-declaring by name replaces it.
retract_repository_gate
declare_repository_dependencyRepository-to-repository, independent of any one package edge. Say why in reason.
retract_repository_dependency
add_repository_noteA gotcha, a convention, a decision. Append-only, recorded with who and when.
archive_repositoryOut of the active set. The stream — and every note — stays.

Memory — 10 tools ​

What one session learned, the next one recalls.

ToolWhat it does
recallFree-text search, best match first. Call it before starting a node, and before asking something a previous agent may already have answered.
get_memoryOne in full — and, when asked, every version from its stream with who changed it and why.
list_memoriesBrowse without a search term: filter by scope, kind, tags; newest change first, paged.
record_memoryWhat the next session should know. Not a progress note — that is report_node, and it is about the node you hold right now.
revise_memoryOnly what you pass changes; earlier versions stay on the history.
refile_memoryMove to another scope — session → repository, once it turns out to be about the repository.
link_memoriesA typed edge: example-of, supersedes, explains, contradicts. Recorded on the first, readable from both.
archive_memoryHidden from recall and listings; history stays.
restore_memoryBack into recall and listings.
await_memoriesBlock until a memory is recorded or changed in a scope — how an agent hears what another session just learned, without calling recall in a loop.

Recall is a full-text search over title, tags and body: every word must match, a word also matches the start of a longer one, and the best match comes first.

Runs and evidence — 9 tools ​

These read the runs critterstack's receiver on 5527 has been sent. A suite that publishes only to bobcat ui is invisible to them; see Runs and evidence.

ToolWhat it does
list_runsEvery run: running, finished, and orphaned (rehydrated from an archive after its publisher died). Newest first.
run_statusPer-scenario outcomes, the executing scenario's live steps, retry activity — and for a supervised run the worker lanes, recycles, faults, stalls and progress.
failing_testsFailed and aborted scenarios with error messages and failing steps. Each failing step carries its failedCells (named expected/actual pairs) and its exception (type and filtered frames) when the publisher sent them. An empty list means nothing has failed so far — check run_status for whether it is done.
flaky_ledgerScenarios that passed only after retrying. Green builds hiding real instability; spans every known run unless narrowed.
await_run_completionBlock until a suite settles. Returns finished, orphaned or timeout with the final summary.
export_runctrf (rich — retries, flakiness, steps) or junit (lossy, for CI ingestion).
event_modelEvery slice with its command, handler, aggregates, emitted events, read models, messages and bound specifications. Empty until a producer pushes one.
slice_coverageWhat is untested per slice, and the two gaps are kept apart because they imply different actions: no-spec (nothing bound — scaffold scenarios) and no-evidence (bound, but no run has exercised it).
failing_specEverything failing_tests summarizes away: every step of the final attempt with status, duration and error, its cells (green ones too — a wrong sum must not hide a right product), logs, diagnostics and exception with filtered frames, plus prior attempts. This is the input for writing the code a red spec describes.

TIP

With several publishers active, a no-runId await_run_completion latches whichever run is in flight — which may be another session's supervisor worker. Pass the runId from list_runs.

See also ​