Skip to main content
Glama

search

Read-only

Search current-project notes and shared memory to recall context, with optional cross-project search that marks scope and logs audit events.

Instructions

Search current-project notes plus global/shared memory.

Set cross_project=True only for an intentional cross-project recall; output marks every result's scope and an audit event is recorded. Returns unchanged text plus structured hits and short-lived evidence 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": "search"
  }
}

Input Schema

NameRequiredDescriptionDefault
kNo
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: -"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

A3.7/5.0
Behavior4/5

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

readOnlyHint=true already establishes the safety profile, so the description isn't burdened by that. It adds genuinely non-obvious behavior: cross-project calls mark every result's scope and record an audit event, and the response includes short-lived evidence links. That audit and link-ephemerality context is not derivable from the annotations or schema and materially affects how an agent should treat cross_project.

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?

Three short sentences with scope front-loaded and no filler. The cross-project caution follows immediately, which is the right ordering. Minor redundancy in restating the return payload that the output schema already covers, but it is one clause, not a paragraph.

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?

With an output schema present and readOnlyHint set, the remaining burden is light and mostly met: scope of search, cross-project consequence, and evidence-link lifetime are all covered. The gaps are the undocumented 'k' parameter and the absence of sibling disambiguation, neither catastrophic for a general search tool.

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 0%, so the description must carry parameter meaning, and it only partially does. It explains cross_project's intent and its side effects well, but 'k' (default 5) is never explained as result count or limits, and query semantics are left entirely implicit. Two of three parameters remain undocumented anywhere.

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 states a concrete verb and resource with scope explicitly: 'Search current-project notes plus global/shared memory.' That is far more specific than the bare name 'search'. However, it never distinguishes itself from adjacent search tools in the sibling list (dialog_search, search_via_parent, capability_search), so an agent must infer which of several search surfaces to pick.

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 only usage guidance is parameter-level: 'Set cross_project=True only for an intentional cross-project recall,' which usefully implies the default should stay scoped. There is no statement of when to prefer this tool over dialog_search or search_via_parent, and no explicit when-not conditions. Usage is implied rather than directed.

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