Skip to main content
Glama

session

Manage agent conversations: list active threads, page through message history, close completed threads, and read task or root context.

Instructions

List, page history, close sessions; read a task or root.

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": {
      "action": "<action>"
    },
    "name": "session"
  }
}

Input Schema

NameRequiredDescriptionDefault
mineNo
limitNohistory.
actionYes
cursorNohistory.
root_handleNo
task_handleNo
delete_historyNoclose: drop it.
session_handleNohistory/close.
workspace_pathNoRepo path; omit for client workspace.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.8.0
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "list",
      -  "history",
      -  "close"
      -]New value: +[
      +  "list",
      +  "history",
      +  "messages",
      +  "close",
      +  "task",
      +  "root"
      +]
    • changedInput schema / properties / delete_history / description
      Previous value: -"close: drop history."New value: +"close: drop it."
    • addedInput schema / properties / mine
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / root_handle
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / task_handle
      Added value: +{
      +  "type": "string"
      +}
    • changedInput schema / properties / workspace_path / description
      Previous value: -"Repository path; omit for client workspace (footer fallback)."New value: +"Repo path; omit for client workspace."
  2. First observedv0.7.0

TDQS

C2.4/5.0
Behavior2/5

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

No annotations are provided, so the description must carry the full behavioral burden. It mentions closing sessions but does not disclose permissions, reversibility, destructive effects of close/delete_history, pagination behavior, or return format, leaving major behavioral gaps.

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

Conciseness3/5

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

The description is very short and front-loads the action list, but it is fragmentary and cryptic rather than efficiently informative. Its brevity comes at the cost of clarity for a multi-action tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a multi-action tool with nine parameters, no annotations, and no output schema, so the description needs substantial detail to be complete. It names some actions but omits parameter semantics, side effects, and return behavior, making it inadequate for correct invocation.

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

Parameters2/5

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

With nine parameters and only 56% schema description coverage, the description should compensate but does not. It does not explain the meaning of mine, limit, cursor, delete_history, the handle parameters, or workspace_path beyond what sparse schema text already says.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description enumerates several operations (list, history, close, task, root) tied to the session resource, so the general purpose is inferable. However, it omits the 'messages' action present in the enum and gives no sibling differentiation, leaving the tool's scope somewhat vague.

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?

There is no guidance on when to use this tool versus alternatives, nor any when-not-to-use conditions. The action list implies possible operations but does not explain which context selects each one.

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

Deploy Server

Other Tools