Skip to main content
Glama

get_user_followers

Retrieve follower lists for WebSim users to analyze community connections and engagement patterns.

Instructions

Get followers of a specific WebSim user

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
userYesUsername
limitNoNumber of users to return (default: 20)
offsetNoNumber of users to skip (default: 0)

Implementation Reference

  • The MCP tool handler for 'get_user_followers' that validates arguments using UserParamsSchema, fetches data via apiClient, and returns a standardized JSON response.
    handler: async (args) => {
      const { user, limit = 20, offset = 0 } = UserParamsSchema.parse(args);
      const result = await apiClient.getUserFollowers(user, limit, offset);
      return {
        content: [{
          type: "text",
          text: JSON.stringify({
            success: true,
            data: result,
            message: `Successfully retrieved ${result.items?.length || 0} followers of ${user}`
          }, null, 2)
        }]
      };
  • Input schema definition for the 'get_user_followers' tool, specifying parameters user (required), limit, and offset with descriptions and defaults.
    inputSchema: {
      type: "object",
      properties: {
        user: {
          type: "string",
          description: "Username"
        },
        limit: {
          type: "number",
          description: "Number of users to return (default: 20)",
          default: 20
        },
        offset: {
          type: "number",
          description: "Number of users to skip (default: 0)",
          default: 0
        }
      },
      required: ["user"]
  • Helper method in WebSimAPIClient class that constructs and sends HTTP request to retrieve followers for a given user from the WebSim API.
    async getUserFollowers(user, limit = 20, offset = 0) {
      const params = new URLSearchParams({ limit: limit.toString(), offset: offset.toString() });
      return this.makeRequest(`/api/v1/users/${user}/followers?${params}`);
    }
  • Zod schema used for input validation in the 'get_user_followers' handler (and other user-related tools), requiring a 'user' string.
    const UserParamsSchema = z.object({
      user: z.string().describe('Username')
    });
  • server.js:606-642 (registration)
    Full tool registration object added to the 'tools' array, which is used by the MCP server for tool listing and execution.
    {
      name: "get_user_followers",
      description: "Get followers of a specific WebSim user",
      inputSchema: {
        type: "object",
        properties: {
          user: {
            type: "string",
            description: "Username"
          },
          limit: {
            type: "number",
            description: "Number of users to return (default: 20)",
            default: 20
          },
          offset: {
            type: "number",
            description: "Number of users to skip (default: 0)",
            default: 0
          }
        },
        required: ["user"]
      },
      handler: async (args) => {
        const { user, limit = 20, offset = 0 } = UserParamsSchema.parse(args);
        const result = await apiClient.getUserFollowers(user, limit, offset);
        return {
          content: [{
            type: "text",
            text: JSON.stringify({
              success: true,
              data: result,
              message: `Successfully retrieved ${result.items?.length || 0} followers of ${user}`
            }, null, 2)
          }]
        };
      }
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states it 'gets' followers, implying a read-only operation, but doesn't specify permissions required, rate limits, pagination behavior beyond the schema's limit/offset, or what the return format looks like (e.g., list of usernames or user objects). This leaves significant gaps for a tool with 3 parameters.

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 a single, efficient sentence that front-loads the core purpose without any wasted words. It's appropriately sized for a straightforward retrieval tool, making it easy for an agent to parse quickly.

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 tool has 3 parameters, no annotations, and no output schema, the description is incomplete. It doesn't explain the return values (e.g., structure of follower data), error conditions, or usage context relative to siblings. For a data retrieval tool in a social context, this leaves the agent under-informed about behavioral aspects.

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%, so the schema fully documents the parameters (user, limit, offset). The description adds no additional meaning beyond implying the 'user' parameter identifies a WebSim user, which is already clear from the schema's description. This meets the baseline for high schema coverage.

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 ('followers of a specific WebSim user'), making the purpose unambiguous. However, it doesn't differentiate from sibling tools like 'get_user_following' or 'get_user', which could retrieve related user data, so it doesn't reach the highest 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. For example, it doesn't mention when to choose 'get_user_followers' over 'get_user_following' (which likely retrieves users being followed) or 'get_user' (which might include follower data), leaving the agent to infer usage from context 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/gigachadtrey/websimm'

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