Skip to main content
Glama

get_context_stats

Monitor context window health by displaying turn count, token usage, compaction events, and context age to determine optimal checkpoint or reset timing.

Instructions

Get statistics about your current context window health.

Returns:

  • Number of turns (user and assistant messages)

  • Estimated token count

  • Number of compaction/summary events

  • Context age

Use this to decide when you might want to checkpoint or reset.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

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/simen/mcp-memento'

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