Skip to main content
Glama

Get Session History

lyzr_session_history
Read-onlyIdempotent

Retrieve a session's complete message history using its session ID to review past interactions and maintain context.

Instructions

Fetch a session's message history.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
unixNoReturn timestamps as unix epochs
session_idYesSession id
Behavior2/5

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

The description adds no behavioral details beyond what the annotations already provide. It says 'Fetch' which is consistent with readOnlyHint and idempotentHint, but it doesn't disclose return format, ordering, pagination, or any other runtime behavior. No contradiction exists, but there is no additional transparency value.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence with no redundant words. It is front-loaded with the verb and object, and every word contributes to the meaning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple read-only fetch with two parameters, the description is minimally adequate. However, it does not specify whether the full message history is returned, if there is any pagination or ordering, or what the response structure looks like, and no output schema is provided.

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?

The schema already provides 100% coverage with descriptions for both session_id and unix. The tool description adds no parameter-specific meaning beyond what is in the schema, so the baseline of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Fetch') and the resource ('a session's message history'), which is specific and distinct from session management tools like lyzr_session_get or lyzr_session_update. Even among session-history-related siblings, this wording identifies exactly what is returned.

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

Usage Guidelines2/5

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

The description gives no guidance on when to use this tool over alternatives such as lyzr_session_history_by_agent or lyzr_session_conversation. There is no mention of preconditions, differences, or exclusions, leaving the agent to infer usage from the name alone.

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

Install Server

Other Tools

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/nandanNM/lyzr-mcp'

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