ToolRegistry
English Version | 中文版
A protocol-agnostic tool management library for function-calling LLMs.
Ecosystem
| Package | Description | PyPI | TestPyPI | Docs |
|---|---|---|---|---|
| toolregistry | Core library — tool registration, schema generation, execution | Docs | ||
| toolregistry-server | Server adapters — expose tools via OpenAPI & MCP | Docs | ||
| toolregistry-hub | Ready-to-use tools — calculator, web search, file ops, etc. | Docs |
toolregistry (core)
↓
toolregistry-server (tool server)
↓
toolregistry-hub (tool collection + server config)
Features
- Protocol-agnostic — register tools from native Python functions/classes, MCP servers, OpenAPI specs, or LangChain tools through a unified interface
- Multi-provider schemas — generate tool schemas for OpenAI, Anthropic, and Gemini via llm-rosetta
- Concurrent execution — thread and process pool backends with per-tool timeout and concurrency control
- Permission system — tag-based policies (
READ_ONLY,DESTRUCTIVE,NETWORK, etc.) with allow/deny/ask rules - Tool metadata & tags — classify tools with
ToolTag,ToolMetadata, namespace support, and source tracking - Admin panel — built-in Web UI for monitoring tools, permissions, and runtime config (i18n: EN/ZH)
- Think-augmented calling — inject chain-of-thought reasoning into tool calls (arXiv:2601.18282)
- Declarative config — load tool sources from JSONC/YAML config files
- Zero-dependency core — HTTP client, YAML parser, JSON Schema resolver all vendored; only
pydanticandllm-rosettaas runtime deps
Quick Start
from toolregistry import ToolRegistry
registry = ToolRegistry()
@registry.register
def add(a: float, b: float) -> float:
"""Add two numbers together."""
return a + b
# Use with any LLM provider
schemas = registry.get_schemas(api_format="openai-chat") # or "anthropic", "gemini"
result = registry["add"](1, 2) # 3.0
See the Usage Guide for MCP, OpenAPI, LangChain integrations and more.
Installation
Requires Python >= 3.10.
pip install toolregistry # core
pip install toolregistry[mcp] # + MCP support
pip install langchain-core # optional: langchain BaseTool classes
pip install toolregistry-hub # ready-to-use tools (separate package)
Citation
@software{toolregistry2025,
title={ToolRegistry: A Protocol-Agnostic Tool Management Library for OpenAI-Compatible LLM Applications},
author={Peng Ding},
year={2025},
url={https://github.com/Oaklight/ToolRegistry},
note={A Python library for unified tool registration, execution, and management across multiple protocols in OpenAI-compatible LLM applications}
}
@article{ding2025toolregistry,
title={Toolregistry: A protocol-agnostic tool management library for function-calling llms},
author={Ding, Peng and Stevens, Rick},
journal={arXiv preprint arXiv:2507.10593},
year={2025}
}
License
MIT — see LICENSE for details.
Metadata
Release files for toolregistry 0.21.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| toolregistry-0.21.0.tar.gz | 632.0 kB | With provenance | Details for toolregistry-0.21.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| toolregistry-0.21.0-py3-none-any.whl | Python 3 | none | any | Details for toolregistry-0.21.0-py3-none-any.whl |
Total release size: 1.1 MB
Release files / toolregistry-0.21.0.tar.gz
| Download URL | toolregistry-0.21.0.tar.gz |
|---|---|
| Size | 632.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
16b6640ce01944cdf639a9db366d0d6947e4f94ee600d549aae2989feef3ce87
|
|
BLAKE2b-256 checksum How to use checksums |
f105fa4b1b2ab7f56cbff0a3dc9a2b691a139c599ede7a91799dcbf39b59ed50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.
Transparency logRelease files / toolregistry-0.21.0-py3-none-any.whl
| Download URL | toolregistry-0.21.0-py3-none-any.whl |
|---|---|
| Size | 453.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d306ff168271cf9175298644d05a595178f86a4a8338a969b79d9bfcfdcdeaa5
|
|
BLAKE2b-256 checksum How to use checksums |
60ee2d353378c301b6b99840be5d010c315cf52d039bf0e83f9523726241b292
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.
Transparency logSecurity for toolregistry 0.21.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for toolregistry-0.21.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.