Suggest times to post
suggest_posting_timesConcrete upcoming times to publish, from the organization's own best-performing slots over the next 14 days (the slot's midpoint hour, in the organization's timezone), skipping slots that already hold a scheduled post for the same account (or platform, or organization). Pass a suggestion's scheduledAt straight to create_post or reschedule_post. Each suggestion carries the slot's average engagement and sample count; dayOfWeek is 0 = Sunday … 6 = Saturday and slot n covers hours [n×4, (n+1)×4) — e.g. slot 2 is 8:00–12:00 — both in the organization's timezone. An empty list names its reason (NOT_ENOUGH_DATA, NO_RELIABLE_SLOTS, ALL_SLOTS_OCCUPIED: too little history, no slot with 3+ samples, or every slot in the horizon already taken) and no time is invented: tell the user rather than guessing.
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": "suggest_posting_times"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Earliest ISO-8601 instant to suggest (default now). A date without a time means the start of that day in the organization's timezone; a past value is treated as now; one beyond the furthest schedulable date is refused. | |
| count | No | How many times to suggest (1-10, default 5) | |
| platform | No | Restrict to one platform | |
| organizationId | No | Organization to act in — an id from list_organizations. Required when this connection was authorized for more than one organization; omit it when there is only one. | |
| platformConnectionId | No | Restrict to one connected account (id from list_platform_connections) — use this when the organization has several accounts on the same platform. Its platform wins over `platform`; a different one is refused. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| basis | No | The platform/account filter and the history the slots came from | |
| reason | No | Why suggestions is empty: NOT_ENOUGH_DATA | NO_RELIABLE_SLOTS | ALL_SLOTS_OCCUPIED; null otherwise | |
| timezone | No | IANA zone the slots are in | |
| horizonEnd | No | Exclusive | |
| suggestions | No | ||
| horizonStart | No | ||
| notEnoughData | No |