Skip to main content
Glama
olamide-olaniyan

SociaVault MCP Server

get_threads_profile

Retrieve Threads user profile information by providing a username handle to access social media data through the SociaVault MCP Server.

Instructions

Get Threads profile data

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
handleYesThreads username

Implementation Reference

  • Executes the get_threads_profile tool by calling the Sociavault API for Threads profile and extracting data using the helper function.
    if (name === "get_threads_profile") {
      const { handle } = args as { handle: string };
      const response = await axios.get(`${BASE_URL}/threads/profile`, {
        headers: { "X-API-Key": API_KEY },
        params: { handle },
      });
      const extracted = extractThreadsProfile(response.data);
      return {
        content: [{ type: "text", text: JSON.stringify(extracted, null, 2) }],
      };
    }
  • src/index.ts:245-255 (registration)
    Registers the get_threads_profile tool with name, description, and input schema in the tools array.
    {
      name: "get_threads_profile",
      description: "Get Threads profile data",
      inputSchema: {
        type: "object",
        properties: {
          handle: { type: "string", description: "Threads username" },
        },
        required: ["handle"],
      },
    },
  • Input schema definition for the get_threads_profile tool, requiring a 'handle' string.
    inputSchema: {
      type: "object",
      properties: {
        handle: { type: "string", description: "Threads username" },
      },
      required: ["handle"],
    },
  • Helper function that extracts and formats Threads profile data from the API response.
    function extractThreadsProfile(data: any) {
      const user = data?.data?.user || data?.user || {};
      return {
        username: user.username,
        name: user.full_name || user.name,
        biography: user.biography,
        followers: user.follower_count || 0,
        following: user.following_count || 0,
        threads: user.thread_count || 0,
        verified: user.is_verified,
        profile_pic_url: user.profile_pic_url,
      };
    }
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It only states the action ('Get') without any details on permissions, rate limits, response format, or error handling. For a read operation with zero annotation coverage, this lacks critical behavioral context, though it doesn't contradict annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise—a single phrase with no wasted words. It's front-loaded with the core action and resource, making it easy to parse quickly. This minimalism is efficient for a simple tool, though it may sacrifice detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the lack of annotations and output schema, the description is incomplete. It doesn't explain what data is returned (e.g., profile fields, structure) or any behavioral traits. For a tool with one parameter but no structured output information, more context is needed to guide the agent effectively.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage, with the 'handle' parameter documented as 'Threads username'. The description adds no additional meaning beyond this, such as format examples or validation rules. With high schema coverage, the baseline score of 3 is appropriate, as the schema already provides adequate parameter semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Get Threads profile data' clearly states the action (get) and resource (Threads profile data), but it's vague about what specific data is retrieved. It distinguishes from siblings like get_threads_posts (which gets posts) but doesn't specify if it returns basic info, stats, or full profile details, leaving the purpose somewhat ambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., needing a valid handle), exclusions, or comparisons to siblings like get_facebook_profile or get_twitter_profile, leaving the agent to infer usage context from the tool name alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/olamide-olaniyan/sociavault-mcp'

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