Skip to main content
Glama

Create Jules Coding Session

jules_create_session

Start a new asynchronous coding task by supplying a detailed prompt and GitHub repository; the agent runs it in an isolated cloud VM and returns completed work.

Instructions

Start a new asynchronous coding task with Jules. Provide a detailed task description and the repository to work on. Jules runs in an isolated cloud VM and typically completes tasks in 5-60 minutes depending on complexity.

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": {
      "repoOwner": "<repoOwner>",
      "repoName": "<repoName>",
      "prompt": "<prompt>"
    },
    "name": "jules_create_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoOptional custom title for the session
branchNoStarting branch name (default: main)main
promptYesDetailed task description - be specific about what needs to be done
repoNameYesGitHub repository name
repoOwnerYesGitHub repository owner (username or organization)
autoApproveNoAutomatically approve the execution plan (default: true). Set false to manually approve with jules_approve_plan
autoCreatePRNoAutomatically create pull request when task completes (default: false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does add real context: the task runs asynchronously in an isolated cloud VM and takes 5-60 minutes. It does not disclose what is returned (presumably a session identifier for later polling), what happens on failure, whether starting sessions consumes quota, or any access requirements.

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?

Two sentences, front-loaded with the action and followed by the runtime expectation; no filler. It could be slightly tighter by folding the input guidance into the first sentence, but nothing is wasted.

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 an async, long-running job with no output schema, the description should tell the agent what comes back and how to follow up (e.g., use the returned session ID with jules_get_status or jules_approve_plan). The duration hint is helpful, but the lifecycle gap leaves an agent unsure how to continue after creation.

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 every parameter including autoApprove and autoCreatePR is already documented inline, setting the baseline at 3. The description only restates that the prompt should be detailed and a repository is required, adding little beyond the schema.

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

Purpose4/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 ('Start a new asynchronous coding task with Jules') plus the two inputs that define the operation (task description and repository). It is clearly distinguishable from read-oriented siblings like jules_list_sessions or jules_get_status, though it never names an alternative explicitly.

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

Usage Guidelines3/5

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

Usage is implied: supply a detailed prompt and a repository, and the job runs asynchronously. There is no explicit when-to-use vs when-not guidance, and the manual-approval path (autoApprove=false paired with jules_approve_plan) is documented only in the schema, not in the description.

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