Skip to main content
Glama

task_status

Retrieve details and status of a specific task within the MCP SFTP Orchestrator server to monitor execution progress and manage queued operations.

Instructions

Récupère les détails d'une seule tâche, avec un rappel si nécessaire.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesL'ID de la tâche à consulter.

Implementation Reference

  • The handler function for 'task_status' tool. It retrieves a job by ID from the queue, handles missing job error, formats the job for display, and returns it as JSON text content.
    async (params) => { const job = queue.getJob(params.id); if (!job) return { content: [{ type: "text", text: `ERREUR: Tâche '${params.id}' introuvable.` }], isError: true }; const displayJob = formatJobForDisplay(job); return { content: [{ type: "text", text: JSON.stringify(displayJob, null, 2) }] }; }
  • The input schema for 'task_status' tool, defining a required 'id' string parameter.
    { title: "Consulter une tâche par son ID", description: "Récupère les détails d'une seule tâche, avec un rappel si nécessaire.", inputSchema: z.object({ id: z.string().describe("L'ID de la tâche à consulter.") }) },
  • server.js:476-492 (registration)
    The registration of the 'task_status' tool using server.registerTool, including schema and inline handler.
    server.registerTool( "task_status", { title: "Consulter une tâche par son ID", description: "Récupère les détails d'une seule tâche, avec un rappel si nécessaire.", inputSchema: z.object({ id: z.string().describe("L'ID de la tâche à consulter.") }) }, async (params) => { const job = queue.getJob(params.id); if (!job) return { content: [{ type: "text", text: `ERREUR: Tâche '${params.id}' introuvable.` }], isError: true }; const displayJob = formatJobForDisplay(job); return { content: [{ type: "text", text: JSON.stringify(displayJob, null, 2) }] }; } );

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