Documentation Search Tools#

Use the search_* tools to search OneTick documentation by topic or natural language question. Each tool covers a different documentation set; pass a query string and get back the most relevant passages.

See Documentation search examples for sample questions these tools answer.

Tool descriptions#

MCP Tool

When to use

search_python-docs

Search the onetick-py library API reference. Use when looking up classes, methods, parameters, or return types, and for how to install onetick-py and write, run, or execute a query in Python (otp.run, WebAPI).

search_python-examples

Search additional worked onetick-py examples. Use to find a working example close to a specific task; secondary to search_python-docs on any conflict.

search_cloud_coverage

Search OneTick Cloud coverage and platform reference. Use when checking which datasets, asset classes, venues, and markets are available, their tables (including derived datasets and feature sets), field enumerations, trading hours and holidays, available symbologies, and the methodology behind fields, feature sets, and continuous contracts. For exact trading hours, holidays, or table schemas of a specific database, prefer the dedicated reference data tools.

search_sql-docs

Search OneTick SQL documentation. Use when constructing SQL queries or looking up SQL syntax, built-in functions, and worked example queries (order-book depth, as-of joins, continuous contracts, TCA), and for how to access, connect to, and run or execute a SQL query (REST, Python, Arrow Flight), including installation and authentication.

Data source#

Each search_* tool is backed by a named collection — a document set indexed from a documentation source. The product is preconfigured for the published OneTick sources, but a self-hosted deployment must clone those repositories and build the collections as described in Download documentation sources. Collections are stored in PostgreSQL; they are not bundled with the package. For custom deployments, additional collections can be added — see Custom Search Tools.

MCP Tool

Collection name

Content

search_python-docs

python-docs

onetick-py library API docs

search_python-examples

python-examples

Practical usage examples

search_cloud_coverage

cloud

OneTick Cloud coverage docs

search_sql-docs

sql-docs

OneTick SQL documentation

The active set of collections is controlled by the ONETICK_DB_COLLECTIONS setting — see Active collections.

Active collections#

The ONETICK_DB_COLLECTIONS setting controls which search_* tools are registered. The default corresponds to the OneTick documentation sources indexed during the quickstart:

ONETICK_DB_COLLECTIONS='["python-docs","python-examples","cloud","sql-docs"]'

To disable individual tools, start from the default and remove the collections you don’t need. For example, to disable sql-docs:

ONETICK_DB_COLLECTIONS='["python-docs","python-examples","cloud"]'

If you also set ONETICK_DB_TOOLS, a search tool must be in both settings to be served. Naming a search tool in ONETICK_DB_TOOLS when its collection is missing from ONETICK_DB_COLLECTIONS stops the server at startup with an unknown tool error. See Enabling and disabling tools.

To add your own documentation sources, see Custom Search Tools.