threads_get_publishing_limit
Check remaining daily post allowance for Threads to manage publishing limits and avoid exceeding the 250 posts per day restriction.
Instructions
Check how many posts you can still publish within the current 24-hour window (max 250 posts/day).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/threads/publishing.ts:221-235 (handler)Implementation of the 'threads_get_publishing_limit' tool, which queries the Threads API for current publishing quota usage.
server.tool( "threads_get_publishing_limit", "Check how many posts you can still publish within the current 24-hour window (max 250 posts/day).", {}, async () => { try { const { data, rateLimit } = await client.threads("GET", `/${client.threadsUserId}/threads_publishing_limit`, { fields: "quota_usage,config", }); return { content: [{ type: "text", text: JSON.stringify({ ...data as object, _rateLimit: rateLimit }, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: `Get publishing limit failed: ${error instanceof Error ? error.message : String(error)}` }], isError: true }; } } );