Skip to main content
Glama

List Codex sessions

codex_sessions
Read-onlyIdempotent

Lists persistent Codex bridge sessions, optionally filtered by an allowlisted canonical workspace, so you can review active or archived project sessions.

Instructions

List persistent bridge sessions, optionally filtered by an allowlisted canonical workspace.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "codex_sessions"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNo
include_archivedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and closed-world, so the safety profile is covered. The description adds genuinely new context with 'allowlisted canonical workspace', implying non-canonical or non-allowlisted paths may not work. It says nothing about what a session record contains, ordering, or pagination behavior.

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?

A single front-loaded sentence with no filler, so every word earns its place. It is arguably over-terse for the guidance burden it carries, but structurally it is clean and non-redundant.

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 a two-optional-parameter list tool with no output schema, the definition covers the core purpose and the main filter constraint. It leaves the archived-sessions parameter and the shape of returned session entries undocumented, which an agent would need to call it confidently.

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 coverage is 0%, and the description constrains 'cwd' meaningfully by revealing it must be a canonical, allowlisted workspace path — information the schema (bare string, minLength 1) does not convey. However, 'include_archived' is never mentioned, so the agent gets no guidance on whether archived sessions appear by default.

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 ('List') and resource ('persistent bridge sessions') plus a filtering capability, which clearly distinguishes it from mutating siblings like codex_session_archive or execution siblings like codex_execute. It does not explicitly name a sibling it is not, so it falls just short of a 5.

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

Usage Guidelines2/5

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

The word 'optionally' signals that filtering is not required, but there is no statement of when to use this tool versus codex_analyze, codex_execute, or codex_session_archive, and no preconditions or exclusions. An agent must infer the use case entirely from the verb.

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