Skip to main content
Glama

search_notes

Read-only

Case-insensitive search across all notes, reference notes, library pages and the mission page. Every query word must match (title, tags, or body), with light stemming; an exact phrase ranks first. Returns matching slugs with line snippets plus up to 3 agent packets (claim, passages, provenance, confidence, as_of). Prefer packets for injection. SI / RSI also match self-improvement and superintelligence. Queries are kept only in a private usage log (see llms.txt). Optional mode=hybrid combines lexical, BM25 and BGE-small vector search with an empty-result floor; lexical stays the default. Superseded notes are left out unless include_history is 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_notes"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo
queryYes
include_historyNoAlso match superseded notes (default false: current notes only).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / include_history
      Added value: +{
      +  "description": "Also match superseded notes (default false: current notes only).",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / mode
      Added value: +{
      +  "enum": [
      +    "lexical",
      +    "hybrid"
      +  ],
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true and openWorldHint=false; the description adds substantial behavior beyond that: the conjunction rule ('Every query word must match'), light stemming, phrase-first ranking, the exact return shape (slugs, line snippets, up to 3 agent packets with claim/passages/provenance/confidence/as_of), and the alias expansion for SI/RSI. It also discloses a privacy-relevant side effect — queries retained in a private usage log with a pointer to llms.txt — which an agent would not learn from any structured field.

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 purpose and corpus, then matching rules, then return shape, then optional flags — a sensible information hierarchy with no filler sentences. It runs long (seven sentences) and the SI/RSI note and the usage-log aside could be tightened, but each carries real disambiguation value.

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?

With no output schema, the description is responsible for describing returns and does so concretely, down to the packet subfields and the cap of three. All three parameters are explained, the default mode is stated, and history exclusion behavior is covered — an agent has everything needed to call this correctly and interpret results.

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?

Schema coverage is only 33% and neither query nor mode carries an in-schema description, so the description carries the burden and does so well. It explains the matching semantics of query (case-insensitive, all words, stemming, phrase ranking, alias handling) and defines what hybrid actually combines (lexical, BM25, BGE-small vector, empty-result floor) plus the default. include_history's effect is restated consistently with the schema rather than contradicted.

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?

Opens with a specific verb and resource set: 'Case-insensitive search across all notes, reference notes, library pages and the mission page,' which is far more than a restatement of the name. The corpus is enumerated precisely. What's missing is explicit differentiation from siblings like related_notes, ask, or list_notes — the agent must infer that this is the keyword-lookup entry point rather than the semantic-question one.

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?

Gives concrete selection guidance for the two modes ('Optional mode=hybrid... lexical stays the default') and for history scope ('Superseded notes are left out unless include_history is true'). Also directs downstream behavior with 'Prefer packets for injection.' It stops short of saying when to reach for this tool versus ask or related_notes, so the biggest routing question is unanswered.

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