Skip to main content
Glama

Search spaces

search
Read-onlyIdempotent

Search the notes, tasks, documentation and files of all your spaces.

Use it when you do not know where a piece of information is stored. In a known space, list_notes or list_tasks with query are enough. All words required (stop words ignored), ignoring accents and word forms; results by relevance, the title counting more than the text (for a file: its name and description). Done tasks are included, archived items are not. A note, task or file is read by its id (get_note, get_task, get_file), a documentation by space and name (get_document). Pass next_cursor as cursor for the next page.

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
limitNo
queryYesSearch words, all required (8 at most).
cursorNo

Output Schema

NameRequiredDescriptionDefault
itemsYes
next_cursorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / query / description
      Previous value: -"Mots cherchés, tous requis (8 au plus)."New value: +"Search words, all required (8 at most)."
    • changedOutput schema / $defs / SearchHitOut / properties / excerpt / description
      Previous value: -"Début du texte, sans balisage, sur une ligne (200 caractères au plus)."New value: +"Beginning of the text, without markup, on one line (200 characters at most)."
    • changedOutput schema / $defs / SearchHitOut / properties / id / description
      Previous value: -"Note, tâche ou fichier : à passer à get_note, get_task ou get_file."New value: +"Note, task or file: to pass to get_note, get_task or get_file."
    • changedOutput schema / $defs / SearchHitOut / properties / name / description
      Previous value: -"Documentation : à passer à get_document avec `space`."New value: +"Documentation: to pass to get_document with `space`."
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile is covered. The description goes well beyond them by disclosing matching rules (all words required, stop words, accents, word forms), relevance ranking with title weighting, and inclusion of done tasks but exclusion of archived items. Only the result count/limit behavior is left unstated.

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-loads the purpose, then usage, then matching semantics, then follow-up reads, then pagination — a logical progression with no filler sentences. Dense but every line carries operational information.

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?

An output schema exists, so return values need not be explained, and the description still adds the ranking model and how to resolve an id (get_note/get_task/get_file) versus a document (get_document → space + name). The only missing piece is what `limit` controls and its ceiling.

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

Parameters4/5

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

Schema coverage is 33%, so the description must carry weight, and it does for `query` (all words required, stop words ignored, accent/word-form folding) and for `cursor` (pass the returned `next_cursor` to get the next page). The `limit` parameter is never mentioned, leaving one gap.

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?

Names a specific verb (search) plus the exact resource set (notes, tasks, documentation, files) and the scope (all spaces). It also distinguishes itself from list_notes/list_tasks, so an agent can separate it from siblings without opening a 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?

Gives an explicit rule: use it when you don't know where information is stored, and states that list_notes or list_tasks with `query` suffice inside a known space. That is a clean when/when-not with a named alternative.

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