Skip to main content
Glama

Search Chat History

search_chat_history
Read-only

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of sessions to return (default 20, max 50).
keywordNoSearch term to match against session title and summary (case-insensitive). Leave empty to browse recent sessions.
on_behalf_ofNoAn agency client's email, from list_agency_clients, to run this call in that client's account: their agents, settings, connected accounts, and credits. Omit it to act on your own account.
created_afterNoOnly return sessions created after this date (ISO format, e.g. '2026-01-15').
created_beforeNoOnly return sessions created before this date (ISO format, e.g. '2026-03-01').

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / on_behalf_of
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "An agency client's email, from list_agency_clients, to run this call in that client's account: their agents, settings, connected accounts, and credits. Omit it to act on your own account."
      +}
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

readOnlyHint=true already tells the agent this is a non-mutating read. The description adds the return shape (count + sessions array with id/title/summary/dates/message_count), which is genuinely useful. Beyond that it discloses nothing further — no pagination behavior, no ordering guarantee, no note that keyword searches only title and summary rather than message bodies, which is a meaningful limitation an agent would want.

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

Conciseness4/5

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

Front-loaded with the core purpose and scoped by XML-style tags for returns. The usage sentence is slightly padded ('something they talked about before' restates 'previous conversations'), but overall it is short and earns most of its length.

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?

There is no output schema, and the description compensates by describing the returned dict's fields, so an agent knows what to expect. Combined with a fully documented input schema and a readOnly annotation, the definition is usable, with the only real gap being the scope of the keyword match and result ordering.

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% and every parameter (limit, keyword, on_behalf_of, created_after, created_before) is documented in the schema, including the default/max on limit and the ISO date format. The description mentions no parameters, so the schema carries the whole load — the baseline 3 for a fully covered schema 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 gives a specific verb and resource — 'search past chat sessions from the user's conversation history' — and states what comes back (sessions with titles, summaries, dates), which implicitly separates it from the message-level sibling get_chat_messages. However, it never names that sibling explicitly, so the distinction still requires inference.

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 clear trigger conditions: 'when the user asks about previous conversations, past discussions, or wants to find something they talked about before.' That is concrete context for invocation. It stops short of naming when NOT to use it or pointing to an alternative such as get_chat_messages for retrieving the contents of a specific session.

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