Skip to main content
Glama

jules_list_tasks

View and filter Google Jules AI coding tasks by status to monitor development progress and manage workflow automation.

Instructions

List all Jules tasks with their status

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of tasks to return (default 10)
statusNoFilter tasks by status

Implementation Reference

  • The core handler function for the 'jules_list_tasks' tool. Loads tasks from local JSON persistence, filters by optional status parameter, limits results, formats a human-readable summary, and returns it as tool content.
    private async listTasks(args: any) {
      const { status = 'all', limit = 10 } = args;
      const data = await this.loadTaskData();
      
      let filteredTasks = data.tasks;
      if (status !== 'all') {
        filteredTasks = data.tasks.filter(task => task.status === status);
      }
      
      const tasks = filteredTasks.slice(0, limit);
      
      const taskList = tasks.map(task => 
        `${task.id} - ${task.title}\n` +
        `  Repository: ${task.repository}\n` +
        `  Status: ${task.status}\n` +
        `  Created: ${new Date(task.createdAt).toLocaleDateString()}\n` +
        `  URL: ${task.url}\n`
      ).join('\n');
    
      return {
        content: [
          {
            type: 'text',
            text: `Jules Tasks (${tasks.length} of ${filteredTasks.length} total):\n\n${taskList || 'No tasks found.'}`
          }
        ]
      };
    }
  • Input schema for the jules_list_tasks tool, defining optional 'status' filter (enum) and 'limit' parameter.
    inputSchema: {
      type: 'object',
      properties: {
        status: {
          type: 'string',
          enum: ['all', 'active', 'pending', 'completed', 'paused'],
          description: 'Filter tasks by status',
        },
        limit: {
          type: 'number',
          description: 'Maximum number of tasks to return (default 10)',
        },
      },
    },
  • src/index.ts:375-376 (registration)
    Registration of the jules_list_tasks handler in the CallToolRequestSchema switch statement.
    case 'jules_list_tasks':
      return await this.listTasks(args);
  • src/index.ts:159-175 (registration)
    Tool descriptor registration in the ListToolsRequestSchema response, including name, description, and schema.
      name: 'jules_list_tasks',
      description: 'List all Jules tasks with their status',
      inputSchema: {
        type: 'object',
        properties: {
          status: {
            type: 'string',
            enum: ['all', 'active', 'pending', 'completed', 'paused'],
            description: 'Filter tasks by status',
          },
          limit: {
            type: 'number',
            description: 'Maximum number of tasks to return (default 10)',
          },
        },
      },
    },
  • Helper method to load persistent task data from JSON file, used by listTasks and other task operations.
    private async loadTaskData(): Promise<{ tasks: JulesTask[] }> {
      try {
        const data = await fs.readFile(this.dataPath, 'utf-8');
        return JSON.parse(data);
      } catch (error) {
        if ((error as any).code === 'ENOENT') {
          return { tasks: [] };
        }
        throw error;
      }

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, and the description fails to disclose that the operation is read-only, lacks pagination details, or explains default behavior for limit. Minimal behavioral disclosure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Highly concise at 8 words, but could benefit from slight expansion without losing brevity. No fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a list tool with an enum status parameter and no output schema, the description is adequate but lacks explanation of return format or pagination behavior.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the description adds little beyond 'with their status'. The schema already documents the status filter and limit. Baseline score applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool lists all tasks and filters by status, distinguishing it from siblings like get_task (single) and create_task.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit guidance on when to use this tool versus alternatives such as jules_get_task for a single task. The description only implies its use for listing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.