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)
Metadata
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 | Provenance | Actions |
|---|---|---|---|---|
| tool_registry_py-1.0.0.tar.gz | 7.0 kB | With provenance | Details for tool_registry_py-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tool_registry_py-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for tool_registry_py-1.0.0-py3-none-any.whl |
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 logSecurity for tool-registry-py 1.0.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 tool_registry_py-1.0.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 Apr 12, 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.