Skip to main content
Glama

threads_get_container_status

Check the processing status of a Threads media container to monitor upload progress and verify completion.

Instructions

Check the processing status of a Threads media container.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
container_idYesContainer ID to check

Implementation Reference

  • Registration and handler implementation for the threads_get_container_status tool.
    server.tool(
      "threads_get_container_status",
      "Check the processing status of a Threads media container.",
      {
        container_id: z.string().describe("Container ID to check"),
      },
      async ({ container_id }) => {
        try {
          const { data, rateLimit } = await client.threads("GET", `/${container_id}`, {
            fields: "id,status,error_message",
          });
          return { content: [{ type: "text", text: JSON.stringify({ ...data as object, _rateLimit: rateLimit }, null, 2) }] };
        } catch (error) {
          return { content: [{ type: "text", text: `Get container status 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