Skip to main content
Glama
bulatko

vk-mcp-server

vk_newsfeed_get

Retrieve personalized newsfeed content from VKontakte, enabling users to filter posts, photos, and videos with pagination controls.

Instructions

Get user newsfeed

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filtersNoFilter by type: post, photo, video
countNoNumber of items
start_fromNoPagination cursor

Implementation Reference

  • Handler function for vk_newsfeed_get tool that calls vk.newsfeedGet() with filters, count, and start_from parameters
    case 'vk_newsfeed_get':
      result = await vk.newsfeedGet({
        filters: args.filters || 'post',
        count: args.count || 20,
        start_from: args.start_from,
      });
      break;
  • Tool schema definition for vk_newsfeed_get with input parameters including filters, count, and start_from
      name: 'vk_newsfeed_get',
      description: 'Get user newsfeed',
      inputSchema: {
        type: 'object',
        properties: {
          filters: { type: 'string', description: 'Filter by type: post, photo, video' },
          count: { type: 'number', description: 'Number of items' },
          start_from: { type: 'string', description: 'Pagination cursor' },
        },
      },
    },
  • Helper method in VKClient class that wraps the VK API newsfeed.get method call
    newsfeedGet(params) { return this.call('newsfeed.get', params); }
  • Core API call method that makes HTTP POST requests to VK API endpoint
    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 full burden for behavioral disclosure. 'Get user newsfeed' implies a read-only operation but doesn't specify authentication requirements, rate limits, pagination behavior beyond the 'start_from' parameter, or what the return format looks like. For a tool with no annotation coverage, this leaves significant gaps in understanding its behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise ('Get user newsfeed')—just three words. While this is efficient and front-loaded, it borders on under-specification given the tool's complexity. Every word earns its place, but more context would be helpful for a tool with multiple parameters and sibling alternatives.

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 doesn't explain what a 'newsfeed' includes, how it differs from sibling tools, or what the return values look like. For a tool in a rich ecosystem with multiple content-retrieval alternatives, this minimal description leaves too many questions unanswered.

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?

The input schema has 100% description coverage, with clear documentation for all three parameters (filters, count, start_from). The description adds no additional parameter semantics beyond what's already in the schema. According to scoring rules, when schema_description_coverage is high (>80%), the baseline is 3 even with no param info in the description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Get user newsfeed' clearly states the verb ('Get') and resource ('user newsfeed'), making the basic purpose understandable. However, it lacks specificity about what constitutes a 'newsfeed' in this context and doesn't distinguish this tool from sibling tools like 'vk_wall_get' or 'vk_photos_get' that might also retrieve user content.

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. With siblings like 'vk_wall_get' (for wall posts) and 'vk_photos_get' (for photos), there's no indication of whether this tool aggregates multiple content types or serves a different purpose. No prerequisites, exclusions, or contextual usage hints are mentioned.

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