> ## 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.

# Refresh Tools • AI Agent SDK

> refresh_tools: Re-derive the live toolset from ``self.tools``.

# refresh\_tools

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**Agent**](../classes/Agent) class in the [**agent**](../modules/agent) module.

Re-derive the live toolset from `self.tools`.

Per-turn tool assembly already reads from `self.tools` directly, so
tools added/removed via `add_mcp_server`/`remove_mcp_server` are
picked up automatically on the next turn. This method clears any cached
tool definitions so callers (or an MCP `tools/list_changed` event) can
force an immediate refresh, and returns the current toolset.

```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: refresh_tools"]
    tool -- "returns" --> result["Result"]
    style tool fill:#189AB4,color:#fff
    style agent fill:#8B0000,color:#fff
    style result fill:#8B0000,color:#fff
```

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def refresh_tools() -> List[Any]
```

### Returns

<ResponseField name="Returns" type="List[Any]">
  The current list of tools/MCP instances on the agent.
</ResponseField>

## Used By

* [`Agent.add_mcp_server`](../functions/Agent-add_mcp_server)
* [`Agent.remove_mcp_server`](../functions/Agent-remove_mcp_server)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/agent/agent.py#L4944">
  `praisonaiagents/agent/agent.py` at line 4944
</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>
