Skip to main content
Glama

get_trending_feed

Retrieve trending WebSim projects to discover popular community content, browse projects, and explore what's currently engaging users.

Instructions

Get trending WebSim projects feed

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of projects to return (default: 20)
offsetNoNumber of projects to skip (default: 0)

Input Schema (JSON Schema)

{ "properties": { "limit": { "default": 20, "description": "Number of projects to return (default: 20)", "type": "number" }, "offset": { "default": 0, "description": "Number of projects to skip (default: 0)", "type": "number" } }, "type": "object" }

Implementation Reference

  • MCP tool handler function for 'get_trending_feed' that invokes the API client method and formats the response as MCP content.
    handler: async (args) => { const { limit = 20, offset = 0 } = args; const result = await apiClient.getTrendingFeed(limit, offset); return { content: [{ type: "text", text: JSON.stringify({ success: true, data: result, message: `Successfully retrieved ${result.items?.length || 0} trending projects` }, null, 2) }] }; }
  • Input schema definition for the 'get_trending_feed' tool, defining optional limit and offset parameters.
    inputSchema: { type: "object", properties: { limit: { type: "number", description: "Number of projects to return (default: 20)", default: 20 }, offset: { type: "number", description: "Number of projects to skip (default: 0)", default: 0 } } },
  • server.js:644-676 (registration)
    Tool registration object in the tools array, defining name, description, inputSchema, and handler for 'get_trending_feed'.
    { name: "get_trending_feed", description: "Get trending WebSim projects feed", inputSchema: { type: "object", properties: { limit: { type: "number", description: "Number of projects to return (default: 20)", default: 20 }, offset: { type: "number", description: "Number of projects to skip (default: 0)", default: 0 } } }, handler: async (args) => { const { limit = 20, offset = 0 } = args; const result = await apiClient.getTrendingFeed(limit, offset); return { content: [{ type: "text", text: JSON.stringify({ success: true, data: result, message: `Successfully retrieved ${result.items?.length || 0} trending projects` }, null, 2) }] }; } },
  • Core API client helper method that makes the HTTP request to fetch the trending feed from WebSim API.
    async getTrendingFeed(limit = 20, offset = 0) { const params = new URLSearchParams({ limit: limit.toString(), offset: offset.toString() }); return this.makeRequest(`/api/v1/feed/trending?${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/gigachadtrey/websimm'

If you have feedback or need assistance with the MCP directory API, please join our Discord server