Skip to main content

How to Configure Tools

๐Ÿ”ง Tools ยท ๐Ÿ“‹ Prompt

The tools provider gives the agent callable tools โ€” functions the LLM can invoke during the conversation loop. Each tool source contributes a set of related tools. You control which sources are active and how they behave.

List and Enable Tool Sourcesโ€‹

za agents capabilities tool-sets list
za agents capabilities tool-sets configure <source-name>

Configure Provider Settingsโ€‹

za agents capabilities tool-sets settings

Tool Sourcesโ€‹

SourceCLI nameDescription
Index Toolsindex-toolsSearch, browse, and inspect any Zeta Alpha index
Tag Toolstag-toolsList, search within, create, and manage user tags
Document Toolsdocument-toolsRead, locate, and retrieve metadata for individual documents
User Document Toolsuser-document-toolsSearch and list the user's own uploaded documents
Web Toolsweb-toolsFetch and browse content from the web (optional extra web_tools)
Image Toolsimage-toolsValidate images against retrieved document pages
DataFrame Toolsdataframe-toolsLoad, analyze, and visualize tabular data (CSV/Excel) (optional extra dataframe_tools)
SQL Database Toolssql-database-toolsExplore and query SQL databases (optional extra sql_tools)
Platform Docsplatform-docsBrowse and read Zeta Alpha platform documentation
Sub-Agentsub-agentSpawn isolated sub-agents for parallel work

Index Toolsโ€‹

Search, browse, and inspect any Zeta Alpha index.

za agents capabilities tool-sets configure index-tools

Toolsโ€‹

ToolDescription
searchSearch the knowledge base for documents matching a query, ranked by relevance
browseList documents by criteria with sorting โ€” for exploring, not relevance-ranked
get_filter_optionsDiscover available filter fields and their values for the current index
get_document_fieldsDiscover metadata fields available on documents by inspecting a sample
get_index_configurationRetrieve index configuration: filters, sort options, sources, and indexes

Configurationโ€‹

SettingTypeDefaultDescription
fe_base_urlstr"https://search.zeta-alpha.com"Frontend base URL for building source links
page_sizeint10Results per search page
browse_page_sizeint20Results per browse page
default_retrieval_unit"document" | "chunk""chunk"Return precise passages or full documents
default_retrieval_method"knn" | "keyword" | "mixed""mixed"Semantic search, keyword matching, or hybrid
default_collapse_keystr or nullnullGroup results by this field (deduplication)
descriptionstr""Tell the agent what it's searching over
description_fieldstr"custom_metadata.metadata.abstract"Field path for document descriptions
metadata_fieldslist[str]["...title", "...source", "...created"]Metadata fields to extract from hits
known_filterslist[FilterHint][]Pre-defined filter hints (field_path, description, values, example_values)
sort_field_mappingdict[str, str]{"date": "date", ...}Map user-friendly sort names to backend field names

Describe Your Knowledge Baseโ€‹

The most important settings for search quality are description and known_filters. Write description as you would describe the collection to a new researcher:

description (str) []: R&D papers from arXiv and top ML/AI conference venues (NeurIPS, ICML, ICLR), covering 2000โ€“2026.

For known_filters, provide a JSON array:

known_filters (List[FilterHint]) [[]]: [{"field": "source", "description": "Publication venue"}, {"field": "year", "description": "Publication year"}]

Auto-Generate with the Index Explorerโ€‹

Instead of writing the configuration by hand, use the Index Explorer โ€” an instruction source that gives the agent a methodology to autonomously probe your document collection and generate a ready-to-use configuration.

Step 1: Enable the Index Explorer instruction source:

za agents capabilities instruction-sources configure index-explorer

Step 2: Start the development UI and tell the agent:

za agents dev

Run the Index Explorer

The agent will inspect the index structure, discover facets, run targeted searches, and output a complete configuration you can paste into your index-tools settings.

tip

After the Index Explorer generates the configuration, you can disable it โ€” it's only needed during setup.


