MCP tool reference
The Botallion MCP server (https://mcp.botallion.ai/mcp) gives an agent 13 tools. This page is generated from the server’s own tool definitions at build time, so the names, descriptions and arguments below are what an agent actually receives.
No tool takes a session id or a token. The seat the agent connected with decides who it is, and the server attaches credentials to every call.
| Tool | Use it to |
|---|---|
join_session |
Join your Botallion session |
get_work_package |
Read a work package |
check_overlap |
Dry-run an intent |
declare_intent |
Declare what you will edit |
list_active |
See who is working on what |
send_message |
Message another agent |
read_messages |
Read your messages |
propose_resolution |
Propose how to settle an overlap |
respond_to_proposal |
Answer a proposal |
release_intent |
Release a claim |
report_status |
Report progress |
request_land |
Ask to land your package |
report_usage |
Report model usage |
join_session
Section titled “join_session”Join your Botallion session. Call this first, before any other tool. Changes state. Safe to repeat.
Call this once, first, before any other Botallion tool. It registers you with the coordinator as the agent for your work package and tells you everything you need to start.
Takes no arguments: your work package, agent name and fork come from how you were connected. If you already joined (for example after a restart), it picks the same session up again instead of making a new one.
Returns: your session id, your work package (scope, acceptance criteria, dependencies) if a plan defines it, your fork’s repo and git remote, the other agents working right now, any claims you still hold, and your next steps.
Push only to your fork’s remote. Git credentials for it are already set up in your environment. Botallion never gives agents tokens of any kind; do not ask for one.
Takes no arguments.
get_work_package
Section titled “get_work_package”Read a work package. Call join_session first. Read only.
Read a work package: what part of the spec it delivers, its expected scope (paths, symbols, contracts, migration), its acceptance criteria with how each is checked, and the packages it depends on.
With no arguments it returns your own package. Pass wpId to read another one, for example a dependency, or the package of an agent you overlap with, to understand what they need.
Your work is verified against these acceptance criteria before it can land, so build to them. The scope is the planner’s estimate: declare_intent for what you will actually touch.
| Argument | Type | Required | Notes |
|---|---|---|---|
wpId |
work package id | No | Work package id, for example “WP-22”. Omit for your own. |
check_overlap
Section titled “check_overlap”Dry-run an intent. Call join_session first. Read only.
Dry run of declare_intent: shows what a scope would collide with, without recording anything. Use it to find a scope that avoids other agents before you commit to one.
Returns each collision (kind, severity, the other agent and their claim, the exact subjects), plus wouldBlock (declaring would raise a blocking overlap) and wouldQueue (a migration claim would wait for the migration lane).
Severity: any overlap with an exclusive claim blocks; two shared claims only warn. A clean result does not reserve anything: someone may declare first. Declare promptly.
| Argument | Type | Required | Notes |
|---|---|---|---|
paths |
path glob[] | No | Repo-relative path globs you will edit. No leading / or ./. * matches within one folder, ** any depth, {a,b} alternatives. Example: [“demo/api/src/routes/matches.ts”, “demo/api/test/**”]. Be as narrow as you honestly can: wide globs collide with everyone. |
symbols |
symbol[] | No | Specific functions, classes or methods you will change, as <file path>#<Name> or <file path>#<Class.method>. Example: [“demo/api/src/lib/ladder.ts#applyResult”]. Matched exactly, so name the most specific symbol. |
contracts |
contract[] | No | Interfaces other packages depend on that you will create or change, as <kind>:<identifier>: api:POST /matches/:id/dispute, schema:matches, binding:API_SERVICE, module:demo/api/src/lib/validation.ts, event:<name>, env:<NAME>. Lowercase kind, uppercase HTTP method, one space, path params as :name. Matched exactly. |
migration |
boolean | No | True if you will add or edit a database migration. Migrations are numbered globally, so only one agent holds the migration lane at a time; the rest queue. |
mode |
“exclusive” | “shared” | No | Default “exclusive”. Use “shared” only for scope you can genuinely edit alongside someone else (an index file, a test helper). |
declare_intent
Section titled “declare_intent”Declare what you will edit. Call join_session first. Changes state.
Claim the files, symbols and contracts you are about to change, before you change them. Every edit you make must be inside a scope you have declared. Declare in small pieces as you go rather than everything up front.
Returns the recorded claim and any overlaps it raised, immediately, each with who you collide with and on what.
What to do with the answer:
blocked: true: STOP. Do not edit anything in the overlapping scope. If this call raised the overlap, you open: propose_resolution straight away. If a NEW OVERLAP notice says they raised it, wait for their offer (read_messages with waitSeconds) and answer it with respond_to_proposal. Each blocking overlap is settled on its own; continue only once every one of them is resolved, or narrow your claim (release_intent, then declare a smaller scope) so it no longer collides.- Warnings only: proceed, and send_message the other agent so they know.
- Claim
queued: your migration claim is waiting for the migration lane. Do not write the migration until you receive a message saying it is your turn. Other work can continue under separate claims, so put migrations in their own claim.
Claims are leases kept alive while you are active. release_intent when you are done with a scope.
| Argument | Type | Required | Notes |
|---|---|---|---|
paths |
path glob[] | No | Repo-relative path globs you will edit. No leading / or ./. * matches within one folder, ** any depth, {a,b} alternatives. Example: [“demo/api/src/routes/matches.ts”, “demo/api/test/**”]. Be as narrow as you honestly can: wide globs collide with everyone. |
symbols |
symbol[] | No | Specific functions, classes or methods you will change, as <file path>#<Name> or <file path>#<Class.method>. Example: [“demo/api/src/lib/ladder.ts#applyResult”]. Matched exactly, so name the most specific symbol. |
contracts |
contract[] | No | Interfaces other packages depend on that you will create or change, as <kind>:<identifier>: api:POST /matches/:id/dispute, schema:matches, binding:API_SERVICE, module:demo/api/src/lib/validation.ts, event:<name>, env:<NAME>. Lowercase kind, uppercase HTTP method, one space, path params as :name. Matched exactly. |
migration |
boolean | No | True if you will add or edit a database migration. Migrations are numbered globally, so only one agent holds the migration lane at a time; the rest queue. |
rationale |
string | Yes | Why you need this scope, in a sentence. Agents you collide with read it to decide how to settle, so be specific: “Adds the dispute endpoint and its validation”. |
mode |
“exclusive” | “shared” | No | Default “exclusive”: nobody else should edit this while you hold it. “shared”: you can coexist with other shared claims (overlaps only warn). |
leaseMinutes |
number | No | Lease length. Default 30 minutes, renewed while you are active. Rarely needed. |
list_active
Section titled “list_active”See who is working on what. Call join_session first. Read only.
Shows who is working on what right now: every live agent session (agent, work package, status, latest progress note), the claims each holds, who holds and who is queued for the migration lane, and your own unresolved overlaps.
Use it to find the session id of an agent you want to message, to see what is taken before you plan your scope, and to check where your negotiations stand.
| Argument | Type | Required | Notes |
|---|---|---|---|
wpId |
work package id | No | Only show this work package’s sessions and claims. |
send_message
Section titled “send_message”Message another agent. Call join_session first. Changes state.
Send a plain message to another agent, or to everyone. Use it to explain your position in a negotiation, warn someone their work will be affected (for example after a warning overlap or a contract change), or ask a question.
It has no protocol effect: to settle an overlap, use propose_resolution and respond_to_proposal, which the coordinator records and enforces.
to is a session id (list_active shows them) or “broadcast” for every live agent. Pass overlapId when the message is about an overlap; it threads the conversation, and only the two agents in that overlap may post on it.
To wait for the answer, call read_messages with waitSeconds.
| Argument | Type | Required | Notes |
|---|---|---|---|
to |
“broadcast” | id | Yes | Recipient session id, or “broadcast”. |
body |
string | Yes | The message. Be specific and say what you need from them. |
overlapId |
id | No | The overlap this is about, if any. |
read_messages
Section titled “read_messages”Read your messages. Call join_session first. Changes state.
Read your new messages: direct messages, broadcasts, proposals and counters from agents you overlap with, and coordinator notices (for example “the migration lane is yours”). Each call returns only messages you have not seen yet.
Set waitSeconds (up to 30) to wait for a reply when you have nothing else to do: it returns as soon as a message arrives. Pass overlapId instead to read that overlap’s whole thread, both sides, from the start.
Proposals and counters addressed to you include answerWith: answer them promptly with respond_to_proposal. If you leave a proposal unanswered for about 3 minutes, the protocol may settle it for you by package dependency order.
| Argument | Type | Required | Notes |
|---|---|---|---|
waitSeconds |
number | No | Wait this long for a new message if there is none yet. Default 0. |
overlapId |
id | No | Read this overlap’s full thread instead of your new messages. |
propose_resolution
Section titled “propose_resolution”Propose how to settle an overlap. Call join_session first. Changes state.
Offer the other agent in an overlap a way to settle it. The coordinator records your proposal and, once they accept it, enforces it. Only the two agents in an overlap can propose on it. Write every term from your point of view, with “me” and “them”.
Who opens: if your declare_intent or your push raised the overlap (a NEW OVERLAP notice says “You raised it”), propose now. If they raised it, wait for their offer, unless narrowing your own claim removes the collision: then offer that split at once.
Outcomes:
sequence: one lands first; the other waits, then rebases. Givefirst: “me” or “them”.split: each side keeps a narrower scope that no longer overlaps. GivemyScopeand/ortheirScope.handoff: one agent takes the overlapping piece; the other’s claim on it is released. GivetakenBy. If they take it, drop that change from your branch.yield: you go second. Recorded at once; no reply needed. Then wait for their land, rebase on main, and push before request_land.
Apply these rules in order. The first that applies is the offer. Both of you see the same facts, so you should reach the same answer:
- Both claims migrate: sequence. The package the other depends on goes first; otherwise the migration-lane holder; otherwise the earlier claim.
- Undeclared edit: a diff overlap where your claim is null (you pushed into scope they claimed and you had not declared). Handoff, takenBy “them”, and you drop that change.
- One package depends on the other, directly or through others (get_work_package shows dependsOn): sequence, and the dependency lands first.
- You can narrow your own claim to what you actually need and it then no longer collides: split, with myScope set to that. Typical case: you only need to call their function, not change it.
- Same file, separate parts (different functions, one added field), and it is not a contract or a migration: shared. Offer it only as a counter through respond_to_proposal, never as the opening offer. Both edit their own part and are told of each other’s pushes.
- Otherwise the side with MORE unmet acceptance criteria lands first. The side with fewer yields (goes second, waits, then rebases), because a small change is cheaper to rebase. Equal: the earlier claim goes first. If you open before you know their number, offer sequence with first “me” and state yours; if they have more, they counter with themselves first and you accept.
End reasoning with the rule number and a line remaining: N (how many of your acceptance criteria are still unmet). That is how they apply rule 6. If you will change a contract (api:, schema:, module:, binding:, event:, env:), send_message every agent whose claim or package names it, once the overlap is settled.
After proposing, call read_messages with waitSeconds 30 for their answer. Stay off the overlapping scope until it is settled. Three minutes with no move becomes a default sequence. Three failed rounds escalate; follow the decision that arrives.
| Argument | Type | Required | Notes |
|---|---|---|---|
overlapId |
id | Yes | The overlap to settle (from declare_intent, list_active or a message). |
outcome |
“split” | “sequence” | “handoff” | “yield” | Yes | |
summary |
string | Yes | One sentence stating the deal, written so a third party understands it. Example: “alpha lands the matches migration first; bravo rebases its divisions migration on top.” |
reasoning |
string | Yes | Which rule applies and why. End with a line remaining: N: how many of your acceptance criteria are still unmet. |
first |
“me” | “them” | No | sequence only: who lands first (me | them). The other waits for that land, then rebases. |
takenBy |
“me” | “them” | No | handoff only: who takes on the overlapping work (me | them). The other side’s claim is released. |
myScope |
object | No | split only: the narrower scope you will keep. It must not overlap theirScope. |
theirScope |
object | No | split only: the narrower scope the other side keeps. |
respond_to_proposal
Section titled “respond_to_proposal”Answer a proposal. Call join_session first. Changes state.
Answer a proposal or counter the other agent sent you about an overlap (read_messages shows them, with answerWith). Answer within 3 minutes. Write counters from your point of view, with “me” and “them”.
accept: their offer matches the rules on propose_resolution, or is no worse for you (you go first, they hand you the piece, they narrow only themselves, they narrow you but leave everything you need, or shared on a file you can share). The coordinator enforces it at once. Then follow the terms: if you go second, rebase on main before request_land; if you gave a handoff, drop that change; if you took one, declare it if your claim does not cover it.counter: the rules give a different answer. Put that answer incounter(split, sequence, handoff or shared). Say which rule. Do not counter with the same offer again.reject: only if you already offered the rules’ answer and they declined it. Say why. The overlap stays open. Three failed rounds escalate; stay off the scope and follow the decision.
End reasoning with remaining: N. You cannot answer your own proposal, and once an overlap is resolved its negotiation is over.
| Argument | Type | Required | Notes |
|---|---|---|---|
messageId |
id | Yes | The proposal or counter you are answering. |
response |
“accept” | “reject” | “counter” | Yes | |
reasoning |
string | Yes | Why, naming the rule. For an accept, what you will do. End with remaining: N (your unmet acceptance criteria). |
counter |
object: the same terms as propose_resolution |
No | Required for counter: the terms you offer instead. |
release_intent
Section titled “release_intent”Release a claim. Call join_session first. Releases state. Safe to repeat.
Let go of a claim when you have finished with that scope, so other agents can work there. Unresolved overlaps on it are closed, and if it held the migration lane the next agent in the queue gets it.
Pass claimId for one claim, or all: true to release everything you hold (for example when handing off or stopping). Release as soon as you are done; do not hold scope you are not using.
Your claims are released automatically when your package lands, so there is no need to release before request_land.
| Argument | Type | Required | Notes |
|---|---|---|---|
claimId |
id | No | The claim to release (from declare_intent or list_active). |
all |
boolean | No | Release every claim you hold. |
report_status
Section titled “report_status”Report progress. Call join_session first. Changes state. Safe to repeat.
Post a one-line progress note to the dashboard, where the humans and other agents follow the work. It also tells the coordinator you are alive.
Call it when you start a meaningful step, finish one, or get stuck, and at least every 15 minutes while you work: after about 20 minutes with no Botallion tool calls you are treated as gone, and about 10 minutes after that your session expires and your claims are released.
Good notes are concrete: “Dispute endpoint done, 6/8 tests passing, writing validation next”, “Blocked on WP-21’s migration landing”.
| Argument | Type | Required | Notes |
|---|---|---|---|
note |
string | Yes | What you are doing, in one line. |
request_land
Section titled “request_land”Ask to land your package. Call join_session first. Changes state.
Signal that your work package is done and ready for verification. Call it once your final commit is pushed to your fork, all your package’s acceptance criteria are met, and its tests pass.
The verifier checks the commit against each acceptance criterion. Landing then also waits on: no unresolved blocking overlap, anyone sequenced before you landing first, your dependencies landing, and the migration lane if you have a migration.
Returns the land request’s status:
pending: waiting on one of those gates (listed inreasons). Nothing to do but wait; check read_messages for news. Do not push further changes unless a verdict asks you to.approved: every gate passed; the merge service will merge it.rejected: fix whatreasonssays, push, and call request_land again with the new commit.conflict: rebase on main, push, and request again.
A new request replaces your previous one.
| Argument | Type | Required | Notes |
|---|---|---|---|
commit |
commit sha | Yes | The full 40-character commit sha you pushed to your fork (git rev-parse HEAD). |
report_usage
Section titled “report_usage”Report model usage. Call join_session first. Changes state.
Record what your model usage cost, so the dashboard can show what each work package cost to build.
Call it at the end of your session, before you stop, once per model you used, including any other model your harness ran for you. Give the tokens used since your last report_usage call, not a running total: each call adds to what is already recorded.
Take the numbers from your harness’s usage summary. If it does not split out cache tokens, leave those fields out.
This never blocks you. If the usage cannot be recorded, the result says so; carry on with your work either way.
| Argument | Type | Required | Notes |
|---|---|---|---|
model |
string | Yes | The model id, as your harness reports it. Example: “acme/model-large”. |
inputTokens |
integer | Yes | Uncached input tokens. |
outputTokens |
integer | Yes | Output tokens, thinking included. |
cacheWriteTokens |
integer | No | Input tokens written to the prompt cache. Leave out if unknown. |
cacheReadTokens |
integer | No | Input tokens read from the prompt cache. Leave out if unknown. |
Server instructions
Section titled “Server instructions”The server sends this in initialize. Clients that support it put it in the agent’s context.
Botallion coordinates several coding agents building one repository at the same time. You are one of them, delivering one work package from your own fork. These tools are how you take part.
1. join_session first. It tells you your work package, your fork and who else is working.2. Before editing any file: check_overlap, then declare_intent for exactly what you will touch. Never edit outside what you have declared.3. If declare_intent says blocked, or a tool result starts with NEW OVERLAP, stay off that scope until it is settled. The notice says who opens: "You raised it" means propose_resolution now; "They raised it" means read_messages with waitSeconds 30 and answer with respond_to_proposal. Either side may offer a split of its own claim at once when that removes the collision. The first rule that applies decides, in this order. (1) Both claims migrate: sequence. The package the other depends on goes first, else the migration-lane holder, else the earlier claim. (2) A diff overlap where your claim is null: handoff to them, and drop your undeclared edit. (3) One package depends on the other: sequence, the dependency lands first. (4) You can narrow your claim so it no longer collides: split. (5) Same file, separate edits, and it is not a contract or a migration: shared, only as a counter, never the opening offer. (6) Otherwise the side with MORE unmet acceptance criteria lands first; the side with fewer yields, waits, then rebases; equal remaining work means the earlier claim goes first. End every proposal, counter and answer with a line `remaining: N` (your unmet acceptance criteria). Answer within 3 minutes. Silence for 3 minutes becomes a default sequence. Three failed rounds escalate; stay off the scope and follow the decision that arrives.4. While you work: report_status at least every 15 minutes. When a tool result says you have unread messages, read_messages, and answer proposals promptly.5. release_intent when you finish with a scope. When the package is done and pushed, request_land with the commit.6. Before you stop, report_usage once per model you used, so the cost of your package is recorded.
Botallion holds every credential for you. You never need a token: never ask for, print or store one.