Skip to main content
Glama

Search notes

search_notes
Read-onlyIdempotent

Searches the linked account's notes with combined keyword, tag and topic, resource and creation-date filters. Returns bounded previews with source authorship and a Linko URL for each note, for citation; get_note returns full content. Dates use the supplied IANA timezone. Ranked search has a fixed 20-result window, reported by limited and count_is_exact. Exact item IDs disambiguate names. It suits notes with filters (tag, topic, resource, dates, note type); for saved resources, search_resources is the tool, and search is the simple one-query form for both kinds.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_notes"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoResults per page, 1 to 20 (default 10).
orderNorelevance (the default) ranks by match to keyword; recent lists the newest first; oldest lists the oldest first.relevance
offsetNoResults to skip, 0 to 100000 (default 0); a page reports next_offset, the value for the following page.
keywordNoWords to find in note titles and text, at most 300 characters. Omitted, notes are listed by the other filters.
days_agoNoOnly notes created in the last N days, 1 to 36500. It is not combined with start_date and end_date.
end_dateNoLast day of the date range (inclusive), YYYY-MM-DD; start_date is required with it.
timezoneNoIANA timezone name for date filters and returned times, such as UTC (the default), Europe/London or America/New_York.UTC
note_typeNoOnly notes of this type, the type Linko shows on each note: insight, excerpt (text quoted from a source), idea, todo (a to-do item) or log (a journal entry).
start_dateNoFirst day of a date range, YYYY-MM-DD, in timezone. end_date is required with it, and days_ago is not combined with it.
subject_idNoExact tag or topic ID from list_tags_and_topics or an earlier result; it settles a name that matches several tags or topics.
resource_idNoExact ID of a saved resource, from search_resources; only notes linked to it are returned.
subject_nameNoName of a tag or topic in the user's library; only items carrying it are returned. list_tags_and_topics lists the names. An unknown name is an error that names it.
resource_nameNoTitle of a resource saved in the user's library; only notes linked to it are returned. An unknown title is an error that names it.
user_questionNoThe user's question as they asked it, at most 1000 characters. It helps rank the matching notes for this search only and is not saved.
alternative_queriesNoUp to 4 other phrasings of keyword (synonyms, another language), each at most 300 characters, searched alongside it to find more matching notes. They are used only for this search and are not saved.
exclude_ai_generatedNotrue leaves out notes written by AI tools, keeping notes in the user's own words (default false).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed38 schema fields changed
    • changedInput schema / properties / alternative_queries / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "description": "One alternative phrasing.",
      +      "maxLength": 300,
      +      "type": "string"
      +    },
      +    "maxItems": 4,
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / alternative_queries / description
      Added value: +"Up to 4 other phrasings of keyword (synonyms, another language), each at most 300 characters, searched alongside it to find more matching notes. They are used only for this search and are not saved."
    • changedInput schema / properties / days_ago / anyOf
      Previous value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maximum": 36500,
      +    "minimum": 1,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / days_ago / description
      Added value: +"Only notes created in the last N days, 1 to 36500. It is not combined with start_date and end_date."
    • changedInput schema / properties / end_date / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "format": "date",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / end_date / description
      Added value: +"Last day of the date range (inclusive), YYYY-MM-DD; start_date is required with it."
    • removedInput schema / properties / exclude_ai_generated / anyOf
      Removed value: -[
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "type": "string"
      -  }
      -]
    • addedInput schema / properties / exclude_ai_generated / description
      Added value: +"true leaves out notes written by AI tools, keeping notes in the user's own words (default false)."
    • addedInput schema / properties / exclude_ai_generated / type
      Added value: +"boolean"
    • changedInput schema / properties / keyword / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 300,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / keyword / description
      Added value: +"Words to find in note titles and text, at most 300 characters. Omitted, notes are listed by the other filters."
    • removedInput schema / properties / limit / anyOf
      Removed value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "string"
      -  }
      -]
    • addedInput schema / properties / limit / description
      Added value: +"Results per page, 1 to 20 (default 10)."
    • addedInput schema / properties / limit / maximum
      Added value: +20
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • addedInput schema / properties / limit / type
      Added value: +"integer"
    • changedInput schema / properties / note_type / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "enum": [
      +      "insight",
      +      "excerpt",
      +      "idea",
      +      "todo",
      +      "log"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / note_type / description
      Added value: +"Only notes of this type, the type Linko shows on each note: insight, excerpt (text quoted from a source), idea, todo (a to-do item) or log (a journal entry)."
    • removedInput schema / properties / offset / anyOf
      Removed value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "string"
      -  }
      -]
    • addedInput schema / properties / offset / description
      Added value: +"Results to skip, 0 to 100000 (default 0); a page reports next_offset, the value for the following page."
    • addedInput schema / properties / offset / maximum
      Added value: +100000
    • addedInput schema / properties / offset / minimum
      Added value: +0
    • addedInput schema / properties / offset / type
      Added value: +"integer"
    • addedInput schema / properties / order / description
      Added value: +"relevance (the default) ranks by match to keyword; recent lists the newest first; oldest lists the oldest first."
    • changedInput schema / properties / resource_id / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 1024,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / resource_id / description
      Added value: +"Exact ID of a saved resource, from search_resources; only notes linked to it are returned."
    • changedInput schema / properties / resource_name / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 300,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / resource_name / description
      Added value: +"Title of a resource saved in the user's library; only notes linked to it are returned. An unknown title is an error that names it."
    • changedInput schema / properties / start_date / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "format": "date",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / start_date / description
      Added value: +"First day of a date range, YYYY-MM-DD, in timezone. end_date is required with it, and days_ago is not combined with it."
    • changedInput schema / properties / subject_id / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 1024,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / subject_id / description
      Added value: +"Exact tag or topic ID from list_tags_and_topics or an earlier result; it settles a name that matches several tags or topics."
    • changedInput schema / properties / subject_name / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 300,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / subject_name / description
      Added value: +"Name of a tag or topic in the user's library; only items carrying it are returned. list_tags_and_topics lists the names. An unknown name is an error that names it."
    • addedInput schema / properties / timezone / description
      Added value: +"IANA timezone name for date filters and returned times, such as UTC (the default), Europe/London or America/New_York."
    • addedInput schema / properties / timezone / maxLength
      Added value: +80
    • changedInput schema / properties / user_question / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 1000,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / user_question / description
      Added value: +"The user's question as they asked it, at most 1000 characters. It helps rank the matching notes for this search only and is not saved."
  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 and closed-world, so the safety bar is covered. The description adds genuinely non-obvious behavior: bounded previews with source authorship and a Linko URL for citation, a fixed 20-result window on ranked search surfaced via `limited` and `count_is_exact`, and that dates are interpreted in the supplied IANA timezone. It does not discuss error paths (unknown tag/resource name) beyond the schema, which keeps it from a 5.

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 purpose then return shape then routing, which is the right order for an agent. Minor redundancy: the closing 'It suits notes with filters (tag, topic, resource, dates, note type)' restates the filter list already given in the first sentence, and 'search is the simple one-query form for both kinds' is compressed enough to be slightly ambiguous.

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?

For a 16-parameter tool with an output schema and full annotation coverage, the description supplies everything an agent needs to choose and call it: scope, filter axes, return granularity, result-window limits, and sibling routing. Return-value details are correctly delegated to the output schema rather than duplicated.

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 100%, so the baseline is 3; the description earns above that by explaining the inter-parameter relationship that individual schema fields do not state ('Exact item IDs disambiguate names', i.e. subject_id/resource_id vs subject_name/resource_name). It also reinforces the timezone and combined-filter semantics, though it leaves pagination (offset/next_offset) and the alternative_queries/user_question ranking hints entirely to the schema.

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 linked account's notes') plus the exact filter axes it combines (keyword, tag/topic, resource, creation date). It explicitly separates itself from three siblings: get_note for full content, search_resources for saved resources, and search as the simple one-query form.

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 a positive selection rule ('suits notes with filters (tag, topic, resource, dates, note type)') and names the alternatives with the conditions that select them ('for saved resources, search_resources is the tool', 'search is the simple one-query form'). Nothing about routing is left to inference.

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