Skip to main content
Glama
houtini-ai

YubHub MCP Server

by houtini-ai

delete_jobs

Remove all jobs from a specific feed in YubHub MCP Server. This permanent action clears job data for structured career pages.

Instructions

Delete all jobs for a specific feed. This action cannot be undone.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
feedIdYesFeed ID whose jobs should be deleted

Implementation Reference

  • The main handler function that executes the delete_jobs tool logic. It fetches feed details to get the job count before deletion, calls the API client to delete all jobs for the feed, and returns a success message with the number of jobs deleted.
      private async deleteJobs({ feedId }: { feedId: string }) {
        const feedDetails = await this.apiClient.getFeedDetails(feedId);
        const jobsBefore = feedDetails.stats.total;
    
        await this.apiClient.deleteJobs(feedId);
    
        return {
          content: [
            {
              type: 'text',
              text: `✅ Jobs deleted successfully
    
    **Feed**: ${feedDetails.feed.name}
    **Feed ID**: \`${feedId}\`
    **Jobs Deleted**: ${jobsBefore}
    
    All jobs for this feed have been removed. This action cannot be undone.`,
            },
          ],
        };
      }
  • Tool registration with input schema defining the required 'feedId' parameter (string type) and validation constraints (required field, no additional properties allowed).
    {
      name: 'delete_jobs',
      description: 'Delete all jobs for a specific feed. This action cannot be undone.',
      inputSchema: {
        type: 'object',
        properties: {
          feedId: {
            type: 'string',
            description: 'Feed ID whose jobs should be deleted'
          }
        },
        required: ['feedId'],
        additionalProperties: false
      }
    },
  • src/index.ts:683-684 (registration)
    Switch case routing that maps the 'delete_jobs' tool name to its handler function.
    case 'delete_jobs':
      return await this.deleteJobs(args as any);
  • API client helper method that makes the HTTP DELETE request to the /api/feeds/{feedId}/jobs endpoint to delete all jobs for a specific feed.
    async deleteJobs(feedId: string): Promise<{ message: string }> {
      return this.request(`/api/feeds/${feedId}/jobs`, { method: 'DELETE' });
    }

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