Skip to main content

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.

Tests Dependencies Python License LinkedIn

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)

Linda Oraegbunam | LinkedIn | GitHub

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tool_registry_py-1.0.0.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tool_registry_py-1.0.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

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

Hashes for tool_registry_py-1.0.0.tar.gz
Algorithm Hash digest
SHA256 bc761b9b80abd3d033f8b6d8b9aa4588594774fcbbc3fef8af32d9fd5fea76aa
MD5 716faac6cdfc541e3a2887a8e5f07029
BLAKE2b-256 e00451227de921e38a8996cbacc57d874e9796460e81aecd1e94e205dcfa7c8f

See more details on using hashes here.

Provenance

The following attestation bundles were made for tool_registry_py-1.0.0.tar.gz:

Publisher: publish.yml on obielin/tool-registry

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tool_registry_py-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tool_registry_py-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5eab78642234d2b742e209590cb0fcfa9eb637cd363f32625e3e44815a8cb9f6
MD5 5495acf411f7154a9f6fef22d0beff52
BLAKE2b-256 9b5af8401c8b0cf91a484492153d5eb1ca72b5aab6e6774b700acda8e907c669

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page