Skip to main content
Glama

search

Read-onlyIdempotent

Find earlier coding-agent sessions by full-text query to recover past decisions, fixes, and context from Claude Code, Codex CLI, Pi, or JSONL logs.

Instructions

Full-text search over past coding-agent sessions (Claude Code, Codex CLI, Pi and any configured JSONL logs) on this machine. Use it when the user refers to earlier work ("last time", "what did we decide about X", "how did we fix Y") or before asking them for context they probably gave in another session.

Every word must appear (case-insensitive substring; "deploy" also finds "deployment"). Use 2-4 distinctive words such as names, file names or error text; "quote phrases". Each hit has a cite (pass it to read) and a source locator (file and line range).

Args: query: words to find. harness: claude | codex | pi | jsonl:. project: substring of the session's working directory or title. role: user | assistant | system. after: ISO date/time; only messages at or after it. before: ISO date/time; only messages before it. limit: maximum hits (default 10, max 100).

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

Input Schema

NameRequiredDescriptionDefault
roleNo
afterNo
limitNo
queryYes
beforeNo
harnessNo
projectNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered; the description adds the matching semantics that annotations cannot convey — case-insensitive substring with prefix-style matching ('deploy' finds 'deployment'), plus the shape of each hit (`cite` and a file/line `source` locator). It stops short of describing result ordering or relevance ranking, which would matter for interpreting the `limit` cap.

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?

Front-loaded with purpose and usage triggers, then matching rules, then a compact `Args:` block — no filler sentences. The parenthetical examples (names, file names, error text, quoted phrases) each teach a distinct query tactic rather than restating the parameter list.

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 read tool with no output schema, the description covers every parameter, the result shape, and the downstream handoff to `read`. Nothing an agent needs to invoke it correctly or interpret a hit is missing.

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

Parameters5/5

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

With 0% schema description coverage, the description carries the full burden and does so thoroughly: it enumerates harness values (claude | codex | pi | jsonl:<name>), explains that `project` matches working directory or title substrings, lists role values, specifies ISO format for `after`/`before`, and gives the `limit` default (10) and maximum (100). It also advises 2-4 distinctive terms and quoted phrases, which is query-construction guidance absent from the schema entirely.

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?

States a specific verb and resource with scope: 'Full-text search over past coding-agent sessions ... on this machine', and names the concrete sources indexed (Claude Code, Codex CLI, Pi, JSONL logs). It also implicitly separates itself from the sibling 'read' by noting each hit carries a `cite` to pass there.

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

Usage Guidelines5/5

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

Gives concrete use triggers ('last time', 'what did we decide about X', 'how did we fix Y') and a proactive condition: search before asking the user for context they likely supplied in another session. It also routes full-content retrieval to `read` via the `cite` pointer, so the agent knows the division of labor between the two tools.

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

Deploy Server

Other Tools