Skip to main content
Glama

Get Session History by Agent

lyzr_session_history_by_agent
Read-onlyIdempotent

Fetch a session's message history for a specific agent. Provide session and agent IDs to access the full conversation log.

Instructions

Fetch a session's message history for a specific agent.

Input Schema

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

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

Annotations already declare readOnlyHint, openWorldHint, and idempotentHint, so the description only needs to add context. It adds that this returns message history, which is useful, but does not disclose details such as ordering, pagination, or exact return format. The description is consistent with annotations, with no contradiction.

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, front-loaded sentence with no filler or unnecessary words. Every word contributes meaning, making it highly concise and well-structured.

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?

Given the simple read-only tool, full parameter documentation, and strong annotations, the description is largely complete. It states what is returned (message history) and the scope (specific agent), though it could have clarified differences from sibling session history tools given the large sibling set and absence of an output schema.

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 description coverage is 100%, with all three parameters (unix, agent_id, session_id) already described in the schema. The description adds no extra semantic meaning beyond the schema, so baseline 3 is appropriate.

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 uses the specific verb 'Fetch' and clearly identifies the resource as 'a session's message history for a specific agent.' This distinguishes it from the generic sibling lyzr_session_history by adding the agent qualifier, though it does not explicitly name that alternative.

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?

No guidance is provided on when to use this tool versus similar siblings like lyzr_session_history, lyzr_session_conversation, or lyzr_session_get. It does not state prerequisites, exclusions, or suggest alternatives, leaving the agent to infer context 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