Skip to main content
Glama
bulatko

vk-mcp-server

vk_groups_get_by_id

Retrieve community information from VKontakte using group IDs or short names to access profile details and data fields.

Instructions

Get community info by ID or short name

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
group_idsNoComma-separated group IDs
fieldsNoCommunity fields

Implementation Reference

  • The handler function for vk_groups_get_by_id - processes the tool call arguments, calls the VKClient.groupsGetById method with group_ids and fields parameters, and returns the result as JSON
    case 'vk_groups_get_by_id':
      result = await vk.groupsGetById({
        group_ids: args.group_ids,
        fields: args.fields || 'description,members_count',
      });
      break;
  • Tool schema definition for vk_groups_get_by_id - defines the input schema with group_ids (comma-separated IDs) and optional fields parameters for community information
    {
      name: 'vk_groups_get_by_id',
      description: 'Get community info by ID or short name',
      inputSchema: {
        type: 'object',
        properties: {
          group_ids: { type: 'string', description: 'Comma-separated group IDs' },
          fields: { type: 'string', description: 'Community fields' },
        },
      },
    },
  • src/index.js:330-330 (registration)
    Tool registration - the ListToolsRequestSchema handler returns all tools including vk_groups_get_by_id to the MCP server
    server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools }));
  • VKClient helper method - groupsGetById wraps the VK API 'groups.getById' method call with authentication and version parameters
    groupsGetById(params) { return this.call('groups.getById', params); }

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