Docs Reference

MCP tools

Every tool the teamtrail mcp server offers, grouped by what agents use it for.

Agents also get server instructions on connect that explain when to use each tool. Most tools take an optional trail (key such as #1, id or title; default: the trail the session is on) and an optional ticket (default: the ticket the agent holds). Read-only tools are marked.

#Trails

ToolMain inputs
statusRead-only. Trails, progress, ready / claimed / blocked tickets, sessions, the ranked attention summary, discovery, adaptive and parallel-work state, spend.trail
start_trailCreate a trail and chart its tickets. Adds a discovery ticket unless discovery: false.title, destination, notes, mode, decided, unspecified, outOfScope, tickets[] (ref, title, type, body, hitl, blockedBy, criteria), assumptions[], discovery
resume_trailOpen a session on a trail: status, any ticket you still hold, the next ready ticket.trail
update_trailEdit the destination or notes, add Not yet specified, Out of scope or Assumptions lines, switch mode. Plan changes go through propose_reroute.destination, notes, addUnspecified, addOutOfScope, addAssumptions, mode
submit_briefSubmit the discovery brief for the human to review.summary, existing (required), productContext, conventions, dataModel, api, risks, assumptions, openQuestions
get_briefRead-only. The brief, its status and any requested changes.trail

#Tickets

ToolMain inputs
next_ticketRead-only. The oldest ready ticket with its blockers' decisions. Doesn't claim.types
claim_ticketClaim a ticket (default: the next ready one). Returns knowledge, suggested criteria, verification checks, any warnings and the workspace. Fails if another agent got it first, if it's frozen by a reroute, or if discovery isn't accepted.ticket, touches (path globs), workspace
release_ticketGive a claimed ticket back without closing it.ticket, reason
add_ticketAdd a ticket, or promote a Not yet specified line.title, type, body, hitl, blockedBy, fromUnspecified, criteria
set_criteriaSet a ticket's acceptance criteria (AC-1, …), replacing existing ones.ticket, criteria[] (text, kind, source)

#Working and completing

ToolMain inputs
report_progressStep, log line, chat message; tokens and cost only when no agent log is read.step, message, level, say, inputTokens, outputTokens, costUsd
close_ticketResolve or rule out a ticket: resolution comment, decision record, unblocked tickets. Runs verification first when the ticket needs it.resolution, summary, rationale, alternatives, outcome (completed or out_of_scope), criteria[] (id, evidence, note), category, paths, assumes, noCodeReason, postTranscript, waitSeconds
report_completionClaim a ticket is done; like close_ticket, plus the pull request to track.the same, plus pr
verification_statusRead-only. Attempts, check results and verdicts; can wait for running checks.ticket, wait, waitSeconds
submit_reviewAnswer a review ticket. You can't review work you did.ticket, verdict (PASS, FAIL, NEEDS_HUMAN), summary, findings[] (path, line, severity, text)
record_decisionKeep a decision that isn't a ticket resolution. High-risk calls are rejected unless the human made them.question, answer, summary, rationale, alternatives, decidedBy, appendToTrail, category, paths, assumes

#The human

ToolMain inputs
ask_humanAsk through Waiting on you and wait for the answer.question, suggestions, waitSeconds, framing, urgency (blocking, soon, fyi), blocks (ticket refs), category
wait_for_answerRead-only. Keep waiting for an answer.questionId, waitSeconds
list_inboxRead-only. Waiting questions plus the ranked attention items with reasons.kinds
answer_questionPass on the human's own words from the chat. Never invent an answer.questionId, answer

#Knowledge

ToolMain inputs
search_knowledgeRead-only. Search entries by words, paths and tags.query, paths, tags, kind, includeOutdated
propose_knowledgeSuggest an entry; it stays suggested until the human confirms it.kind, title, body, scope, tags, files
flag_knowledgeReport an entry that contradicts the code or product.id (K-<n>), reason

#Assumptions and reroutes

ToolMain inputs
list_assumptionsRead-only. The trail's assumptions with status and linked tickets.trail
challenge_assumptionMark an assumption challenged, with evidence. Returns what depends on it.assumption (S-<n>), evidence, ticket
propose_reroutePropose typed plan changes. Returns errors, or the pending proposal with its diff and frozen tickets.kind (reroute, challenge-destination), destinationReason, reason, evidence, invalidates, changes[]
reroute_statusRead-only. A proposal's status; can wait for the human's decision.id, wait, waitSeconds

See Assumptions and reroutes for the change types, and Verification and criteria for completion results.