# `generate_title`

_Content & calendar_

`write` `50/day`

AI-generate a working title. Pass contentId to title an existing content (saves it and returns { content }) or idea for a free-form idea (returns { title }). Consumes the daily quota (50/day, one short AI call).

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `brandId` | `string` | no |  |
| `contentId` | `string` | no |  |
| `idea` | `string` | no |  |

## Example

### Prompt

```text
Suggest a catchy title for my draft about batch filming a week of content.
```

### JSON-RPC

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "generate_title",
    "arguments": {
      "brandId": "3f6c2a4e-8b1d-4c7a-9e2f-5a1b0c9d8e7f",
      "contentId": "3f6c2a4e-8b1d-4c7a-9e2f-5a1b0c9d8e7f"
    }
  }
}
```

### curl

```bash
curl -X POST https://app.usedalea.ai/api/mcp/mcp \
  -H "Authorization: Bearer dalea_mcp_..." \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"generate_title","arguments":{"brandId":"3f6c2a4e-8b1d-4c7a-9e2f-5a1b0c9d8e7f","contentId":"3f6c2a4e-8b1d-4c7a-9e2f-5a1b0c9d8e7f"}}}'
```
