Skip to main content
Glama

Get Jules Session Output

jules_get_session_output

Fetch final output and results, including pull request details, from a Jules session after it reaches completion.

Instructions

Retrieve the final output and results from a completed Jules session, including pull request details. Use after session state is COMPLETED.

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": {
      "sessionId": "<sessionId>"
    },
    "name": "jules_get_session_output"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionIdYesSession ID to get output for

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations supplied, the description carries the burden and does reveal two useful traits: the tool is gated on the COMPLETED state and the payload includes PR details. It omits behavior when the precondition is unmet (error vs. empty result), whether output is truncated, and any auth/permission requirements.

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?

Two short clauses with zero redundancy: the return payload is front-loaded and the precondition follows immediately. Nothing is padded or repeated from the schema.

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 simple one-parameter read with no output schema, the description adequately covers purpose, the return payload (including PR details), and the timing precondition. The main residual gap is failure behavior when the session is not yet COMPLETED, which an agent would want to know before calling.

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?

Only one parameter, sessionId, already documented at 100% schema coverage, so the schema does the work. The description implies a completed session ID is required but adds no format, source, or acquisition guidance (e.g., from jules_list_sessions). Baseline 3 for a fully documented single-parameter 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?

States a specific verb ('Retrieve') and resource ('final output and results from a completed Jules session'), plus a concrete payload element (pull request details). This distinguishes it reasonably from jules_get_status and jules_list_activities, though it never explicitly names a sibling to contrast with, leaving that differentiation implicit.

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?

Gives an explicit precondition: 'Use after session state is COMPLETED,' which tells the agent when this tool is applicable and implies it should not be called mid-run. It stops short of naming alternatives (e.g., poll with jules_get_status instead) or stating what happens if the state is not COMPLETED.

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