Skip to main content
Glama

List workspace sessions

workspace_sessions
Read-onlyIdempotent

Read recent sessions in a workspace, newest first: who worked (mine: your own account; agentId: the agent's handle) and from which harness, then steps: each stated why followed by the changes made for it (actions, item title and id, versions with numbers, rows, and a task definition's corrections: added, retired and included in its instructions). unread marks a session with work after your last acknowledged change (workspace_changes_ack). Filter by agent (a handle from workspace_load agents: that agent's sessions) or by (people or agents, within the latest 1,000 changes). Sessions are computed from activity; nothing is started or ended. Continue with cursor and the same filters.

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": {
      "id": "<id>"
    },
    "name": "workspace_sessions"
  }
}

Input Schema

NameRequiredDescriptionDefault
byNoOnly people's sessions (in the browser, or with no key) or only agents', within the latest 1,000 changes.
idYesThe workspace: its id or its slug.
whyNoOptional, accepted and not recorded by this operation. If you send one, one sentence on the goal this change serves. At most 300 characters.
agentNoOnly this agent's sessions, read over its latest 1,000 changes here: me (you), or its handle from workspace_load agents or its key id (each also as agent:<…>).
cursorNo

Output Schema

NameRequiredDescriptionDefault
itemsYes
hasMoreYes
nextCursorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / why / description
      Previous value: -"Optional, accepted and not recorded by this operation. If you send one, one sentence on what the person is trying to accomplish. At most 300 characters."New value: +"Optional, accepted and not recorded by this operation. If you send one, one sentence on the goal this change serves. At most 300 characters."
  2. Changed1 schema field changed
    • addedOutput schema / properties / items / items / properties / steps / items / properties / changes / items / properties / corrections
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "A task definition's corrections the step touched: added and retired, the corrections added to it and retired from it; included, how many corrections its instructions updates took in. Present only when one is non-zero.",
      +  "properties": {
      +    "added": {
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "included": {
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "retired": {
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "added",
      +    "retired",
      +    "included"
      +  ],
      +  "type": "object"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / why
      Added value: +{
      +  "description": "Optional, accepted and not recorded by this operation. If you send one, one sentence on what the person is trying to accomplish. At most 300 characters.",
      +  "type": "string"
      +}
  4. Changed5 schema fields changed
    • changedInput schema / properties / agent / description
      Previous value: -"Only this agent's sessions: its handle from workspace_load agents (or agent:<handle>), read over its latest 1,000 changes here."New value: +"Only this agent's sessions, read over its latest 1,000 changes here: me (you), or its handle from workspace_load agents or its key id (each also as agent:<…>)."
    • changedInput schema / properties / agent / pattern
      Previous value: -"^(agent:)?[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"New value: +"^([aA][gG][eE][nN][tT]:)?([mM][eE]|[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
    • addedInput schema / properties / id
      Added value: +{
      +  "description": "The workspace: its id or its slug.",
      +  "maxLength": 64,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • removedInput schema / properties / workspaceId
      Removed value: -{
      -  "description": "The workspace: its id or its slug.",
      -  "maxLength": 64,
      -  "minLength": 1,
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "workspaceId"
      -]New value: +[
      +  "id"
      +]
  5. Changed4 schema fields changed
    • addedInput schema / properties / agent
      Added value: +{
      +  "description": "Only this agent's sessions: its handle from workspace_load agents (or agent:<handle>), read over its latest 1,000 changes here.",
      +  "pattern": "^(agent:)?[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
      +  "type": "string"
      +}
    • addedInput schema / properties / by
      Added value: +{
      +  "description": "Only people's sessions (in the browser, or with no key) or only agents', within the latest 1,000 changes.",
      +  "enum": [
      +    "people",
      +    "agents"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / items / items / properties / agentId
      Added value: +{
      +  "anyOf": [
      +    {
      +      "format": "uuid",
      +      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • changedOutput schema / properties / items / items / required
      Previous value: -[
      -  "id",
      -  "account",
      -  "agent",
      -  "surface",
      -  "inBrowser",
      -  "viaBrowser",
      -  "mine",
      -  "unread",
      -  "startedAt",
      -  "lastAt",
      -  "steps",
      -  "stepsTruncated",
      -  "eventCount",
      -  "earlierActivityNotShown"
      -]New value: +[
      +  "id",
      +  "account",
      +  "agent",
      +  "agentId",
      +  "surface",
      +  "inBrowser",
      +  "viaBrowser",
      +  "mine",
      +  "unread",
      +  "startedAt",
      +  "lastAt",
      +  "steps",
      +  "stepsTruncated",
      +  "eventCount",
      +  "earlierActivityNotShown"
      +]
  6. Changed1 schema field changed
    • addedOutput schema / properties / items / items / properties / account / properties / former
      Added value: +{
      +  "const": true,
      +  "type": "boolean"
      +}
  7. Changed1 schema field changed
    • removedOutput schema / properties / items / items / properties / steps / items / properties / changes / items / properties / handoff
      Removed value: -{
      -  "const": true,
      -  "type": "boolean"
      -}
  8. Changed5 schema fields changed
    • changedInput schema / properties / workspaceId / description
      Previous value: -"The workspace id (UUID)."New value: +"The workspace: its id or its slug."
    • removedInput schema / properties / workspaceId / format
      Removed value: -"uuid"
    • addedInput schema / properties / workspaceId / maxLength
      Added value: +64
    • addedInput schema / properties / workspaceId / minLength
      Added value: +1
    • removedInput schema / properties / workspaceId / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
  9. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world. The description adds real value beyond them by stating ordering (newest first), the 1,000-change lookback window, cursor continuation, and crucially that 'sessions are computed from activity; nothing is started or ended' — a non-obvious derived-data trait.

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

Conciseness2/5

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

A single run-on construction with nested parentheses makes the reader parse clauses like 'versions with numbers, rows, and a task definition's corrections: added, retired and included in its instructions'. Much of that is return-value detail that an output schema already covers, so it is wasted bulk in the description.

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 filtered list tool with an output schema, the description covers ordering, pagination, derived-data semantics, and both filter dimensions, which is close to what an agent needs to invoke it correctly. The 'agent' vs 'agentId' mismatch and the unexplained 'why' parameter (documented only in schema) are the remaining gaps.

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 80%, so the schema already documents all five parameters. The description adds meaning for the filters ('mine' = your own account, agent handles from workspace_load agents, 'by' restricted to the latest 1,000 changes) but refers to an 'agentId' that does not exist in the schema, where the parameter is named 'agent' — a naming mismatch that can mislead.

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?

Opens with a specific verb and resource: 'Read recent sessions in a workspace, newest first', which an agent can distinguish from workspace_changes or activity. The rest of the sentence drifts into describing returned fields rather than sharpening the purpose, so it is clear but not as crisp as 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 Guidelines3/5

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

It names related tools (workspace_changes_ack for unread marks, workspace_load agents for handles) and explains the two filter modes, which implies when to use it. It never states when to prefer it over workspace_changes or activity, and gives no exclusions, so guidance is implied rather than explicit.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.