Skip to main content
Glama

threads_get_profile

Retrieve Threads user profile data including verification status to access account information through the Meta platform API.

Instructions

Get Threads user profile information including verification status.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler implementation for the `threads_get_profile` tool, which fetches profile data using the MetaClient.
    server.tool(
      "threads_get_profile",
      "Get Threads user profile information including verification status.",
      {},
      async () => {
        try {
          const { data, rateLimit } = await client.threads("GET", `/${client.threadsUserId}`, {
            fields: "id,username,name,threads_profile_picture_url,threads_biography,is_verified",
          });
          return { content: [{ type: "text", text: JSON.stringify({ ...data as object, _rateLimit: rateLimit }, null, 2) }] };
        } catch (error) {
          return { content: [{ type: "text", text: `Get profile failed: ${error instanceof Error ? error.message : String(error)}` }], isError: true };
        }
      }
    );
  • Registration function for the Threads profile tools, including `threads_get_profile`.
    export function registerThreadsProfileTools(server: McpServer, client: MetaClient): void {

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