> For the complete documentation index, see [llms.txt](https://indie-4.gitbook.io/function-calling-for-unity/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://indie-4.gitbook.io/function-calling-for-unity/tool-attribute.md).

# Tool Attribute

The Tool attribute is used to define a tool, providing its name and description.

When implementing a tool, import the Indie.Attributes and use the Tool Attribute.&#x20;

```csharp
using Indie.Attributes;
```

The Tool attribute has 2 parameters:

* The Function's Name
* The Description Of The Function

```csharp
[Tool("MyMethod", "Description of the function.")]
public void MyMethod()
{
    // Method implementation
}
```

The name and the description will help the model make informed decisions on which function to call after receiving input.&#x20;
