tool-registry
Typed tool catalogue for LLM agents. Register, discover, validate, and export tools to Anthropic/OpenAI format. Zero dependencies.
Install
pip install tool-registry
Quick start
from tool_registry import ToolRegistry
registry = ToolRegistry()
@registry.register(tags=["search", "web"])
def web_search(query: str, max_results: int = 5) -> str:
"""Search the web for information.
Args:
query: The search query to execute.
max_results: Maximum number of results to return.
"""
...
# Export to Anthropic format — ready for client.messages.create()
tools = registry.to_anthropic()
# Export to OpenAI format
tools = registry.to_openai()
# Discover by capability
search_tools = registry.find("search")
web_tools = registry.by_tag("web")
# Call a tool
result = registry.call("web_search", query="UK AI regulation 2026")
Auto-inferred from your function signature:
- Parameter types (
str,int,float,bool,list,dict) - Required vs optional (based on defaults)
- Descriptions (from docstring Args section)
Release files for tool-registry-py 1.0.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 | |
|---|---|---|---|
| tool_registry_py-1.0.0.tar.gz | 7.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tool_registry_py-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.2 kB
Release files / tool_registry_py-1.0.0.tar.gz
| Download URL | tool_registry_py-1.0.0.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bc761b9b80abd3d033f8b6d8b9aa4588594774fcbbc3fef8af32d9fd5fea76aa
|
|
BLAKE2b-256 checksum How to use checksums |
e00451227de921e38a8996cbacc57d874e9796460e81aecd1e94e205dcfa7c8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Apr 12, 2026.
Transparency logRelease files / tool_registry_py-1.0.0-py3-none-any.whl
| Download URL | tool_registry_py-1.0.0-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5eab78642234d2b742e209590cb0fcfa9eb637cd363f32625e3e44815a8cb9f6
|
|
BLAKE2b-256 checksum How to use checksums |
9b5af8401c8b0cf91a484492153d5eb1ca72b5aab6e6774b700acda8e907c669
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Apr 12, 2026.
Transparency log