Skip to main content
Glama

Get recent session logs

get_recent_logs

Read recent session summaries to recover context; uses fresh active work by default, falls back to project-wide history, and supports optional work ID, project-wide, and limit filters.

Instructions

Read recent session summaries. Defaults to the active work when one is fresh; otherwise falls back to project-wide history.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_recent_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many recent log entries to return.
work_idNoOptional explicit work id filter.
project_wideNoWhen true, ignore the active work and read project-wide history.

Output Schema

NameRequiredDescriptionDefault
countYes
entriesYes
json_pathYes
project_rootYes
markdown_pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose a non-obvious behavioral trait: it silently defaults to the active work when that work is "fresh" and otherwise falls back to project-wide history. It does not state that the operation is read-only or describe failure/empty-result behavior, but the fallback disclosure is meaningful context the schema cannot convey.

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 short sentences with zero filler; the default/fallback rule is front-loaded and easy to parse at a glance.

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 values need not be explained, and the description covers purpose plus the default-resolution rule adequately for a three-optional-parameter read tool. The undefined freshness threshold is the one gap that could change which data an agent actually receives.

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 100%, so the three parameters are already documented individually. The description adds the precedence logic among them (active work by default, project-wide as fallback), but the ambiguous term "fresh" is never quantified, so the added meaning is partial rather than a clean lift to 4.

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?

States a concrete verb and resource: "Read recent session summaries." This clearly separates it from the write-oriented sibling append_session_log, though it never names an alternative reader such as get_active_context or read_work_context.

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

Usage Guidelines3/5

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

Usage is only implied by the default-resolution sentence, which tells the agent what happens if it passes nothing but not when to prefer this tool over siblings or project_wide over an explicit work_id. No exclusions or alternatives are given.

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