Skip to main content
Glama

dialog_search

Read-only

Search ingested Claude Code transcripts with semantic, keyword, or hybrid matching to retrieve relevant dialogue hits and bounded context windows.

Instructions

Search ingested Claude Code transcripts.

mode='hybrid' (default) combines semantic and FTS5 keyword via RRF. mode='semantic' is pure cosine. mode='fts' is pure FTS5 keyword. Returns unchanged text, structured hits, and bounded dialog-window links.

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

Input Schema

NameRequiredDescriptionDefault
kNo
modeNohybrid
roleNo
queryYes
cross_projectNo

Output Schema

NameRequiredDescriptionDefault
hitsNo
textYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.22.0
    • addedOutput schema / $defs
      Added value: +{
      +  "SearchHit": {
      +    "description": "Compact provenance and optional exact-evidence references.",
      +    "properties": {
      +      "created_at": {
      +        "title": "Created At",
      +        "type": "integer"
      +      },
      +      "id": {
      +        "title": "Id",
      +        "type": "string"
      +      },
      +      "kind": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Kind"
      +      },
      +      "matched_by": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "title": "Matched By",
      +        "type": "array"
      +      },
      +      "memory_scope": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Memory Scope"
      +      },
      +      "project_id": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Project Id"
      +      },
      +      "resource_uri": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Resource Uri"
      +      },
      +      "role": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Role"
      +      },
      +      "score": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Score"
      +      },
      +      "session_id": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Session Id"
      +      },
      +      "snippet": {
      +        "title": "Snippet",
      +        "type": "string"
      +      },
      +      "source": {
      +        "title": "Source",
      +        "type": "string"
      +      },
      +      "thread_id": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Thread Id"
      +      },
      +      "thread_uri": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Thread Uri"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "source",
      +      "snippet",
      +      "created_at"
      +    ],
      +    "title": "SearchHit",
      +    "type": "object"
      +  }
      +}
    • addedOutput schema / description
      Added value: +"Legacy search text plus progressive evidence-loading metadata."
    • addedOutput schema / properties / hits
      Added value: +{
      +  "items": {
      +    "$ref": "#/$defs/SearchHit"
      +  },
      +  "title": "Hits",
      +  "type": "array"
      +}
    • removedOutput schema / properties / result
      Removed value: -{
      -  "title": "Result",
      -  "type": "string"
      -}
    • addedOutput schema / properties / text
      Added value: +{
      +  "title": "Text",
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "result"
      -]New value: +[
      +  "text"
      +]
    • changedOutput schema / title
      Previous value: -"dialog_searchOutput"New value: +"SearchResults"
  2. Changed1 schema field changedv0.19.1
    • addedInput schema / properties / cross_project
      Added value: +{
      +  "default": false,
      +  "title": "Cross Project",
      +  "type": "boolean"
      +}
  3. First observedv0.13.2

TDQS

B3.4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true, so the description carries the rest: it discloses the RRF fusion mechanism, the cosine/FTS5 alternatives, and the return shape (unchanged text, structured hits, bounded dialog-window links). That is meaningful behavioral context beyond the annotations, though it says nothing about result limits, latency, or empty-result behavior.

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?

Four short lines, front-loaded with the purpose and then the mode semantics; nothing is padding. The telegraphic style ('pure cosine', 'bounded dialog-window links') is slightly compressed but still parses cleanly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, the return-shape sentence is a bonus rather than a necessity, and readOnlyHint covers safety. The real gap is the three undocumented parameters on a 5-parameter tool, which leaves it only minimally sufficient for correct invocation.

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

Parameters2/5

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

Schema description coverage is 0%, so all five parameters rest on the description. It explains `mode` well with its three values and default, but `k`, `role`, and `cross_project` are never mentioned — an agent must infer that `k` is result count and that `role` filters by speaker.

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 resource ('Search ingested Claude Code transcripts'), which is unambiguous on its own. However, it never distinguishes itself from the sibling tools named `search` and `search_via_parent`, so an agent must guess which search surface applies.

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?

The mode breakdown ('hybrid' default vs semantic vs fts) is genuinely useful guidance for choosing the retrieval strategy, and the default is called out explicitly. But there is no guidance on when to use this tool versus the other search siblings, nor any note on prerequisites (e.g., transcripts must have been ingested first).

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