Skip to main content
Glama

Search Library

search_library
Read-onlyIdempotent

Searches the library by keyword and meaning using hybrid search (FTS5 + Vectorize). Matches saved articles, personal notes, and notes imported from Google Keep, Evernote (ENEX), Mem or Markdown exports. Returns item-level items with snippets. Query is treated as plain text (no field filter syntax); use tag or tags_* arguments for filtering. For passage-level citations with snapshot URLs, use search_passages instead. For an exact title or url lookup, use find_item instead (no search, no embeddings).

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

Input Schema

NameRequiredDescriptionDefault
tagNoFilter results by a specific tag.
modeNohybrid
tagsNoFilter by multiple tags (AND).
limitNoMax results to return.
queryYesSearch query terms or semantic question. Treated as plain text (no field filter syntax); use tag or tags_* arguments for filtering.
cursorNoOpaque cursor for pagination (alt. to offset).
fieldsNoProjection: fields to include in response.
offsetNoPagination offset.
tags_allNoOnly items carrying ALL of these tags. Child tags linked via parent count ('/' is disallowed in tag names).
tags_anyNoOnly items carrying ANY of these tags. Child tags linked via parent count ('/' is disallowed in tag names).
untaggedNoOnly items without any tag.
tags_noneNoExclude items carrying any of these tags. Child tags linked via parent count ('/' is disallowed in tag names).
read_stateNoOnly items in this read state.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / tags_all / description
      Previous value: -"Only items carrying ALL of these tags. Child tags count: 'work' also matches 'work/research'."New value: +"Only items carrying ALL of these tags. Child tags linked via parent count ('/' is disallowed in tag names)."
    • changedInput schema / properties / tags_any / description
      Previous value: -"Only items carrying ANY of these tags. Child tags count: 'work' also matches 'work/research'."New value: +"Only items carrying ANY of these tags. Child tags linked via parent count ('/' is disallowed in tag names)."
    • changedInput schema / properties / tags_none / description
      Previous value: -"Exclude items carrying any of these tags. Child tags count."New value: +"Exclude items carrying any of these tags. Child tags linked via parent count ('/' is disallowed in tag names)."
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so safety is covered; the description adds that results are item-level with snippets, which tells the agent what shape of answer to expect. It stops short of explaining how the three modes differ in practice or how cursor/offset pagination behaves, which would matter for 13-parameter paging.

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 sentences, front-loaded with what the tool does, then filtering guidance, then two alternative tools — no filler. The plain-text/no-field-syntax note is repeated almost verbatim from the query parameter description, which is a small redundancy, but the ordering and density are otherwise tight.

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?

For a 13-parameter read tool with no output schema and 92% schema coverage, the description supplies the missing essentials: what content is searched, that results are item-level with snippets, that the query is not a filter language, and which sibling to use instead. The main residual gap is the absence of guidance on choosing among hybrid/keyword/semantic modes.

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 92%, so the baseline is 3 and the description mostly reiterates what the schema already says about plain-text query handling and using tag/tags_* for filtering. It adds no meaning for the 'mode' enum values, limit bounds, or the cursor-vs-offset tradeoff, leaving the schema to carry the weight.

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 ('Searches the library') and adds the mechanism (hybrid search, FTS5 + Vectorize) plus the content scope (articles, notes, imported notes from Keep/Evernote/Mem/Markdown). It explicitly distinguishes itself from search_passages (passage-level citations) and find_item (exact title/url), so an agent can separate the three without opening any schema.

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?

Names two alternatives with the exact conditions that select them: passage-level citations with snapshot URLs go to search_passages, exact title/url lookups go to find_item. It also states an in-tool routing rule — the query is plain text, so tag/tags_* arguments are the way to filter — which prevents a common misuse.

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.