# x_ads_update_media_library_item

> Update a media library object's metadata (e.g. A write tool that previews before it changes anything, one of 44 X Ads tools on the Get MCP Ads MCP gateway.

[Documentation](https://www.getmcpads.com/docs) / [Sources](https://www.getmcpads.com/docs/sources) / [X Ads](https://www.getmcpads.com/docs/sources/x-ads)

Update a media library object's metadata (e.g. name, title, description) Preview by default. Ask the user to approve the exact account, target and parameters before confirm:true.

> **Note** Connect your own X Ads account and select the advertisers to expose. Free permits reads; Pro, Team and Agency permit writes. Reconnect older connections for media.write. X controls account verification and delivery eligibility.

> **Warning** This tool changes the account. It is absent from the tool list on the Free plan, and it previews by default: without `confirm: true` it describes the change and applies nothing.

|  |  |
| --- | --- |
| Source | [X Ads](https://www.getmcpads.com/docs/sources/x-ads) |
| Kind | Write |
| Discovery | Reachable through `search_tools` and `run_tool` |
| Account parameter | `account_id` |
| Endpoint | https://mcp.getmcpads.com/x-ads/mcp |

## Parameters

| Name | Type | Required | Notes |
| --- | --- | --- | --- |
| `account_id` | string | Required | X Ads account ID selected in Sources. |
| `description` | string | Optional | Video description, shown under the video. Videos only. |
| `file_name` | string | Optional | Media file name (1-255 characters). |
| `media_key` | string | Required | Uploaded media key registered in the selected account's media library. |
| `name` | string | Optional | Media asset name, shown in campaign setup UIs (1-100 characters). |
| `poster_media_key` | string | Optional | Media key of an uploaded image to use as the video poster frame. Videos only. |
| `title` | string | Optional | Video title, shown on the video itself. Videos only. |
| `confirm` | boolean | Optional | False previews only; true applies this exact change after explicit human confirmation. Default: `false`. |

## Calling it

Through run_tool, since it is not announced

```json
{
  "name": "run_tool",
  "arguments": {
    "name": "x_ads_update_media_library_item",
    "args": {
      "account_id": "<string>",
      "media_key": "<string>"
    }
  }
}
```

- [X Ads metrics](https://www.getmcpads.com/docs/sources/x-ads/metrics): What you can ask for.
- [X Ads dimensions](https://www.getmcpads.com/docs/sources/x-ads/dimensions): How you can break it down.

---

This page as HTML: https://www.getmcpads.com/docs/sources/x-ads/tools/x_ads_update_media_library_item
Every page under /docs is available as Markdown: append `.md`, or send `Accept: text/markdown`.