Tag Toolsโ€‹

List, search within, create, and manage user tags (collections/folders of documents).

za agents capabilities tool-sets configure tag-tools

Toolsโ€‹

ToolDescription
list_user_tagsList all tags the user has access to (own or shared)
list_documents_in_tagList documents in a tag with pagination and metadata
search_in_tagSearch for documents within a specific tag (semantic + keyword, scoped)
tag_documentAdd a document to a tag
untag_documentRemove a document from a tag
create_tagCreate a new personal tag with name and optional description

Configurationโ€‹

SettingTypeDefaultDescription
max_documents_per_pageint20Max documents per page when listing tag contents

Document Toolsโ€‹

Read, locate, and retrieve metadata for individual documents by ID or fuzzy name.

za agents capabilities tool-sets configure document-tools

Toolsโ€‹

ToolDescription
read_documentRead the full content of a document by its document ID
locate_documentFind a document by fuzzy title, URL, or file name
retrieve_metadataGet structured metadata for a list of documents by their IDs

Configurationโ€‹

SettingTypeDefaultDescription
page_sizeint10Number of results for locate_document keyword search

User Document Toolsโ€‹

Search and list the user's own uploaded documents.

za agents capabilities tool-sets configure user-document-tools

Toolsโ€‹

ToolDescription
search_my_documentsSearch the user's private uploaded documents by content relevance
list_my_documentsList the user's uploaded documents with pagination and metadata previews

Configurationโ€‹

SettingTypeDefaultDescription
list_page_sizeint20Default page size for listing user documents

Web Toolsโ€‹

Fetch and browse content from the web.

Optional extra

Install with pip install zetaalpha.agents[web_tools].

za agents capabilities tool-sets configure web-tools

Toolsโ€‹

ToolDescription
web_fetchFetch a web page and return its content as clean text/markdown
web_searchSearch the web using a federated search engine (only available if federated indexes exist)

Configurationโ€‹

SettingTypeDefaultDescription
output_markdownbooltrueReturn content as markdown instead of plain text
max_content_charsint or nullnullTruncate fetched content to this many characters
timeout_secondsfloat30.0Timeout for each fetch request
cache_max_sizeint50Maximum number of cached responses
cache_ttl_secondsfloat900.0Cache entry TTL in seconds
upgrade_to_httpsbooltrueUpgrade http:// URLs to https://
blocked_hostnameslist[str] or nullnullAdditional hostnames to block from crawling

Image Toolsโ€‹

Validate images against retrieved document pages using a multimodal LLM.

za agents capabilities tool-sets configure image-tools

Toolsโ€‹

ToolDescription
validate_image_hitVisually compare a user-uploaded image against a rendered PDF page using a multimodal LLM

Configurationโ€‹

SettingTypeDefaultDescription
validation_promptstr(built-in Jinja template)LLM prompt template for visual comparison
render_dpiint96DPI for rendering PDF pages to images

DataFrame Toolsโ€‹

Load, analyze, and visualize tabular data from CSV/Excel files.

Optional extra

Install with pip install zetaalpha.agents[dataframe_tools].

za agents capabilities tool-sets configure dataframe-tools

Toolsโ€‹

ToolDescription
load_dataframeLoad a CSV/Excel document into a named DataFrame
get_dataframe_schemaView column names, types, and sample values
preview_dataframePreview the first few rows
read_dataframeRead rows with pagination
count_dataframe_rowsCount total rows
get_column_valuesGet unique/top values of a specific column
get_column_statisticsGet descriptive statistics for a numeric column
get_missing_value_countsCount missing/null values per column
filter_dataframe_rowsFilter rows using conditions (eq, neq, gt, lt, in, contains, etc.)
sort_dataframe_rowsSort by a column
aggregate_columnSum, mean, min, max, count with optional group-by
merge_dataframesSQL-style join of two DataFrames
concatenate_dataframesConcatenate multiple DataFrames vertically
create_basic_plotBar, line, or scatter charts
create_multi_series_plotPlots with multiple Y-series overlaid
create_distribution_plotHistogram or box plots
create_time_series_plotTime-series line plots with date parsing
create_correlation_heatmapCorrelation heatmap for numeric columns

