Skip to main content
Glama

task_history

View recent task executions in the SFTP Orchestrator server, with optional filtering by specific server alias to monitor activity.

Instructions

Affiche les dernières tâches lancées. Peut être filtré par alias.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aliasNoFiltre l'historique pour ne montrer que les tâches d'un alias spécifique.

Implementation Reference

  • server.js:494-507 (registration)
    Registers the 'task_history' MCP tool, including its title, description, input schema, and a thin handler function that delegates to the history module's getHistory method.
    server.registerTool( "task_history", { title: "Consulter l'historique des tâches", description: "Affiche les dernières tâches lancées. Peut être filtré par alias.", inputSchema: z.object({ alias: z.string().optional().describe("Filtre l'historique pour ne montrer que les tâches d'un alias spécifique.") }) }, async (params) => { const historyLogs = await history.getHistory(params); return { content: [{ type: "text", text: JSON.stringify(historyLogs, null, 2) }] }; } );
  • Zod input schema defining optional 'alias' parameter for filtering task history.
    inputSchema: z.object({ alias: z.string().optional().describe("Filtre l'historique pour ne montrer que les tâches d'un alias spécifique.") })
  • The registered handler function for 'task_history' tool, which calls history.getHistory and formats the response as JSON text content.
    async (params) => { const historyLogs = await history.getHistory(params); return { content: [{ type: "text", text: JSON.stringify(historyLogs, null, 2) }] }; }
  • Core helper function that reads the task history from JSON file, optionally filters by server alias, and returns the list of historical tasks.
    async function getHistory(filters = {}) { let history = await readHistory(); if (filters.alias) { history = history.filter(log => log.alias === filters.alias); } return history; }

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