> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Tool Registry • AI Agent SDK

> ToolRegistry: Central registry for all tools.

# ToolRegistry

> Defined in the [**registry**](../modules/registry) module.

<Badge color="blue">AI Agent</Badge>

Central registry for all tools.

Provides:

* Tool registration (manual and auto-discovery)
* Tool lookup by name
* Tool listing and filtering
* Entry points discovery for external plugins
* Trust level management for security

```mermaid theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%

graph LR
    agent["Agent"] -- "uses" --> tool["Tool: ToolRegistry"]
    tool -- "returns" --> result["Result"]
    style tool fill:#189AB4,color:#fff
    style agent fill:#8B0000,color:#fff
    style result fill:#8B0000,color:#fff
```

## Methods

<CardGroup cols={2}>
  <Card title="register()" icon="function" href="../functions/ToolRegistry-register">
    Register a tool with the registry.
  </Card>

  <Card title="unregister()" icon="function" href="../functions/ToolRegistry-unregister">
    Remove a tool from the registry.
  </Card>

  <Card title="get()" icon="function" href="../functions/ToolRegistry-get">
    Get a tool by name.
  </Card>

  <Card title="list_tools()" icon="function" href="../functions/ToolRegistry-list_tools">
    List all registered tool names. Thread-safe.
  </Card>

  <Card title="list_base_tools()" icon="function" href="../functions/ToolRegistry-list_base_tools">
    List all registered BaseTool instances. Thread-safe.
  </Card>

  <Card title="get_tool_definitions()" icon="function" href="../functions/ToolRegistry-get_tool_definitions">
    Get OpenAI-compatible tool definitions with dynamic schema overrides applied.
  </Card>

  <Card title="list_available_tools()" icon="function" href="../functions/ToolRegistry-list_available_tools">
    List only currently available tools (those that pass availability checks).
  </Card>

  <Card title="list_tools_with_allowed_filter()" icon="function" href="../functions/ToolRegistry-list_tools_with_allowed_filter">
    List tool names filtered by ALLOWED\_TOOLS environment variable.
  </Card>

  <Card title="get_all()" icon="function" href="../functions/ToolRegistry-get_all">
    Get all registered tools as a dict. Thread-safe.
  </Card>

  <Card title="discover_plugins()" icon="function" href="../functions/ToolRegistry-discover_plugins">
    Discover and register tools from entry\_points.
  </Card>

  <Card title="discover_single_file_plugins()" icon="function" href="../functions/ToolRegistry-discover_single_file_plugins">
    Discover and load tools from single-file plugins.
  </Card>

  <Card title="get_trust_level()" icon="function" href="../functions/ToolRegistry-get_trust_level">
    Get the trust level for a tool.
  </Card>

  <Card title="clear()" icon="function" href="../functions/ToolRegistry-clear">
    Clear all registered tools. Thread-safe.
  </Card>
</CardGroup>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/tools/registry.py#L92">
  `praisonaiagents/tools/registry.py` at line 92
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Tools Concept" icon="wrench" href="/docs/docs/concepts/tools" />

  <Card title="Create Custom Tools" icon="plus" href="/docs/docs/guides/tools/create-custom-tools" />

  <Card title="Tool Development" icon="code" href="/docs/docs/tutorials/advanced-tool-development" />
</CardGroup>
