Skip to main content
Glama
houtini-ai

YubHub MCP Server

by houtini-ai

enable_feed_auto_run

Schedule automatic weekly runs for job feeds to maintain updated content without manual intervention, using configurable intervals.

Instructions

Enable automatic weekly runs for a feed. The scheduler worker runs hourly and will automatically trigger this feed at the configured interval (default: 7 days for weekly runs). Great for keeping job feeds updated without manual intervention.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
feedIdYesFeed ID to enable auto-run for
intervalDaysNoRun interval in days (default: 7 for weekly, max: 168 for ~monthly)

Implementation Reference

  • Handler function that enables automatic runs for a feed by calling apiClient.updateFeedSchedule with the feedId, enabled flag (true), and intervalDays. Returns a success message with the feed ID, interval, and next run time.
      private async enableFeedAutoRun({ feedId, intervalDays = 7 }: { feedId: string; intervalDays?: number }) {
        const result = await this.apiClient.updateFeedSchedule(feedId, true, intervalDays);
    
        const nextRun = result.nextRunAt
          ? new Date(result.nextRunAt).toLocaleString()
          : 'Not scheduled';
    
        return {
          content: [
            {
              type: 'text',
              text: `✅ Auto-run enabled successfully!
    
    **Feed ID**: \`${feedId}\`
    **Interval**: Every ${intervalDays} day${intervalDays !== 1 ? 's' : ''}
    **Next Run**: ${nextRun}
    
    This feed will now trigger automatically every ${intervalDays} days. The scheduler runs hourly and will pick up this feed when it's due.`,
            },
          ],
        };
      }
  • src/index.ts:501-522 (registration)
    Tool registration defining the tool name 'enable_feed_auto_run', its description, and input schema with feedId (required string) and intervalDays (optional integer, default 7, range 1-168).
    {
      name: 'enable_feed_auto_run',
      description: 'Enable automatic weekly runs for a feed. The scheduler worker runs hourly and will automatically trigger this feed at the configured interval (default: 7 days for weekly runs). Great for keeping job feeds updated without manual intervention.',
      inputSchema: {
        type: 'object',
        properties: {
          feedId: {
            type: 'string',
            description: 'Feed ID to enable auto-run for'
          },
          intervalDays: {
            type: 'integer',
            description: 'Run interval in days (default: 7 for weekly, max: 168 for ~monthly)',
            minimum: 1,
            maximum: 168,
            default: 7
          }
        },
        required: ['feedId'],
        additionalProperties: false
      }
    },
  • Switch case dispatcher that routes 'enable_feed_auto_run' tool calls to the enableFeedAutoRun handler method.
    case 'enable_feed_auto_run':
      return await this.enableFeedAutoRun(args as any);

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