set_account_groups

Put an account in groups with Wavegrain's MCP server: the set_account_groups tool needs the write permission. Inputs, outputs and an example call.

Put an account in groups. Permission: write. Changes or removes saved work.

Set a connected account's groups: groupIds replaces them, addGroupIds adds. A group holds one account per network. An approved post whose accounts change goes back to draft until the owner approves it again (approvalsWithdrawn); tell the user.

Inputs

InputTypeRequiredNotes
accountIdstringyesA connected account from list_accounts. up to 200 characters
groupIdsstring[]noREPLACES every group the account is in; an empty list takes it out of all. up to 20 items
addGroupIdsstring[]noAdds groups and keeps the ones it is in. up to 20 items

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

Returns

FieldTypeNotes
accountIdstringThe account.
groupIdsstring[]The groups it sits in now.
approvalsWithdrawnstring[]Slideshows whose approval this took back, because the accounts they post to changed.
notestringWhat to tell the user.

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": "set_account_groups",
    "arguments": {
      "accountId": "<accountId>"
    }
  }
}

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

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