Skip to main content
Glama
SLdragon

MCP User Profile Management Server

by SLdragon

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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}`); } }
  • 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);
  • 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';

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/SLdragon/mcp-elicitation-server'

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