Skip to main content
Glama
agy-session-search

agy-session-search

by ctx-o1

search_sessions

Find and filter past Antigravity chat sessions, transcripts, and markdown artifacts by keyword, phrase, prefix, project, date, or role to recover earlier decisions and debugging context.

Instructions

Full-text BM25 search across local Google Antigravity chat sessions, transcripts, and markdown artifacts. Supports keywords, "exact phrases", prefix*, and project/date/role filters. Excludes noisy tool outputs by default unless include_tools=true.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "search_sessions"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleNoRestrict search to a specific role. Defaults to 'all' (user + assistant + artifact).
limitNoMaximum number of search hits to return (default: 10, max: 50).
queryYesSearch query (supports keywords, "exact phrases", prefix*, and OR).
sinceNoISO date or timestamp lower bound (e.g. '2026-11-01').
untilNoISO date or timestamp upper bound.
projectNoOptional project name or workspace path substring filter (e.g. 'fernsearch').
surfaceNoFilter by Antigravity surface: 'app' (desktop/IDE) or 'cli' (agy).
include_toolsNoInclude raw tool outputs in 'all' search (default: false).
exclude_sessionNoSession ID to exclude from results (e.g. current conversation ID).
include_thinkingNoInclude model thinking summaries in 'all' search (default: false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full disclosure burden. It usefully reveals that results are BM25-relevance ranked, scoped to local data, and that noisy tool outputs are filtered by default unless include_tools=true — but that last point largely restates the schema's include_tools description, and nothing is said about result ordering guarantees or pagination.

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 short sentences, front-loaded with the core verb and corpus, then query syntax, then the default-filter caveat. Every clause adds information and nothing is redundant padding.

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?

Covers the corpus, query language, and default filtering behavior, which is the essential operational context for a 10-parameter search tool with no annotations. Since there is no output schema, the absence of any description of what a hit contains (session ID, snippet, ranking) is a modest gap, but the query-side guidance is sufficient to invoke it correctly.

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% with detailed per-parameter descriptions including enums and defaults, so the schema does the heavy lifting. The description only echoes that project/date/role filters and include_tools exist, adding no syntax or format detail (e.g. how since/until or project substrings match) beyond the schema.

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 specific verb and mechanism ("Full-text BM25 search") over a precisely scoped resource set ("local Google Antigravity chat sessions, transcripts, and markdown artifacts"). The search framing distinguishes it from list_sessions/read_session/read_artifact by implication, though no sibling is named explicitly.

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 implied by describing query capabilities (keywords, exact phrases, prefix*, filters) and the default exclusion of tool noise, which tells an agent this is a query tool rather than a listing tool. However, there is no explicit statement of when to prefer this over list_sessions or read_session, and no exclusion guidance beyond the include_tools toggle.

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