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

# Get Tools For Task • AI Agents Framework

> get_tools_for_task: Analyze a task description and return appropriate tools.

# get\_tools\_for\_task

<div className="flex items-center gap-2">
  <Badge color="teal">Function</Badge>
</div>

> This function is defined in the [**auto**](../modules/auto) module.

Analyze a task description and return appropriate tools.

```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: get_tools_for_task"]
    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 get_tools_for_task(task_description: str) -> List[str]
```

## Parameters

<ParamField query="task_description" type="str" required={true}>
  The task to analyze
</ParamField>

### Returns

<ResponseField name="Returns" type="List[str]">
  List of tool names appropriate for the task
</ResponseField>

## Uses

* `matched_categories.add`
* `seen.add`

## Used By

* [`AutoGenerator.discover_tools_for_topic`](../functions/AutoGenerator-discover_tools_for_topic)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai/praisonai/auto.py#L366">
  `praisonai/auto.py` at line 366
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Tasks Concept" icon="list-check" href="/docs/concepts/tasks" />

  <Card title="Task Configuration" icon="gear" href="/docs/configuration/task-config" />

  <Card title="Task Validation" icon="check-double" href="/docs/features/task-validation-feedback" />

  <Card title="Tools Concept" icon="wrench" href="/docs/concepts/tools" />

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