Typed tool catalogue for LLM agents. Register, discover, validate, and export tools to Anthropic/OpenAI format. Zero dependencies.
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tool_registry_py-1.0.0.tar.gz.
File metadata
- Download URL: tool_registry_py-1.0.0.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc761b9b80abd3d033f8b6d8b9aa4588594774fcbbc3fef8af32d9fd5fea76aa
|
|
| MD5 |
716faac6cdfc541e3a2887a8e5f07029
|
|
| BLAKE2b-256 |
e00451227de921e38a8996cbacc57d874e9796460e81aecd1e94e205dcfa7c8f
|
Provenance
The following attestation bundles were made for tool_registry_py-1.0.0.tar.gz:
Publisher:
publish.yml on obielin/tool-registry
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tool_registry_py-1.0.0.tar.gz -
Subject digest:
bc761b9b80abd3d033f8b6d8b9aa4588594774fcbbc3fef8af32d9fd5fea76aa - Sigstore transparency entry: 1281912272
- Sigstore integration time:
-
Permalink:
obielin/tool-registry@dfec6abe9cccb07b6f4d5015052da36c1d553017 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/obielin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@dfec6abe9cccb07b6f4d5015052da36c1d553017 -
Trigger Event:
release
-
Statement type:
File details
Details for the file tool_registry_py-1.0.0-py3-none-any.whl.
File metadata
- Download URL: tool_registry_py-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5eab78642234d2b742e209590cb0fcfa9eb637cd363f32625e3e44815a8cb9f6
|
|
| MD5 |
5495acf411f7154a9f6fef22d0beff52
|
|
| BLAKE2b-256 |
9b5af8401c8b0cf91a484492153d5eb1ca72b5aab6e6774b700acda8e907c669
|
Provenance
The following attestation bundles were made for tool_registry_py-1.0.0-py3-none-any.whl:
Publisher:
publish.yml on obielin/tool-registry
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tool_registry_py-1.0.0-py3-none-any.whl -
Subject digest:
5eab78642234d2b742e209590cb0fcfa9eb637cd363f32625e3e44815a8cb9f6 - Sigstore transparency entry: 1281912364
- Sigstore integration time:
-
Permalink:
obielin/tool-registry@dfec6abe9cccb07b6f4d5015052da36c1d553017 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/obielin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@dfec6abe9cccb07b6f4d5015052da36c1d553017 -
Trigger Event:
release
-
Statement type: