Skip to main content
Glama
bulatko

vk-mcp-server

vk_users_get

Retrieve user profile information from VKontakte using IDs or screen names, specifying which fields to return.

Instructions

Get information about VK users by their IDs or screen names

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_idsNoComma-separated user IDs or screen names
fieldsNoProfile fields to return

Implementation Reference

  • The tool handler for vk_users_get - extracts arguments (user_ids, fields) and calls the VK client's usersGet method with default fields if not provided
    case 'vk_users_get':
      result = await vk.usersGet({
        user_ids: args.user_ids,
        fields: args.fields || 'photo_200,online,status',
      });
      break;
  • Tool registration and input schema definition for vk_users_get - defines the tool name, description, and expected parameters (user_ids and fields)
    const tools = [
      {
        name: 'vk_users_get',
        description: 'Get information about VK users by their IDs or screen names',
        inputSchema: {
          type: 'object',
          properties: {
            user_ids: { type: 'string', description: 'Comma-separated user IDs or screen names' },
            fields: { type: 'string', description: 'Profile fields to return' },
          },
        },
      },
  • VKClient usersGet method - a wrapper that calls the VK API's users.get method with provided parameters
    // Users
    usersGet(params) { return this.call('users.get', params); }
  • VKClient.call method - the core API call handler that constructs the request with access token, API version, and makes the POST request to VK's API endpoint
    async call(method, params = {}) {
      const body = new URLSearchParams({
        ...params,
        access_token: this.accessToken,
        v: this.apiVersion,
      });
    
      const response = await fetch(`${VK_API_BASE}/${method}`, {
        method: 'POST',
        headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
        body: body.toString(),
      });
    
      const data = await response.json();
    
      if (data.error) {
        throw new Error(`VK API Error ${data.error.error_code}: ${data.error.error_msg}`);
      }
    
      return data.response;
    }
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 mentions retrieving information but lacks details on permissions, rate limits, error handling, or response format. This is a significant gap for a tool that likely interacts with an external API like VK.

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, clear sentence with zero waste. It efficiently conveys the core purpose without unnecessary words, making it easy to understand at a glance.

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 address key aspects like what information is returned, authentication requirements, or error conditions. For a tool with two parameters and no structured output, more context is needed to guide effective use.

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 schema description coverage is 100%, so the schema already documents both parameters ('user_ids' and 'fields') adequately. The description implies the tool uses IDs or screen names but doesn't add meaningful context beyond what the schema provides, such as examples or constraints on the 'fields' parameter.

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 action ('Get information') and target resource ('VK users'), with specificity about identifiers ('by their IDs or screen names'). However, it doesn't explicitly differentiate from sibling tools like 'vk_friends_get' or 'vk_groups_get', which also retrieve user-related data but with different scopes.

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?

No guidance is provided on when to use this tool versus alternatives. For example, it doesn't mention whether this is for basic user profiles versus more detailed data available in other tools, or any prerequisites like authentication needs. The description only states what it does, not when it's appropriate.

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/bulatko/vk-mcp-server'

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