Skip to main content
Glama

Create Jules Session

jules_create_session

Starts a new automated coding session for a selected source and prompt, letting Jules work on the specified goal and optionally create a PR.

Instructions

Starts a new automated coding session with Jules.

Use this after identifying a target source (e.g. from jules_list_sources). This creates a session where Jules will work on the given prompt.

Args:

  • prompt (string): The user's goal or instructions.

  • source (string): The full name of the source (e.g., "sources/github/owner/repo").

  • startingBranch (string): The starting branch for the repository (default: "main").

  • automationMode ("AUTO_CREATE_PR" | "NONE"): Whether to automatically create a PR (default: "NONE").

  • title (string): The title of the session.

  • requirePlanApproval (boolean): If true, implicitly requires an approve_plan call to proceed.

  • response_format ('markdown' | 'json'): Output format (default: 'markdown').

Returns: The created session details.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "prompt": "<prompt>",
      "source": "<source>",
      "title": "<title>"
    },
    "name": "jules_create_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleYesThe title of the session.
promptYesThe user's goal or prompt for the session.
sourceYesThe name of the source resource (e.g., 'sources/github/owner/repo').
automationModeNoWhether to automatically create a PR ('AUTO_CREATE_PR' or 'NONE').NONE
startingBranchNoThe starting branch for the repository.main
response_formatNoOutput format: 'markdown' or 'json'markdown
requirePlanApprovalNoIf true, requires an explicit call to approve_plan to proceed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.4

TDQS

A4.1/5.0
Behavior4/5

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

Beyond annotations, the description discloses that automationMode can automatically create a PR and that requirePlanApproval implies an approve_plan call to proceed. It does not describe broader side effects, permissions, or failure behavior, but it adds meaningful operational context for a session-creating tool.

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?

The description is front-loaded with the action and usage context, then structured into Args and Returns. It is reasonably concise, though the argument list largely duplicates schema content that is already fully documented.

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

Completeness4/5

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

For a create operation with seven parameters, annotations, and a fully described schema, the description covers the main workflow: source discovery, session creation, PR automation, and plan approval. The return value is only summarized as "created session details," but the core invocation context is sufficient.

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 description coverage is 100%, so the schema already documents all seven parameters, including defaults and enums. The description repeats those meanings, such as the source format and requirePlanApproval behavior, without adding substantial semantics beyond the schema.

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 states a specific verb and resource: "Starts a new automated coding session with Jules." It also distinguishes the action from source listing and plan approval by referencing jules_list_sources as a prerequisite and approve_plan as a follow-up when requirePlanApproval is set.

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

Usage Guidelines4/5

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

It explicitly says to use this after identifying a target source, giving clear sequencing guidance with jules_list_sources. It does not enumerate when to avoid this tool or compare it directly with jules_list_sessions, but the create-vs-list distinction is clear from the purpose.

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