Skip to main content
Glama

session_context

Get a complete snapshot of a session's state, including recent messages, tasks, and artifacts, to quickly understand progress and context before starting work.

Instructions

Get a compiled context view of the session. PRIMARY tool for understanding session state.

AUTOMATIC TRIGGERS - Call this when:

  • Joining a session and you need to understand current state

  • Before starting work to see what's been done

  • After being assigned a task to understand context

  • Whenever you're unsure about session status

This is the GO-TO tool for session understanding. Returns summary + recent messages

  • state + tasks + artifacts in a formatted view optimized for context windows.

WORKFLOW POSITION: Call after joining, before starting work, and periodically.

PARAMETERS:

  • session_id: Session to get context for

  • agent_id: Your agent ID

  • max_messages: Max recent messages to include (default: 20)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agent_idYes
session_idYes
max_messagesNo
Behavior3/5

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

Since no annotations are provided, the description carries the full burden. It discloses the tool's return contents and optimized format, which is helpful. But it does not state whether this is a read-only operation, mention side effects, or explain behavior around empty sessions or missing artifacts.

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 first sentence is front-loaded and useful. However, 'PRIMARY tool', 'GO-TO tool', and the repeated WORKFLOW POSITION section are redundant. The trigger bullets and workflow position overlap enough that some sentences do not earn their place.

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?

The description covers triggers, return content, and parameter semantics sufficiently for a simple read-style context tool. But there is no output schema, no annotations, no behavior around stale/missing state, and no guidance on how this tool relates to siblings like check_context or session_statistics. The default value mismatch also reduces completeness.

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?

The description explains all three parameters in plain language, which is important because schema description coverage is 0%. However, it states max_messages default is 20 while the schema states default is 5. This conflicting default can mislead an agent into assuming different behavior, so the parameter guidance is partially inaccurate.

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 specific verb and resource: 'Get a compiled context view of the session.' It also clarifies what is returned (summary, messages, state, tasks, artifacts) and claims PRIMARY status. It does not explicitly differentiate against close siblings such as check_context or get_session_state, but the compiled-view framing is distinct enough.

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 provides clear AUTOMATIC TRIGGERS and WORKFLOW POSITION guidance, telling the agent when to call it: after joining, before starting work, after task assignment, and when unsure. It gives strong context but no when-not-to-use statements or named 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/Vedant9500/OpenLMlib'

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