Skip to main content
Glama

Search a list

search_items
Read-onlyIdempotent

Full-text search (BM25) over the values of a list's searching indexes, best first, 10 a page by default. A list without a searching index always finds nothing. filters, alias and tagged narrow the items searched, as in list_items (e.g. { "starts": "after:2026-12-03" } for upcoming events only); tags themselves aren't searched. total and pages are null from an API too old to report them. 1 request.

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": {
      "list": "<list>",
      "query": "<query>"
    },
    "name": "search_items"
  }
}

Input Schema

NameRequiredDescriptionDefault
listYesThe list: its id or pathName
pageNoThe page, from 1
aliasNoOnly search items whose alias value contains this
limitNoResults per page (1-100)
queryYesWhat to search for: 3-100 characters, at most 5 terms
taggedNoOnly those with these tags: every element must match (AND), and an element can list alternatives separated by commas (OR), e.g. ["game", "draft,review"]
filtersNoOnly search items matching these filtering indexes, by pathName, with the same values as list_items, e.g. { "starts": "after:2026-12-03", "category": "eq:music" }
identityIdNoOnly search items owned by this identity
includeDataNoAlso return each item's data
includeItemsNoReturn each item's metadata, not just its id

Output Schema

NameRequiredDescriptionDefault
pageYes
limitYes
pagesYes
totalYes
resultsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / identityId
      Added value: +{
      +  "description": "Only search items owned by this identity",
      +  "type": "string"
      +}
  2. Changed10 schema fields changed
    • addedInput schema / properties / alias
      Added value: +{
      +  "description": "Only search items whose alias value contains this",
      +  "type": "string"
      +}
    • addedInput schema / properties / filters
      Added value: +{
      +  "additionalProperties": {
      +    "type": "string"
      +  },
      +  "description": "Only search items matching these filtering indexes, by pathName, with the same values as list_items, e.g. { \"starts\": \"after:2026-12-03\", \"category\": \"eq:music\" }",
      +  "type": "object"
      +}
    • addedInput schema / properties / limit
      Added value: +{
      +  "default": 10,
      +  "description": "Results per page (1-100)",
      +  "maximum": 100,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / page
      Added value: +{
      +  "default": 1,
      +  "description": "The page, from 1",
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / tagged
      Added value: +{
      +  "description": "Only those with these tags: every element must match (AND), and an element can list alternatives separated by commas (OR), e.g. [\"game\", \"draft,review\"]",
      +  "items": {
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / limit
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / page
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / pages
      Added value: +{
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / total
      Added value: +{
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "results"
      -]New value: +[
      +  "results",
      +  "page",
      +  "limit",
      +  "total",
      +  "pages"
      +]
  3. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive behavior, and the description goes beyond them with result ordering, default page size, the null total/pages degradation on older APIs, the '1 request' cost note, and the caveat that tags themselves aren't searched. It stops short of describing error or empty-query behavior, so it is strong rather than exhaustive.

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 core action and ranking, then progressively narrower details. Sentences are packed with semicolons and parentheticals, which makes it dense to parse, but nearly every clause carries non-obvious information such as the null total/pages case.

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-shape explanation is rightly omitted, and the description covers ranking, pagination defaults, filtering semantics, and degraded-API behavior. What remains thin is error handling for malformed queries and whether results are stable across pages.

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 a 3 is the baseline, but the description adds real meaning: filters/alias/tagged narrow the search rather than replacing the query, and tags are matched on items but never full-text searched. The example filter object also clarifies how filters compose with the query.

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: full-text BM25 search over a list's searching indexes, returned best-first. It is distinguishable from siblings both by naming list_items as the analogous filtering tool and by the 'searching index' prerequisite, which no other tool in the set owns.

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 a clear precondition ('A list without a searching index always finds nothing') and explains which parameters narrow the searched set. It skips an explicit 'use list_items instead when you want all items' contrast, leaving the alternative only as an analogy for filter syntax rather than a routing rule.

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