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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/threads/profile.ts:7-21 (handler)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 }; } } ); - src/tools/threads/profile.ts:5-5 (registration)Registration function for the Threads profile tools, including `threads_get_profile`.
export function registerThreadsProfileTools(server: McpServer, client: MetaClient): void {