Skip to main content
Glama

session_log

Scan session history to identify past failures and decisions. Filter by event type to see what has already failed in one call.

Instructions

A git log for this project's sessions: one line per recorded event, newest first, with local timestamp, event type and the repo state (branch@commit+dirty) it happened at. Use it to scan history fast, then grep the session's own session.md for the entry that matters. Filter by type to answer 'what has already failed here' in one call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax lines (default 40)
session_idNoOne session only. Omit to walk newest-first across all
type_filterNoOnly this event type, e.g. decision, dead_end, error

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

No annotations are present, so the description carries the transparency burden. It discloses ordering, per-line fields, and filtering behavior, and the 'git log' analogy implies a read-only operation. It does not explicitly state the side-effect profile, but nothing about the description suggests mutation.

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?

Two dense sentences front-load the return format and then add usage guidance. There is no filler, repetition of schema details, or vague phrasing.

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

Completeness5/5

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

For a simple optional-parameter log reader with no output schema, the description supplies the necessary return fields, ordering, and a decision rule for filtering. It is complete enough for an agent to invoke it correctly without further context.

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 clear descriptions for limit, session_id, and type_filter. The description only reinforces 'Filter by type', adding little beyond what the schema already says. Baseline 3 is appropriate when the schema carries the parameter documentation.

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 names the exact resource ('sessions'), the operation mode ('git log'), and the output shape (one line per event, newest first, timestamp, event type, repo state). It is immediately distinguishable from write/status/search siblings by its read-only log framing, even though it does not explicitly name an alternative tool.

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?

It gives concrete directives: 'Use it to scan history fast, then grep the session's own session.md' and 'Filter by type to answer what has already failed here'. This establishes a clear primary use case and points to a follow-up resource, but it does not explicitly say when to prefer session_search instead.

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

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/premanand8800/cogsession'

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