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
| Name | Required | Description | Default |
|---|---|---|---|
| group_ids | No | Comma-separated group IDs | |
| fields | No | Community fields |
Implementation Reference
- src/index.js:271-276 (handler)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; - src/index.js:158-168 (schema)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 })); - src/index.js:61-61 (helper)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); }