Skip to main content
Glama
bulatko

vk-mcp-server

vk_groups_get

Retrieve a user's community memberships from VKontakte by specifying user ID, filter type, fields, and count.

Instructions

Get list of communities the user is a member of

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_idNoUser ID
filterNoFilter by type
fieldsNoCommunity fields
countNoNumber of communities

Implementation Reference

  • Handler function for vk_groups_get tool - processes arguments and calls vk.groupsGet with user_id, filter, fields (default: description,members_count), and count (default: 100) parameters
    case 'vk_groups_get':
      result = await vk.groupsGet({
        user_id: args.user_id,
        filter: args.filter,
        fields: args.fields || 'description,members_count',
        count: args.count || 100,
      });
      break;
  • Tool schema definition for vk_groups_get - defines the tool name, description, and inputSchema with properties for user_id, filter, fields, and count
    {
      name: 'vk_groups_get',
      description: 'Get list of communities the user is a member of',
      inputSchema: {
        type: 'object',
        properties: {
          user_id: { type: 'number', description: 'User ID' },
          filter: { type: 'string', description: 'Filter by type' },
          fields: { type: 'string', description: 'Community fields' },
          count: { type: 'number', description: 'Number of communities' },
        },
      },
    },
  • VKClient.groupsGet method - helper function that wraps the VK API 'groups.get' call with extended=1 parameter for detailed results
    groupsGet(params) { return this.call('groups.get', { ...params, extended: 1 }); }
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's a read operation ('Get'), but doesn't cover critical aspects like pagination (implied by 'count' parameter but not explained), rate limits, authentication requirements, error handling, or the format of the returned list. The description is minimal and lacks necessary context for safe and effective use.

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 that efficiently conveys the core purpose without any wasted words. It's front-loaded and appropriately sized for a straightforward tool, making it easy 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 lack of annotations and output schema, the description is incomplete for a tool with four parameters. It doesn't explain the return format, pagination behavior, or authentication needs, leaving significant gaps. For a read operation in a social media API context, more detail is needed to ensure proper usage.

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 already documents all four parameters (user_id, filter, fields, count) with basic descriptions. The description adds no additional meaning beyond what the schema provides, such as explaining what 'filter' types are available or what 'fields' might include. Baseline 3 is appropriate as the schema does the heavy lifting.

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 ('list of communities the user is a member of'), making the purpose immediately understandable. It distinguishes from siblings like vk_groups_get_by_id (which likely fetches specific groups) and vk_friends_get (which targets friends rather than communities). However, it doesn't explicitly mention that it's for VK communities/groups, though this is implied by the tool name.

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 when to choose vk_groups_get_by_id (e.g., for specific group details) or vk_wall_get (e.g., for community posts), nor does it specify prerequisites like user authentication or context for the 'user_id' parameter. Usage is implied only by the action itself.

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