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

# Get Assistant Tool

Retrieves detailed information about a specific assistant tool using the Rapida API.

> [!NOTE]
>
> For more authentication options, see: [https://doc.rapida.ai/api-reference/authentication](https://doc.rapida.ai/api-reference/authentication.md)

### Parameters

**connectionConfig** `ConnectionConfig` *required*

Configuration for the client connection.

**request** `GetAssistantToolRequest` *required*

**id** `uint64` *required*

The unique identifier of the assistant tool to retrieve.

**assistantId** `uint64` *required*

The unique identifier of the assistant that owns the tool.

### Usage

```python Python theme={null}
from rapida import (
    ConnectionConfig,
    GetAssistantToolRequest,
    get_assistant_tool,
)
from pprint import pprint
connection_config = ConnectionConfig.default_connection_config(
    ConnectionConfig.with_sdk("{rapida-api-key}")
)
response = get_assistant_tool(
    client_cfg=connection_config,
    request=GetAssistantToolRequest(
        id="{assistant_tool_id}", assistantId="{assistant_id}"
    ),
)
pprint(response)

```

```go Go theme={null}

import (
	"context"
	"fmt"
	"os"

	clients "github.com/rapidaai/rapida-go/rapida/clients"
	rapida_proto "github.com/rapidaai/rapida-go/rapida/clients/protos"
	connections "github.com/rapidaai/rapida-go/rapida/connections"
)

func main() {
	// Configure client connection using RAPIDA_PROJECT_CREDENTIAL environment variable
	connectionConfig := connections.
		DefaultconnectionConfig(connections.WithSDK(os.Getenv("RAPIDA_PROJECT_CREDENTIAL")))

	// Retrieve assistant tool information
	response, err := clients.GetAssistantTool(context.Background(), connectionConfig, &rapida_proto.GetAssistantToolRequest{
		AssistantId: 3456789876541212,
		Id:          567898765456788765,
	})

	if err != nil {
		fmt.Printf("Error while making call using rapida: %+v\n", err)
		return
	}

	// Print the response
	fmt.Printf("Rapida calling response: %+v\n", response)
}
```

```typescript NodeJs theme={null}
import {
  ConnectionConfig,
  GetAssistantTool,
  GetAssistantToolRequest,
} from "@rapidaai/nodejs";

(async () => {
  const connectionCfg = ConnectionConfig.DefaultConnectionConfig(
    ConnectionConfig.WithSDK({
      ApiKey: process.env.RAPIDA_PROJECT_CREDENTIAL,
    })
  );
  getAssistantTool(connectionCfg, 45678903456789);
})();


async function getAssistantTool(connectionCfg, assistantId, toolId) {
  const request = new GetAssistantToolRequest();
  request.setAssistantId(assistantId);
  request.setId(toolId);

  try {
    const response = await GetAssistantTool(connectionCfg, request);
    console.log("Assistant Tool Response:", response.toObject());
  } catch (error) {
    console.error("Error with GetAssistantTool call:", error);
  }
}

```

### Response

**code** `int32`

Numeric status code for the operation.

**success** `boolean`

Indicates whether the operation was successful.

**data** `AssistantTool`

Detailed information about the assistant tool.

**id** `uint64`

Unique identifier for the assistant tool.

**assistantId** `uint64`

Identifier of the assistant that owns this tool.

**name** `string`

Name of the assistant tool.

**description** `string`

Description of the tool's functionality.

**fields** `Struct`

Tool fields configuration as a structured object.

**executionMethod** `string`

Method used for tool execution.

**executionOptions** `Metadata[]`

Array of execution configuration options.

**id** `uint64`

Unique identifier for the metadata entry.

**key** `string`

The option key name.

**value** `string`

The option value.

**status** `string`

Current status of the tool.

**createdDate** `timestamp`

Timestamp when the tool was created.

**updatedDate** `timestamp`

Timestamp when the tool was last updated.

**error** `object`

Error information, if applicable.

**errorCode** `uint64`

Numeric error code.

**errorMessage** `string`

Detailed error message.

**humanMessage** `string`

Human-readable error message.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.