Overview
Tool Name:ago_parameterized_search
This tool allows agents to execute targeted knowledge base searches with filters and parameters, enabling more precise document retrieval than standard semantic search.
Key Features
- Dynamic query parameters
- Filter by metadata fields
- Source-specific searches
- Date range filtering
- Tag-based filtering
- Structured result formatting
When to Use
Use parameterized search when:Configuration
Create Parameterized Search Tool
To create a parameterized search tool:- Navigate to AI Studio → Tools
- Click Create Tool
- Select Parameterized Search as the tool type
- Configure the basic settings:
- Name: Internal identifier (e.g., “product_search”)
- Display Name: User-facing name (e.g., “Search Products”)
- Description: What this tool does
- Prompt: When the agent should use this tool
- Configure search settings:
- Sources: Select knowledge sources to search
- Max Results: Maximum number of results to return
- Define the Input Schema with filter parameters:
query(str): Search query textcategory(enum): Filter by categoryprice_range(enum): Filter by price range
- Click Save
- Assign the tool to your agent
Configuration Fields
Input Schema
The parameterized search tool does not define a fixed input schema. Instead, filter parameters are configured dynamically when you create the tool via the Input Schema field. Define whatever parameters make sense for your search use case — the agent will populate them from the conversation.Example Schema
A documentation search tool might define these input parameters:All filter parameters are defined per-tool at configuration time. The agent passes them as tool arguments, and they are matched against document metadata during search.
UI Resource Rendering
You can optionally link a UI Resource template to the tool by setting theui_resource_name field in the tool’s additional configuration. When set, search results are rendered using the linked template instead of plain text.
Search Behavior
Query Processing
Filter Types
Response Format
Standard Response
Examples
Category-Based Search
Date-Filtered Search
Multi-Source Search
Best Practices
Query Design
- Focused queries: Keep search terms specific
- Meaningful filters: Only add filters that improve results
- Sensible defaults: Provide default values for optional parameters
- Clear descriptions: Help agents understand when to use each filter
Performance
- Limit results: Don’t retrieve more than needed
- Use source restrictions: Narrow search scope when possible
- Enable reranking: For better relevance on broad queries
- Cache common queries: For frequently asked questions
User Experience
- Explain filters: Tell users what filters were applied
- Show count: Indicate total available results
- Provide alternatives: Suggest broader search if no results
Troubleshooting
Issue: No results returned
Issue: No results returned
Problem: Search returns empty results.Solutions:
- Check if filters are too restrictive
- Verify source IDs are correct
- Try broader query terms
- Check if content exists in knowledge base
Issue: Irrelevant results
Issue: Irrelevant results
Problem: Results don’t match user intent.Solutions:
- Add more specific filters
- Enable reranker
- Improve query extraction in prompt
- Adjust score threshold
Issue: Slow search performance
Issue: Slow search performance
Problem: Searches take too long.Solutions:
- Reduce
max_results - Restrict to specific sources
- Simplify filter combinations
- Check index health
API Reference
See Public API v1 Reference for tool management endpoints.Related Documentation
- Tools Description Guide - Best practices for tool descriptions
- Tools Overview - Tool configuration
- Knowledge Source Management - Knowledge setup
- AI Debugger - Debug search results
