Skip to main content
Glama

search_documents

Search for documents across a knowledge base using keywords or phrases. Perform full-text searches to locate information, filter results by collection, and retrieve relevant content snippets for quick reference.

Instructions

    Searches for documents using keywords or phrases across your knowledge 
    base.
    
    IMPORTANT: The search performs full-text search across all document 
    content and titles. Results are ranked by relevance, with exact 
    matches 
    and title matches typically ranked higher. The search will return 
    snippets of content (context) where the search terms appear in the 
    document. You can limit the search to a specific collection by 
    providing 
    the collection_id.
    
    Use this tool when you need to:
    - Find documents containing specific terms or topics
    - Locate information across multiple documents
    - Search within a specific collection using collection_id
    - Discover content based on keywords
    
    Args:
        query: Search terms (e.g., "vacation policy" or "project plan")
        collection_id: Optional collection to limit the search to
        
    Returns:
        Formatted string containing search results with document titles 
        and 
        contexts
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
collection_idNo
queryYes

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Vortiago/mcp-outline'

If you have feedback or need assistance with the MCP directory API, please join our Discord server