Skip to main content
Glama

session_context

Read-only

Returns the token owner (signed-in user), the company and the language of its data, token scopes, the owner's privileges (allows) and token expiry (expiresAt; null - no expiry). Also includes the company's and user's conventions and notes for AI agents (memoryInstructions) with an index of further memory records by topic (memory: topic → key → title of up to 120 characters; a convention's key is its slug, a memory record's key is a link to the record's window labelled with the start of its ID), as reference material. Also returns the company's, user's and token's variables for AI agents in brief (variables): file path (file) or environment variable name (env), title, and the value of short non-secret environment variables only; the full description of a variable is available separately by its name. In work on a task, the variables of the product context apply.

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": "session_context"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely non-obvious behavior: expiresAt null means no expiry, memory titles are truncated at 120 characters, keys are slugs or window links, and only 'short non-secret environment variables' have their values exposed. It does not say how often this context changes or whether it is cached, which keeps it off a 5.

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 most important item, the token owner, is front-loaded, but the rest is a single sprawling sentence studded with nested parentheses and semicolons that makes the memory-index and variable rules hard to parse. Little of the content is wasted, yet the structure works against readability.

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?

With no output schema, the description must carry the return shape itself, and it does so field by field, including the memory index hierarchy and the variable fields (file/env, title, value). What is missing is operational: no tool name for fetching a variable's full description and no indication of how much memory content exists or how to retrieve a record by key.

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?

The tool takes zero parameters, so there is no per-parameter meaning to add; the baseline for a parameterless schema is 4. The description instead spends its words on the shape of the response, which is the relevant semantics here.

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 enumerates precisely what the tool returns: token owner, company, data language, token scopes, privileges (allows), expiry (expiresAt), AI-agent memory instructions, and variables. An agent can tell this is an identity/context-bootstrap read without opening anything else. It does not explicitly differentiate itself from siblings like product_context or meeting_context, so it stops short of a 5.

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?

Usage is implied rather than stated: the content is framed as 'reference material' and the closing line says product-context variables apply during task work, which hints at when the data matters. There is no explicit when-to-call, no prerequisites, and no named alternative for the 'full description of a variable' or the underlying memory records, so the agent must infer routing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources