Skip to main content
Glama

list_schedules

View all scheduled maintenance tasks managed locally to monitor automated coding operations like bug fixes, refactoring, and testing.

Instructions

List all locally-managed scheduled tasks

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The core handler function for the 'list_schedules' tool. It retrieves all scheduled tasks from storage, formats them with details like next run time and truncated prompt, and returns a JSON object with count and list of schedules.
    async listSchedules(): Promise<string> { return this.executeWithErrorHandling(async () => { const tasks = await this.storage.listTasks(); const formatted = tasks.map((task) => { const nextRun = this.scheduler.getNextInvocation(task.id); return { id: task.id, name: task.name, cron: task.cron, enabled: task.enabled, repository: task.taskPayload.source, prompt: smartTruncate(task.taskPayload.prompt, 60), nextRun: nextRun?.toISOString() || 'Not scheduled', lastRun: task.lastRun || 'Never', lastSessionId: task.lastSessionId, }; }); return { count: formatted.length, schedules: formatted, }; }); }
  • src/index.ts:287-294 (registration)
    Tool registration in the ListToolsRequest handler, defining the name, description, and empty input schema for 'list_schedules'.
    { name: 'list_schedules', description: 'List all locally-managed scheduled tasks', inputSchema: { type: 'object', properties: {}, }, },
  • src/index.ts:340-343 (registration)
    Dispatch logic in the CallToolRequest handler that routes 'list_schedules' calls to the JulesTools.listSchedules method.
    case 'list_schedules': { result = await this.tools.listSchedules(); break; }

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/savethepolarbears/jules-mcp-server'

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