Skip to main content
Glama
houtini-ai

YubHub MCP Server

by houtini-ai

get_feed

Retrieve detailed statistics and information for a specific job feed by providing its unique feed ID.

Instructions

Get detailed information about a specific feed including statistics

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
feedIdYesFeed ID to retrieve

Implementation Reference

  • Main handler function for 'get_feed' tool. Retrieves feed details from API client, formats statistics (enriched/failed counts), and returns formatted markdown response with feed status, statistics, and timestamps.
      private async getFeed({ feedId }: { feedId: string }) {
        const feedDetails = await this.apiClient.getFeedDetails(feedId);
        const enriched = feedDetails.stats.enriched ?? 0;
        const failed = feedDetails.stats.failed ?? 0;
    
        const markdown = `# ${feedDetails.feed.name}
    
    **Status**: ${feedDetails.feed.is_active ? '✅ Active' : '⚪ Inactive'}
    **Feed ID**: \`${feedDetails.feed.id}\`
    **Careers URL**: ${feedDetails.feed.careers_url}
    ${feedDetails.feed.example_job_url ? `**Example Job URL**: ${feedDetails.feed.example_job_url}` : ''}
    
    ## Statistics
    - **Total Jobs**: ${feedDetails.stats.total}
    - **Enriched**: ${enriched} ✅
    - **Failed**: ${failed} ❌
    
    **Last Run**: ${feedDetails.feed.last_run_at ? new Date(feedDetails.feed.last_run_at).toLocaleString() : 'Never'}
    **Created**: ${new Date(feedDetails.feed.created_at).toLocaleString()}
    **Updated**: ${new Date(feedDetails.feed.updated_at).toLocaleString()}
    `;
    
        return {
          content: [
            {
              type: 'text',
              text: markdown,
            },
          ],
        };
      }
  • Tool registration with name 'get_feed', description, and JSON schema defining feedId as a required string parameter for input validation.
    name: 'get_feed',
    description: 'Get detailed information about a specific feed including statistics',
    inputSchema: {
      type: 'object',
      properties: {
        feedId: {
          type: 'string',
          description: 'Feed ID to retrieve'
        }
      },
      required: ['feedId'],
      additionalProperties: false
    }
  • src/index.ts:665-666 (registration)
    Switch case routing 'get_feed' tool calls to the getFeed handler method.
    case 'get_feed':
      return await this.getFeed(args as any);
  • API client helper method that makes HTTP GET request to /api/feeds/{feedId} endpoint to retrieve feed details.
    async getFeedDetails(feedId: string): Promise<FeedDetails> {
      return this.request(`/api/feeds/${feedId}`);
    }

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/houtini-ai/yub-hub-mcp-server'

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