# update_collection

> Rename a collection with Wavegrain's MCP server: the update_collection tool needs the write permission. Inputs, outputs and an example call.

> Index of these docs: https://wavegrain.com/developers/llms.txt

**Rename a collection.** Permission: `write`. Changes or removes saved work.

Rename an image collection or change its description. For a new one, use save_images with newCollection.

## Inputs

| Input | Type | Required | Notes |
| --- | --- | --- | --- |
| `collectionId` | string | yes | A collection id from list_collections. up to 200 characters |
| `name` | string | no | The new name. up to 120 characters |
| `description` | string \| null | no | What the collection is for; null clears it. |

The fields inside an object or a list are in the JSON Schema at [/developers/mcp-tools.json](/developers/mcp-tools.json).

## Returns

| Field | Type | Notes |
| --- | --- | --- |
| `collectionId` | string | The collection. |
| `name` | string | Its name now. |
| `description` | string \| null | Its description now; null when empty. |

## Example call

Send it to `POST https://wavegrain.com/api/mcp` with an access key that has the `write` permission; [Authentication](/developers/authentication) shows how to make one.

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "update_collection",
    "arguments": {
      "collectionId": "<collectionId>"
    }
  }
}
```

The call shows only the required inputs, with placeholder values: put your own in.

## Related tools

- [`save_format`](/developers/mcp-tools/save_format): Save a slideshow format
- [`rename_slideshow`](/developers/mcp-tools/rename_slideshow): Rename a slideshow
- [`delete_slideshow`](/developers/mcp-tools/delete_slideshow): Delete a slideshow
- [`delete_collection`](/developers/mcp-tools/delete_collection): Delete a collection
- [`edit_collection_images`](/developers/mcp-tools/edit_collection_images): Remove or move collection images
- [`revoke_review_link`](/developers/mcp-tools/revoke_review_link): Turn off a review link
- [All 79 tools](/developers/mcp-tools)
