Skip to main content
Glama

Find sessions

anam_session_search
Read-onlyIdempotent

Find calls by date, persona and what was said. Without text, returns a compact list of sessions, newest first. With text, also reads the transcripts of up to 25 of the newest matching sessions and returns those that mention it, with snippets; narrow the date range to search further back. With sessionId, reads that session’s whole transcript instead, 50 messages at a time (limit, up to 100): pass the returned nextOffset as offset until it is null.

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": "anam_session_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoSessions created before this date or date-time.
fromNoSessions created at or after this ISO 8601 date or date-time, such as 2026-11-01.
textNoWords to look for in transcripts (not case sensitive).
limitNoThe most sessions to list (default 20), or to scan with `text` (at most 25); with `sessionId`, the most messages (default 50).
offsetNoWith `sessionId`: the previous page’s `nextOffset`.
personaIdNo
sessionIdNoA session `id` whose transcript to read.

Output Schema

NameRequiredDescriptionDefault
noteNo
totalNo
scannedNo
messagesNo
sessionsNo
nextOffsetNo
totalInRangeNo
resultTrimmedNo
totalMessagesNo
transcriptsEnabledNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare this a read-only, idempotent, non-destructive operation, so the bar is lower; the description still adds real behavior: newest-first ordering, a 25-session transcript-scan ceiling, page size of 50 messages with a max of 100, and the `nextOffset`-until-null pagination loop. It does not say whether the transcript scan is truncated for a reason other than cost, but the operational constraints are disclosed.

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?

Three sentences organized by mode (default, `text`, `sessionId`), each front-loading the parameter that selects it. No restatement of the tool name and no filler; even the parenthetical limits carry unique information.

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 7-parameter, all-optional search tool with an output schema, the description covers what an agent needs to choose a mode, bound the search, and paginate correctly. Return-value detail is correctly left to the output schema, and the one risky behavior (only the 25 newest matches are scanned) is called out.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 86%, so the baseline is 3, and the description earns above that by explaining how parameters pair: `limit` means listed sessions, or sessions scanned with `text`, or messages with `sessionId`, and `offset` only applies with `sessionId` and takes the prior `nextOffset`. That cross-parameter meaning is not evident from the per-field schema descriptions alone.

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?

Opens with a specific verb and resource ('Find calls by date, persona and what was said') and then enumerates three distinct operating modes keyed on `text` and `sessionId`. It does not name the adjacent siblings (anam_session_list, anam_session_get, anam_session_transcript_get), so the agent must infer the boundary from mode descriptions rather than an explicit contrast.

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?

Gives explicit mode-selection guidance: no `text` for a compact list, `text` for transcript search, `sessionId` for a full single transcript. It also includes a tactical hint ('narrow the date range to search further back') that tells the agent how to work around the 25-session scan cap. Missing is any statement about when to prefer a sibling like anam_session_list or anam_session_transcript_get instead.

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.

Resources