Skip to main content
Glama

get_agent_chat_context

Retrieve conversation context for agent rehydration, including agent messages and mentions, to resume execution in chat rooms.

Instructions

Get conversation context for agent rehydration.

Returns all messages relevant to the agent for execution context/rehydration. This includes: - All messages the agent sent (any type: text, tool_call, tool_result, thought, etc.) - All text messages that @mention the agent Use this to load the complete context an external agent needs to resume execution. Messages are returned in chronological order (oldest first). Args: chat_id: The unique identifier of the chat room (required). page: Page number for pagination (optional, default: 1). page_size: Items per page (optional, default: 50, max: 100). Returns: JSON string containing the agent's conversation context with messages.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chat_idYes
pageNo
page_sizeNo

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/thenvoi/thenvoi-mcp'

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