Tools#
The MCP server exposes several tools. Every tool — the documentation-search tools, the
reference-data tools, the symbol-universe tool and any
custom tools — is enabled or disabled by its own tool name.
All tools are enabled by default; use the ONETICK_DB_TOOLS environment variable to restrict
which are loaded.
Available tools#
Tool names |
Family |
Data source |
|---|---|---|
|
Documentation search |
Vector-indexed docs (pgvector) |
|
Reference data |
Flat text files in |
|
OneTick queries (bundled) |
Live OneTick queries |
your custom tools — see Custom Tools |
Custom |
Anything a Python function returns (CSV, OneTick query, computed) |
See Documentation Search Tools, OneTick Data Tools, and Reference Data Tools for a description of each individual tool and when to use it.
Enabling and disabling tools#
Set ONETICK_DB_TOOLS to a comma-separated list of tool names. Leave it unset to serve every tool.
Each tool — a
search_*documentation tool, a reference-data tool,search_symbol_universe, another bundled query tool, or a custom tool — is enabled by its own name.To disable a tool, leave its name out of the list (name all the tools you do want).
A name that is not a valid tool stops the server at startup.
The documentation-search tools also depend on which collections are active; see Active collections.
For example, if you do not have OneTick WebAPI credentials, serve only the tools that do not need
them — the documentation-search and reference-data tools — by naming each and leaving out
search_symbol_universe and the other OneTick-query tools:
ONETICK_DB_TOOLS=search_python-docs,search_python-examples,search_cloud_coverage,search_sql-docs,list_databases,db_tables,db_table_schemas,db_field_descriptions,db_field_enumerations,calendar_holidays,trading_hours
You can add the OneTick-query tools later once credentials are available. See OneTick WebAPI authentication for the full auth configuration.
Bringing your own data#
The pre-configured tools reflect a OneTick Cloud setup. Both the documentation search index and the reference data can be replaced or extended for other deployments:
Documentation search — register additional collections (document sets) that are indexed and exposed as new
search_*tools alongside the preconfigured ones. See Custom Search Tools.Custom tools — add your own tool: a Python function that returns a table (from a CSV, a OneTick query, or a computation). See Custom Tools.
Reference data — use your own CSV files instead of the published OneTick Cloud coverage files by pointing
ONETICK_DB_CSV_DATA_PATHat your own directory. See Reference Data Tools.