Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
JULES_API_KEYYesThe API key used to access Google Jules capabilities.
JULES_API_TIMEOUTNoOptional override for the Jules API timeout.
JULES_API_BASE_URLNoOptional override for the Jules API base URL.
JULES_POLL_INTERVALNoOptional override for the Jules poll interval.
JULES_REQUEST_TIMEOUT_MSNoOptional override for the Jules request timeout in milliseconds.
JULES_RATE_LIMIT_MAX_DELAY_MSNoOptional override for the maximum rate limit delay in milliseconds.
JULES_RATE_LIMIT_MAX_RETRY_MSNoOptional override for the maximum rate limit retry time in milliseconds.
JULES_RATE_LIMIT_BASE_DELAY_MSNoOptional override for the base rate limit delay in milliseconds.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}
prompts
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
create_session

Creates a new Jules session or automated run to perform code tasks. If repo and branch are omitted, creates a "repoless" session where the user provides their own context in the prompt and Jules will perform code tasks based on that context instead of a GitHub repo.

list_sessions

List recent Jules sessions with pagination support.

get_session_state

Get the current status of a Jules session. Acts as a dashboard to determine if Jules is busy, waiting, or failed.

RETURNS: id, status, url, title, prompt, pr (if created), lastActivity, lastAgentMessage (if any), pendingPlan (if awaiting approval)

STATUS (use this to decide what action to take):

  • "busy": Jules is actively working. Peek with get_code_review_context if needed.

  • "stable": Work is paused. Safe to review code, send messages, or check outputs.

  • "failed": System-level failure (like a 500). Session cannot continue.

LAST ACTIVITY:

  • Shows what just happened (activityId, type, timestamp)

  • Common types: agentMessaged, sessionCompleted, progressUpdated, userMessaged, planGenerated

LAST AGENT MESSAGE:

  • Contains the last message Jules sent (activityId, content, timestamp)

  • Read this to understand what Jules communicated

  • If Jules asked a question, you can respond using send_reply_to_session

PENDING PLAN:

  • Present when a plan is awaiting approval (lastActivity.type is 'planGenerated')

  • Contains planId and steps (title, description for each step)

  • Use send_reply_to_session with action 'approve' to approve the plan

NEXT ACTIONS:

  • busy → Wait for completion, or peek with get_code_review_context

  • stable + pendingPlan → Review the plan steps, then approve or send feedback

  • stable + lastAgentMessage → Read message, respond if Jules asked something

  • stable + no message → Review PR or code changes with get_code_review_context

  • failed → Report to user. Session is unrecoverable.

IMPORTANT:

  • You can send messages to ANY session regardless of status.

  • A session is never truly "done" unless it's failed. You can always continue the conversation.

send_reply_to_session

Interacts with an active Jules session (approving plans or sending messages).

get_code_review_context

Review code changes from a Jules session. Returns a structured summary of what changed, organized by file with change types, line counts, and activity IDs. Automatically detects if session is busy (aggregates from activities) or stable (uses final outcome). Can optionally scope to a single activity. For detailed diffs, use show_code_diff.

show_code_diff

Show the actual code diff for files from a Jules session. Returns unified diff format that can be displayed to users. Use after get_code_review_context to drill into specific file changes. Can optionally show diff from a specific activity (use activity IDs from get_code_review_context output).

query_cache

Query the LOCAL CACHE of sessions and activities. Returns only previously synced data (fast, but may be stale). To ensure fresh data: call jules_sync first, then jules_select. Best for searching across multiple sessions or filtering by type/state.

get_bash_outputs

Get all bash command outputs from a Jules session. Returns commands executed, their stdout/stderr, and exit codes. Use to understand what shell commands were run.

jules_list_sources

Lists all GitHub repositories connected to your Jules account.

jules_get_source

Gets details about a specific GitHub repository connected to Jules.

jules_create_session

Creates a new Jules session to perform an asynchronous coding task.

jules_get_session

Gets the current status and details of a Jules session.

jules_list_sessions

Lists your Jules sessions with optional pagination.

jules_approve_plan

Approves the current plan for a session.

jules_reject_plan

Rejects the current plan for a session and optionally provides feedback.

jules_send_message

Sends a message to an active Jules session.

jules_cancel_session

Cancels an active Jules session.

jules_list_activities

Lists all activities (events) in a Jules session.

jules_get_latest_activity

Gets the most recent activity from a Jules session.

jules_get_session_plan

Gets the execution plan from a Jules session.

jules_wait_for_completion

Waits for a Jules session to complete (success, failure, or cancellation).

jules_wait_for_plan

Waits for Jules to generate a plan for a session.

jules_create_and_wait

Creates a Jules session AND waits for it to complete in a single operation.

jules_quick_task

Simplest way to assign a task to Jules with sensible defaults.

jules_get_session_summary

Gets a comprehensive summary of a Jules session including status, plan, activities, and outputs.

jules_sync_local_codebase

Applies the latest Jules diff to a local git working tree (syncs the codebase).

Prompts

Interactive templates invoked by user choice

NameDescription
analyze_sessionAnalyze a Jules session with the LLM

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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

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