Skip to main content
Glama

get_session_context

Returns the working briefing and unconsolidated facts for the current session so you can load context before answering or re-capturing a fact.

Instructions

At the start of every conversation, before answering, call get_session_context unless you already loaded the memory://briefing resource. That call returns the same working briefing the resource would have injected. Tools-only clients never fetch resources.

Also returns facts captured in this session that have not been consolidated yet. Call it before re-capturing a fact you may have already stored this session.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_session_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_idNoSession to query. Omit for the current session.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.34.0
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observedv0.30.1

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the burden and mostly delivers: it discloses that the payload mirrors the briefing resource, that tools-only clients cannot get it any other way, and that it surfaces unconsolidated session facts. It stops short of stating that the call is read-only and causes no writes, which matters for a tool an agent is told to invoke on every conversation.

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 trigger instruction is front-loaded ahead of the rationale, and every sentence carries information (when to call, why tools-only clients need it, the dedup use). It is slightly padded by restating the resource equivalence twice.

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?

For a one-parameter read tool with no output schema, the description should convey return content, which it does at a high level ('working briefing', 'facts not consolidated yet'). An agent would still benefit from knowing roughly what the briefing contains or how facts are formatted, but nothing needed to call it correctly is missing.

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 description coverage is 100% and session_id already documents 'Omit for the current session', so the schema does the work. The description adds no parameter-level meaning such as what happens when a session_id from a prior session is passed.

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?

States a specific verb and resource ('returns the working briefing' plus 'facts captured in this session that have not been consolidated yet'), which is concrete and lets an agent predict the payload. It falls short of 5 because it never distinguishes itself from the sibling get_context, leaving the agent to guess which context tool to call.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit trigger ('At the start of every conversation, before answering'), an explicit exclusion ('unless you already loaded the memory://briefing resource'), and a second trigger for the fact-dedup case ('Call it before re-capturing a fact'). This is exactly the when/when-not guidance the dimension rewards.

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