Skip to main content
Glama

get_active_session

Retrieve the current active session's stored context from persistent memory. Use this to access project details saved across coding sessions.

Instructions

Get information about the currently active session.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workspace_pathNoOptional: filter by workspace

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of disclosing behavioral traits. 'Get information' implies read-only behavior, but the description does not state whether it errors when no session is active, whether it returns partial data, or whether any state is modified. The lack of any behavioral context leaves the agent with only the verb and tool name to infer safety and side effects.

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 a single clear sentence with no filler or repeated information. It is front-loaded and efficiently communicates the core purpose, though it could include a bit more operational context without becoming verbose.

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 simple read-only getter with one optional parameterable to invoke correctly since the schema covers workspace_path and the purpose is clear. However, the absence of an output schema and annotations means the agent does not know what 'information' is included or what happens when no active session exists, leaving some important context unspecified.

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?

The input schema already fully documents the only parameter, workspace_path, with 100% coverageable for this single optional filter. The description adds no parameter-specific meaning, but because the schema covers the parameter adequately, a baseline score of 3 is appropriate.

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?

The description states a clear read operation ('Get information') and a specific resource ('currently active session'), which goes beyond the bare tool name by specifying that it targets the active session rather than any arbitrary session. It does not explicitly name sibling tools like get_session or list_sessions, but the 'active' qualifier provides meaningful differentiation.

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?

The description implies that the tool should be used when the active session is needed, but it does not explicitly explain when to prefer this over get_session, list_sessions, or start_session. There is no exclusionary guidance, so an agent must infer the appropriate context from the sibling tool names.

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