Skip to main content
Glama

create_session

Start a new coding session in Jules by providing a task description and repository source to generate and execute code solutions.

Instructions

Create a new Jules session to work on a coding task.

Args: prompt: The coding task description for Jules to work on source: Resource name of the source repository (e.g., "sources/github/owner/repo") branch: Optional branch name to use (defaults to repository default branch) title: Optional title for the session (auto-generated if not provided) require_plan_approval: If True, Jules will wait for plan approval before executing

Returns: Created session details including ID, state, and URL to view progress

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYes
sourceYes
branchNo
titleNo
require_plan_approvalNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It describes the creation action and mentions that Jules will wait for plan approval if required, which adds useful context. However, it does not cover other behavioral aspects such as authentication needs, rate limits, error conditions, or what happens if the session creation fails, leaving gaps in transparency.

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

Conciseness5/5

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

The description is well-structured and front-loaded with the core purpose, followed by clear sections for 'Args' and 'Returns'. Every sentence earns its place by providing essential information without redundancy, making it efficient and easy to parse for an AI agent.

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?

Given the complexity of a session creation tool with 5 parameters and no annotations, the description does a good job covering purpose, parameters, and return values. Since an output schema exists, the description need not detail return values extensively. However, it could improve by addressing potential errors or prerequisites, making it slightly incomplete for full contextual understanding.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must compensate. It provides meaningful semantics for all parameters: 'prompt' as the coding task description, 'source' as the resource name, 'branch' as optional with default behavior, 'title' as optional with auto-generation, and 'require_plan_approval' explaining its effect. This adds significant value beyond the bare schema, though it could include more details like format examples for 'source'.

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 specific action ('Create a new Jules session') and the resource ('to work on a coding task'), distinguishing it from siblings like 'get_session' or 'list_sessions' which retrieve existing sessions rather than creating new ones. The verb+resource combination is precise and unambiguous.

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?

The description implies usage context by specifying 'to work on a coding task' and mentions the 'require_plan_approval' parameter behavior, but it does not explicitly state when to use this tool versus alternatives like 'send_message' or 'create_pull_request'. It provides clear context for initiating a session but lacks explicit exclusions or comparisons to sibling tools.

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

Install Server

Other Tools

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

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