update_collection

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

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

InputTypeRequiredNotes
collectionIdstringyesA collection id from list_collections. up to 200 characters
namestringnoThe new name. up to 120 characters
descriptionstring | nullnoWhat 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.

Returns

FieldTypeNotes
collectionIdstringThe collection.
namestringIts name now.
descriptionstring | nullIts 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 shows how to make one.

{
  "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.

Something wrong or missing? Write to support@wavegrain.com.