> ## Documentation Index
> Fetch the complete documentation index at: https://docs.murmur.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# goal MCP tools

> MCP tools that read, set, change, and report on an agent's goal: goal_get, goal_set, and goal_report.

Three tools manage an [agent's goal](https://docs.murmur.dev/concepts/goals.md): an objective the agent keeps working toward whenever it has nothing else to do. They are equivalent to [`murmur goal`](https://docs.murmur.dev/cli/goal) in the CLI.

Every tool takes these targeting parameters:

| Name | Type | Required | Description |
| - | - | - | - |
| `slug` | string | no | Agent slug. Empty means self (on VMs). Use an absolute path like `/w/{workspace}/{owner_provider}/{account}/{slug}` to target an agent outside your own path. |
| `workspace` | string | no | Workspace name. Overrides the session default. Required only when nothing else supplies one: off a VM, with no session default, and with a slug that is not a `/w/{workspace}/...` path. |

## goal\_get

Returns the agent's goal: its `goal_id` and revision, objective, status and why, turn counts, `max_continuations` and `run_continuations` (turns the goal has started since it was last set, resumed, or edited), and the latest report. Fails when the agent has no goal.

## goal\_set

Gives an agent a goal, or changes the one it has. An agent cannot set, edit, or clear its own goal.

| Name | Type | Required | Description |
| - | - | - | - |
| `objective` | string | to set or edit | What the agent should achieve, including how to tell that it is done. At most 8,000 bytes. Editing it increases the goal's revision. |
| `max_continuations` | integer | to set, and only then | How many turns the goal may start before Murmur blocks it, counted from when it is set, resumed, or its objective is edited. Resuming a goal blocked at its limit allows as many more. 1 to 1,000. To change it, set a new goal. |
| `action` | string | no | `pause`, `resume`, `complete`, or `clear`. Omit to set or edit the goal. |
| `goal_id` | string | to edit, pause, resume, or complete | The `goal_id` that `goal_get` returned. If the goal has since been replaced or cleared, the change is refused; read the goal again and decide whether it still applies. |

`objective` with `max_continuations` sets a new, active goal, replacing any goal the agent has. `objective` alone edits the goal `goal_id` names, and `action` changes its status. `action: clear` removes whatever goal the agent has. Setting a new goal or clearing takes no `goal_id`, `action` takes no `max_continuations`, and `action: clear` takes no `objective`.

```json theme={null}
{
  "slug": "fix-flakes",
  "objective": "Make the TestReplay* suite pass 50 runs in a row on main. Done means a PR is merged and CI is green on it.",
  "max_continuations": 20
}
```

## goal\_report

Available to an agent on its own VM. Reports its goal complete or blocked; this is the only way an agent ends a goal.

| Name | Type | Required | Description |
| - | - | - | - |
| `goal_id` | string | yes | The `goal_id` shown under Goal in your instructions for the turn you did the work in. |
| `revision` | integer | yes | The goal revision shown under Goal in your instructions. A report on an edited or replaced goal is refused. |
| `outcome` | string | yes | `complete`: the objective is met, verified against current evidence. `blocked`: progress needs something only a person can supply. |
| `summary` | string | yes | What was achieved and how it was verified, or what is blocking and what a person must do. At most 4,000 bytes. |
| `reason` | string | when blocked | Required when `outcome` is `blocked`, and only then: why the goal is blocked, in one line of at most 200 bytes, such as `needs a Stripe API key`. The dashboard shows it next to the goal's Blocked status. |

```json theme={null}
{
  "goal_id": "goal-1-6f1c2a9e-3b7d-4e52-a8c4-91d0e7b35f21",
  "revision": 1,
  "outcome": "complete",
  "summary": "Merged #812; the TestReplay* suite passed 50 consecutive runs on main and CI is green."
}
```

## Spawning with a goal

The [`spawn`](https://docs.murmur.dev/mcp-server/spawn) tool takes a `goal` object with an `objective` and `max_continuations`. With a goal, `description` is optional: the agent starts on the goal.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.