Skip to main content
Glama
bulatko

vk-mcp-server

vk_stats_get

Retrieve community statistics from VKontakte for administrators to analyze engagement and growth trends over specified time periods.

Instructions

Get community statistics (admin only)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
group_idYesCommunity ID
intervalNo
intervals_countNoNumber of intervals

Implementation Reference

  • Tool handler logic for vk_stats_get - executes when the tool is called, passes arguments to the VK API statsGet method with default values for interval ('day') and intervals_count (7)
    case 'vk_stats_get':
      result = await vk.statsGet({
        group_id: args.group_id,
        interval: args.interval || 'day',
        intervals_count: args.intervals_count || 7,
      });
      break;
  • Tool registration and input schema definition for vk_stats_get - defines the tool name, description, and required/optional parameters (group_id, interval, intervals_count)
    {
      name: 'vk_stats_get',
      description: 'Get community statistics (admin only)',
      inputSchema: {
        type: 'object',
        properties: {
          group_id: { type: 'number', description: 'Community ID' },
          interval: { type: 'string', enum: ['day', 'week', 'month', 'year', 'all'] },
          intervals_count: { type: 'number', description: 'Number of intervals' },
        },
        required: ['group_id'],
      },
    },
  • VK API helper method that wraps the stats.get API call, used by the vk_stats_get tool handler
    statsGet(params) { return this.call('stats.get', params); }
  • Core VK API call method that handles authentication, HTTP requests, and error responses for all VK API methods including stats.get
    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?

No annotations are provided, so the description carries the full burden. It mentions 'admin only', hinting at permission requirements, but doesn't disclose other behavioral traits such as rate limits, response format, pagination, or whether it's read-only. For a tool with no annotation coverage, this is a significant gap in transparency.

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, efficient sentence with no wasted words. It's front-loaded with the core purpose and includes a key constraint ('admin only'), making it appropriately sized and easy to parse.

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 tool has 3 parameters, no annotations, and no output schema, the description is incomplete. It lacks details on return values, error handling, and full parameter guidance. For a stats retrieval tool with admin restrictions, more context is needed to be fully helpful to an AI agent.

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 67% (2 out of 3 parameters have descriptions). The description doesn't add any parameter-specific information beyond what the schema provides, such as explaining the 'interval' enum values or 'intervals_count' usage. With moderate schema coverage, the baseline score of 3 is appropriate as the description doesn't compensate for gaps.

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 'community statistics', making the purpose understandable. It distinguishes from siblings by focusing on statistics rather than retrieving entities like groups or users. However, it doesn't specify what type of statistics (e.g., members, posts, engagement), keeping it from a perfect score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description includes 'admin only', which provides some context about when to use it (when you have admin privileges). However, it doesn't explicitly state when to choose this tool over alternatives like vk_groups_get for general group info or other siblings, leaving usage implied rather than clearly defined.

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