No additional configuration beyond enabled.


SQL Database Toolsโ€‹

Explore schemas and query SQL databases โ€” filter, sort, aggregate, join, and insert without writing raw SQL.

Optional extra

Install with pip install zetaalpha.agents[sql_tools]. For databases other than PostgreSQL, install the appropriate SQLAlchemy dialect driver.

za agents capabilities tool-sets configure sql-database-tools

Toolsโ€‹

ToolDescription
sql_list_tablesList accessible tables
sql_get_table_schemaGet column names and types for a table
sql_preview_dataPreview the first few rows of a table
sql_read_dataRead rows with pagination
sql_count_rowsCount total rows
sql_get_row_by_pkGet a single row by primary key
sql_select_columnsSelect specific columns (deferred plan)
sql_get_column_valuesGet distinct values of a column
sql_filter_table_rowsFilter rows using conditions (deferred plan)
sql_sort_table_rowsSort rows (deferred plan)
sql_aggregate_columnSum, mean, min, max, count with optional group-by (deferred plan)
sql_join_tablesJoin two tables/plans on shared columns (deferred plan)
sql_insert_rowInsert a single row

Tools that produce intermediate results return a named reference for subsequent operations (e.g., filter โ†’ aggregate โ†’ sort โ†’ read).

Configurationโ€‹

SettingTypeDefaultDescription
connection_stringstr"" (required)SQLAlchemy connection string
allowed_schemaslist[str] or nullnull (all)Restrict access to these schemas
allowed_tableslist[str] or nullnull (all)Restrict to these tables (schema.table)
max_rows_per_queryint10000Maximum rows returned per read
query_timeout_secondsint30Query timeout in seconds
Security

Always use allowed_schemas and/or allowed_tables to restrict access. Use a read-only database user when the agent only needs to query.


Platform Documentation Toolsโ€‹

Browse and read the Zeta Alpha platform documentation, giving the agent self-knowledge about the platform.

za agents capabilities tool-sets configure platform-docs

Toolsโ€‹

ToolDescription
list_platform_doc_pagesList all available documentation pages from the sitemap
read_platform_docRead a documentation page and return its content as text

Configurationโ€‹

SettingTypeDefaultDescription
docs_base_urlstr"https://docs.zeta-alpha.com"Base URL of the documentation site
sitemap_pathstr"/sitemap.xml"Path to the sitemap XML
max_content_charsint or nullnullTruncate fetched page content
cache_max_sizeint50Maximum cached pages
cache_ttl_secondsfloat900.0Cache TTL for fetched pages
sitemap_cache_ttl_secondsfloat3600.0Cache TTL for the parsed sitemap
timeout_secondsfloat30.0HTTP request timeout
tip

Pair with the Platform Docs instruction source for a complete self-knowledge setup โ€” instructions tell the agent what the platform can do, tools let it look up how.


Sub-Agentโ€‹

Spawn isolated sub-agents to perform focused, parallel work.

za agents capabilities tool-sets configure sub-agent

Toolsโ€‹

ToolDescription
taskLaunch an isolated sub-agent with a prompt and description for a focused unit of work

Configurationโ€‹

SettingTypeDefaultDescription
verbosebooltrueInclude detailed behavioral guidance in tool description
include_in_promptbooltrueInject delegation instructions into the system prompt
extra_instructionsstr or nullnullAppend additional delegation guidance
tool_descriptionstr or nullnullFully replace the default tool description

Sub-agents run in isolated context โ€” they receive only the task prompt, not the parent conversation. Recursive delegation is blocked. Protected parameters (tenant, auth headers, index configuration) are carried through automatically.

Looking for named agent delegation?

The delegate tool (routing to named specialized agents) comes from the delegation provider, not the sub-agent tool source. See Configuring Delegation.