Skip to main content
Glama

ck_session

Enumerate and manage governed sessions. List sessions, get status, or switch active session binding (requires confirmation).

Instructions

Enumerate and manage governed sessions. Three modes: list (enumerate sessions for the project); status (get current session details, resolves from project binding if session_id omitted); switch (change active session binding — REQUIRES confirm: true).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoOperation mode that determines the tool behavior and return shape.
limitNoMax sessions to return for list mode. Default: 20, max: 100.
confirmNoMust be true to authorize a session switch.
session_idNoUnique session identifier. Required for switch mode. Omit or pass nil to resolve from project binding.
project_rootNoAbsolute path to project root. Required for switch mode.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNo
titleNo
totalNo
sessionsNo
switchedNo
risk_tierNo
project_rootNo
workspace_idNo
Behavior4/5

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

Annotations are minimal (readOnlyHint=false, destructiveHint=false), so the description carries the burden. It discloses three different behaviors per mode and the authorization requirement for switch. It does not contradict annotations.

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?

The description is three sentences, front-loaded with the main purpose, then lists modes concisely. No extraneous information.

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?

Given the output schema exists, the description covers essential usage and parameter nuances. It could mention error handling or prerequisites like project_root existence, but overall sufficient for invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, but the description adds extra meaning, e.g., 'Omit or pass nil to resolve from project binding' for session_id, and the mode parameter's behavioral impact. This justifies above baseline.

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 it enumerates and manages governed sessions with three distinct modes (list, status, switch). This is specific and distinguishes it from sibling tools like ck_session_digest.

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 explains when to use each mode and notes that switch requires confirm: true. However, it lacks explicit guidance on when not to use this tool or comparisons to alternatives.

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/aryaminus/controlkeel'

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