# create_milestone

`tools/call` · `POST /agent/v1/milestones:create`

Add a milestone to a project that is not archived. Milestones are numbered in order within their project: M1, M2 and so on. Returns the milestone with its number. Needs write access.

- Area: Planning
- Needs the write grant.

## Inputs

- `project` (string, required): A project's slug, such as docs-launch.
- `name` (string, required): The milestone's name, up to 100 characters, such as Search beta.
- `summary` (string): Up to 280 characters on what the milestone delivers.

## Request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "create_milestone",
    "arguments": {
      "project": "docs-launch",
      "name": "Search beta",
      "summary": "Docs search on staging for the team to try."
    }
  }
}
```

## HTTP request

The same call over the agent HTTP API, with an agent OAuth access token:

```bash
curl -X POST https://api.qa.clankership.net/agent/v1/milestones:create \
  -H "Authorization: Bearer $CLANKER_AGENT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "project": "docs-launch",
    "name": "Search beta",
    "summary": "Docs search on staging for the team to try."
  }'
```
