Count posts affected by a disconnect
get_affected_post_countHow many still-pending, future-scheduled posts target this account: what disconnect_account or delete_account_group would affect. Returns {count, account:{accountId, platform, username, groupId, groupName}}. The account echo names the account the id resolved to, for the user to recognise: accountIds are opaque and look nothing alike across platforms (a Pinterest accountId is the handle, a Bluesky one is a did:plc:...), so a wrong id is easy to pass and impossible to spot from a count alone. A 404 'Account not found' is the opposite of an all-clear: the id matched no account in this workspace at all (typo, wrong platform, already disconnected), so nothing was counted and nothing was ruled out, and list_accounts has the real ids. A 403 is not an all-clear either: the account exists but sits outside the groups this member may touch. Only count:0 together with an account echo the user recognises means nothing is at stake.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"accountId": "<accountId>"
},
"name": "get_affected_post_count"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accountId | Yes | The account's accountId (see list_accounts) | |
| workspace | No | Act in a team workspace: the owner's id from whoami's memberOfWorkspaces[].ownerId. Omit to act in your own workspace. |