Skip to main content
Glama
smurfy92

openclaw-control-mcp

by smurfy92

openclaw_sessions_list

List active OpenClaw agentic sessions, filterable by status, agent ID, or instance. Use this tool to locate a specific session before previewing, patching, aborting, compacting, or resetting it.

Instructions

List active OpenClaw agentic sessions. Wraps sessions.list. Each session has both a sessionId (UUID) and a key (composite, e.g. 'agent:main:main', 'agent:main:cron:', 'agent:main:telegram:group:', 'agent:main:subagent:'). Use to find a session before preview/patch/abort/compact/reset. The status filter is applied client-side after fetch (verified live: the gateway itself rejects a status param with unexpected property 'status' against 2026.4.12+).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
offsetNo
statusNoClient-side filter on session.status. Observed values: 'running', 'done', 'error', 'aborted', 'timeout'. Applied after fetch — does not reduce wire traffic.
agentIdNoFilter by agent id (e.g. 'main') — forwarded to the gateway.
instanceNoOptional OpenClaw instance to route this call to (e.g. 'default', 'work'). Falls back to the active default instance, or the OPENCLAW_GATEWAY_URL/TOKEN env vars when set. List configured instances with openclaw_setup_list.
Behavior4/5

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

With no annotations, the description carries full burden and does well: it explains that the `status` filter is applied client-side after fetch (with a note validating this against the gateway), details key formats, and describes instance routing fallback. It does not cover pagination beyond limit/offset or error behavior, but it adds meaningful context beyond the raw function name.

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?

The description is two sentences plus a parenthetical, efficiently stating purpose, key format, usage context, and a behavioral note. It is front-loaded with the core action. Minor improvement would be to remove redundancy or tighten the parenthetical, but overall it is concise.

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?

Given no output schema, the description does not explain the return structure (e.g., array of session objects, pagination metadata). It describes key formats but omits details like response fields or how limit/offset affects results. It is adequate for a simple list operation but could be more complete regarding expected output.

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 60% (3 of 5 parameters documented in schema: status, agentId, instance). The description adds value for `status` (client-side behavior), `instance` (fallback logic), and explains key formats. However, `limit` and `offset` receive no additional explanation, and the description does not fully compensate for the 40% undocumented parameters.

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 its purpose: 'List active OpenClaw agentic sessions.' It provides specific details about session key formats and explicitly positions itself as a tool to use before preview/patch/abort/compact/reset, distinguishing it from sibling session tools.

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 explicitly says 'Use to find a session before preview/patch/abort/compact/reset,' providing clear context for when to use this tool. It also warns about the client-side status filter behavior, though it does not explicitly mention when not to use it relative to alternative list 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/smurfy92/openclaw-control-mcp'

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