Count posts
count_postsExact post counts for the organization without paging list_posts: { total, byStatus, scheduledNext7Days }. byStatus has every status (draft, scheduled, pending_approval, awaiting_plan, queued, processing, complete, failed, removed), 0 when none. scheduledNext7Days is scheduled or queued posts due between now and 7 days from now. accountId and platform filter exactly as in list_posts.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "count_posts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| platform | No | Only posts to this network, e.g. "tiktok". | |
| accountId | No | Only posts to this account (an id from list_accounts). | |
| organizationId | No | Which organization to act in: an id from list_organizations. Leave out for this connection's default organization. |