Skip to main content
Glama

task_queue

Monitor and manage queued tasks for remote server operations, including file transfers, service checks, and system monitoring, with alerts for long-running processes.

Instructions

Affiche le statut de toutes les tâches, avec des rappels pour les tâches longues.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • server.js:462-474 (registration)
    Registration of the 'task_queue' tool, including its title, description, empty input schema, and inline handler function that fetches and formats the queue state for display.
    server.registerTool( "task_queue", { title: "Voir la file d'attente des tâches", description: "Affiche le statut de toutes les tâches, avec des rappels pour les tâches longues.", inputSchema: z.object({}) }, async () => { const queueState = queue.getQueue(); const displayQueue = Object.values(queueState).map(formatJobForDisplay); return { content: [{ type: "text", text: JSON.stringify(displayQueue, null, 2) }] }; } );
  • The handler function executes the tool logic: retrieves the current queue state using queue.getQueue(), formats each job with formatJobForDisplay, and returns the JSON stringified list.
    async () => { const queueState = queue.getQueue(); const displayQueue = Object.values(queueState).map(formatJobForDisplay); return { content: [{ type: "text", text: JSON.stringify(displayQueue, null, 2) }] }; }
  • Tool metadata including title, description, and input schema (empty object, no parameters required).
    { title: "Voir la file d'attente des tâches", description: "Affiche le statut de toutes les tâches, avec des rappels pour les tâches longues.", inputSchema: z.object({}) },
  • Helper function used by the task_queue handler to format jobs for display, adding a reminder warning if the job is overdue.
    function formatJobForDisplay(job) { const displayJob = { ...job }; if (job.status === 'running' && job.reminderAt && new Date() > new Date(job.reminderAt)) { displayJob.reminder = "ATTENTION: Le temps de rappel est écoulé. La tâche est peut-être terminée ou bloquée."; } return displayJob; }
  • Core helper function from queue module that returns the entire jobQueue object, used directly by the task_queue handler.
    function getQueue() { return jobQueue; }

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/fkom13/mcp-sftp-orchestrator'

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