Skip to main content
Glama
bulatko

vk-mcp-server

vk_wall_create_comment

Add comments to VKontakte wall posts using the VK API. Specify owner ID, post ID, and comment text to engage with social content.

Instructions

Add a comment to a wall post

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
owner_idYesWall owner ID
post_idYesPost ID
messageYesComment text

Implementation Reference

  • Tool handler for vk_wall_create_comment - processes the request by calling vk.wallCreateComment with owner_id, post_id, and message parameters
    case 'vk_wall_create_comment':
      result = await vk.wallCreateComment({
        owner_id: args.owner_id,
        post_id: args.post_id,
        message: args.message,
      });
      break;
  • Tool schema definition for vk_wall_create_comment - defines input parameters (owner_id, post_id, message) with required fields and descriptions
      name: 'vk_wall_create_comment',
      description: 'Add a comment to a wall post',
      inputSchema: {
        type: 'object',
        properties: {
          owner_id: { type: 'number', description: 'Wall owner ID' },
          post_id: { type: 'number', description: 'Post ID' },
          message: { type: 'string', description: 'Comment text' },
        },
        required: ['owner_id', 'post_id', 'message'],
      },
    },
  • VKClient method wallCreateComment that makes the actual VK API call to wall.createComment endpoint
    wallCreateComment(params) { return this.call('wall.createComment', params); }
  • src/index.js:330-330 (registration)
    Tool registration - all tools including vk_wall_create_comment are registered with the MCP server via the tools array
    server.setRequestHandler(ListToolsRequestSchema, async () => ({ 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