Skip to content

Search Data - search_data

Mode: Both · Category: Data Retrieval

Searches for record instances using keyword matching or semantic search. The LLM always provides the search query and keywords at runtime.

Minimal (keyword mode with defaults)

- id: search_data

Keyword mode with custom limit

- id: search_data  
  instance_limit: 10

Semantic mode with vector store

- id: search_data  
  unique_id: vendor_search  
  description: Semantic search over vendor records.  
  search_mode: semantic  
  instance_limit: 10  
  vector_store_id: my-vector-store-ref  
  similarity_threshold: 0.7  
  return_row_attributes:  
    - id: VENDOR.VENDOR_NAME  
    - id: VENDOR.VENDOR_COUNTRY  
  filter:  
    pql_template:  
      pql: 'FILTER "VENDOR"."ACTIVE" = 1'  
      name: Active Vendors Only

Config fields

mcp-tools-add-search-data.png
FieldTypeDescription
search_modestringEither "keyword" (default) or "semantic".
instance_limitintMax results per keyword/query (default: 5, max: 20).
vector_store_idstringVector store reference for semantic search.
similarity_thresholdfloatMinimum similarity score for results (default: 0.0).
return_row_attributeslistAttributes to include in result rows.
filterobjectPre-filter applied before searching (filter ID or PQL template).