Skip to main content
Glama

Typebar (formerly SuperDocs)

get_session_history

Returns complete message history (user and AI), final document HTML with chunk IDs preserved, attachment list, and editor actions (font, color, alignment changes). Use to continue editing a document you started in a prior session. The AI rehydrates with full context of all prior decisions, chunk IDs, and attachments. Pass include_document_html=false to skip the full document body when you only need the conversation.

Input Schema

NameRequiredDescriptionDefault
session_idYes
authorizationNo
focus_document_idNoDurable id of the document to focus on restore (e.g. the file the user clicked in the Files view). When set, that document is shown in the editor and marked focused in the roster; omit to use the session's own last-focused document.
include_document_htmlNoWhen false, omit the restored document's full HTML body (document_state.html_content) to keep your context small — agents that just need the conversation + metadata should set false. Default true (the web app needs the body to re-render the editor).

Output Schema

NameRequiredDescriptionDefault
messagesYesOrdered list of messages. Each item has: id (string), sender ('user' or 'ai'), content (string), timestamp (ISO 8601), turn_index (int), checkpoint_id (string or null — present on turns recorded after the revertability feature shipped; null for legacy turns where revert is unavailable).
session_idYesSession identifier.
editor_actionNoClient instruction: 'update' (load document_state HTML into editor), 'clear' (reset editor), or 'keep' (no change).keep
restore_errorNoTrue ONLY when the document RESTORE itself failed transiently (its content load timed out or errored, typically under backend memory pressure) — as distinct from a genuine document-less session ('clear') or an intentional no-change ('keep'). editor_action stays 'keep' so the editor is left exactly as-is (never wrongly cleared); this flag lets the client offer a non-blocking retry instead of silently leaving the user on an empty editor. Null/absent on success and on the genuine no-document path.
document_stateNoCurrent document state. Present if the session has an active document.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries full disclosure burden and does much of it: it explains that the AI rehydrates with prior decisions/chunk IDs/attachments, and highlights the context-size trade-off of include_document_html. It says nothing about the authorization parameter, permission requirements, or failure modes, which is the remaining behavioral gap.

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?

Four sentences, most of which earn their place, with the core return payload and the continuation use case front-loaded. 'The AI rehydrates with full context of all prior decisions, chunk IDs, and attachments' partially repeats the earlier return inventory, so it is slightly longer than needed.

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?

An output schema exists, so return-value explanation is not strictly required, yet the description usefully characterizes what rehydration gives the agent. The main omission is any mention of the authorization parameter or access prerequisites for a session-history read.

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 coverage is 50%: focus_document_id and include_document_html are already documented in the schema, and the description largely restates the include_document_html behavior rather than adding new meaning. session_id and authorization have no description anywhere, and the description does not compensate for those gaps — baseline 3.

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?

Specific verb+resource ('get_session_history') with an explicit inventory of what is returned: message history, document HTML with chunk IDs, attachment list, and editor actions. It is clear what the tool retrieves, but it never contrasts itself with nearby siblings such as get_document_detail or list_sessions, so an agent must infer the boundary itself.

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?

States a clear usage context ('Use to continue editing a document you started in a prior session') and gives a conditional guideline for include_document_html=false when only the conversation is needed. It stops short of naming alternatives or exclusions, so it is clear context rather than full when/when-not 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.