Coordinate with another agent
coordinate_with_agentSend a stored message to another agent to agree how overlapping work should coexist. Use when a conflict is detected; linking a conflict ID changes its status to COORDINATING.
Instructions
Send a stored message to another registered agent, usually to agree how two overlapping pieces of work should coexist. Use it when check_conflicts or related_work shows a clash you need the other agent to act on; afterwards, a party to the conflict records the agreement with resolve_conflict, naming this message's id. Linking a conflict_id moves that conflict from OPEN to COORDINATING. The message is appended to a durable log with status UNREAD; it does not interrupt or control the other agent. No MCP tool reads messages: the recipient reads them with the CLI, foremerge coordinate inbox. Returns the stored message, including its msg_ id.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"from_agent_id": "<from_agent_id>",
"to_agent_id": "<to_agent_id>",
"message": "<message>"
},
"name": "coordinate_with_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | What you propose or need, in plain language. | |
| conflict_id | No | Optional stored conflict (cfl_...) this message is about. An eph_ id from a what-if check_conflicts is rejected with NOT_FOUND. May be combined with changeset_id. | |
| to_agent_id | Yes | The recipient's agent id (agt_...), for example the owner of the conflicting intent. | |
| changeset_id | No | Optional ChangeSet (chg_...) this message is about. Must exist. | |
| from_agent_id | Yes | Your agent id (agt_...). |