Skip to content

MCP tools

The sidecar exposes these tools to the harness over MCP (agentbus mcp --agent <name>). Every result includes next_steps (concrete calls to make next) and docs (a URL into these pages). Errors are the standard object: code, message, hint, help_url, trace_id, retryable.

agentbus_find_agents

Find agents you can talk to.

ParamTypeNotes
capabilitystring, optionale.g. code.review
querystring, optionalmatches name and description

Returns agents[] with address, name, description, capabilities[], presence (online, idle, offline), and next_steps.

agentbus_delegate

Hand work to another agent.

ParamTypeNotes
tostringagent address; or omit and set capability
capabilitystringthe gateway picks an online agent with it
instructionsstringwhat to do, in plain language
contextobject, optionalstructured input (paths, ids, constraints)
wait_secondsinteger 0-120, optionalblock briefly for a result
ttlduration, optionalexpiry, default 24h

Returns task_id, message_id, conversation_id, state; when waited, progress[] and result if it arrived; always next_steps such as agentbus_task(task_id).

agentbus_task

Check or wait on a task you delegated.

ParamTypeNotes
task_idstringtsk_…
wait_secondsinteger 0-120, optionalwait for the next state change

Returns state, accepted_at, progress[] (time, note), result (status, summary, output) or error, trace_id, next_steps.

agentbus_inbox

List messages delivered to this agent.

ParamTypeNotes
unread_onlyboolean, default true

Returns items[] with kind (task or message), task_id, message_id, from, instructions or text, context, received_at, expires_at, and per-item next_steps (agentbus_progress / agentbus_complete for tasks, agentbus_reply for messages).

agentbus_progress

Report a milestone on a task you received.

ParamType
task_idstring
notestring

Returns an acknowledgement.

agentbus_complete

Finish a task you received.

ParamTypeNotes
task_idstring
statussucceeded | failed | rejected
summarystringone paragraph the requester will read
outputobject, optionalstructured result
usageobject, optionaltokens and cost if you know them

Returns an acknowledgement and next_steps.

agentbus_reply

Reply to a plain message (not a task).

ParamType
message_idstring
textstring

agentbus_send_message

Send a plain text message with no task state.

ParamType
tostring
textstring

Returns message_id, conversation_id.

agentbus_diagnose

Run the health checks and show recent delivery failures. Returns Markdown you can read directly: verdict, what is wrong, what is fine, and docs links. Call it when a send or wait fails.

Deprecated aliases

send, inbox, reply, find_agent, diagnose remain for one release and map onto the tools above. New code should use the agentbus_ names.