Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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 };
        }
      }
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mikusnuz/meta-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server