list_jobs
Retrieve all available job postings stored in the user profile management system to view current opportunities.
Instructions
List all job postings currently stored in the system
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- tools/jobTools.js:55-64 (handler)The handler function that lists all job postings from the storage and returns them in a formatted success response.async () => { try { const { storage } = await import('../storage.js'); return utils.createSuccessResponse( `All job postings (${storage.jobs.length} total):\n${JSON.stringify(storage.jobs, null, 2)}` ); } catch (error) { return utils.createErrorResponse(`Error listing jobs: ${error.message}`); } }
- tools/jobTools.js:50-66 (registration)The listJobsTool function exported from jobTools.js, which registers the 'list_jobs' tool with the MCP server including name, description, empty schema, and handler.export function listJobsTool(server) { return server.tool( "list_jobs", "List all job postings currently stored in the system", {}, async () => { try { const { storage } = await import('../storage.js'); return utils.createSuccessResponse( `All job postings (${storage.jobs.length} total):\n${JSON.stringify(storage.jobs, null, 2)}` ); } catch (error) { return utils.createErrorResponse(`Error listing jobs: ${error.message}`); } } ); }
- index.js:21-21 (registration)Invocation of listJobsTool(server) in the main index.js file to register the tool with the server instance.listJobsTool(server);
- tools/jobTools.js:54-54 (schema)Empty schema object indicating no input parameters are required for the list_jobs tool.{},
- index.js:6-6 (registration)Import of listJobsTool from jobTools.js in index.js.import { createJobTool, listJobsTool } from './tools/jobTools.js';