Skip to main content
Glama
olamide-olaniyan

SociaVault MCP Server

get_twitter_profile

Retrieve Twitter/X profile information by username to access user data and engagement metrics through SociaVault MCP Server.

Instructions

Get Twitter/X profile data

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
handleYesTwitter username

Implementation Reference

  • Executes the get_twitter_profile tool: calls Sociavault API /twitter/profile endpoint with the handle, extracts profile using helper, and returns JSON stringified content.
    if (name === "get_twitter_profile") {
      const { handle } = args as { handle: string };
      const response = await axios.get(`${BASE_URL}/twitter/profile`, {
        headers: { "X-API-Key": API_KEY },
        params: { handle },
      });
      const extracted = extractTwitterProfile(response.data);
      return {
        content: [{ type: "text", text: JSON.stringify(extracted, null, 2) }],
      };
    }
  • src/index.ts:234-244 (registration)
    Registers the get_twitter_profile tool in the tools list with name, description, and input schema.
    {
      name: "get_twitter_profile",
      description: "Get Twitter/X profile data",
      inputSchema: {
        type: "object",
        properties: {
          handle: { type: "string", description: "Twitter username" },
        },
        required: ["handle"],
      },
    },
  • Helper function extracts and formats essential Twitter profile fields from the API response data.
    function extractTwitterProfile(data: any) {
      const user = data?.data?.user || data?.user || {};
      return {
        username: user.screen_name || user.username,
        name: user.name,
        description: user.description,
        followers: user.followers_count || 0,
        following: user.friends_count || 0,
        tweets: user.statuses_count || 0,
        verified: user.verified,
        profile_image: user.profile_image_url_https,
      };
    }
Behavior2/5

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

No annotations are provided, so the description carries full burden for behavioral disclosure. It states what the tool does but doesn't describe how it behaves: no information about authentication requirements, rate limits, error handling, response format, or whether it's a read-only operation. For a tool with zero annotation coverage, this is inadequate.

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 at just three words, front-loading the essential information with zero wasted words. It efficiently communicates the core purpose without unnecessary elaboration.

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 no annotations and no output schema, the description is insufficiently complete. It doesn't explain what data is returned, authentication needs, rate limits, or error conditions. For a tool that presumably makes external API calls, this leaves critical operational context undocumented.

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?

Schema description coverage is 100%, with the single parameter 'handle' clearly documented as 'Twitter username' in the schema. The description adds no additional parameter information beyond what the schema provides, which is acceptable given the high schema coverage but doesn't enhance understanding.

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

Purpose4/5

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

The description clearly states the verb ('Get') and resource ('Twitter/X profile data'), making the purpose immediately understandable. However, it doesn't differentiate from sibling tools like 'get_twitter_tweets' or other social media profile tools, which would require more specificity for a perfect score.

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. With sibling tools like 'get_twitter_tweets' and other social media profile tools available, there's no indication of when this is the appropriate choice or what distinguishes it from similar tools.

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