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

# Tools

Galadriel framework comes with a set of tools out of the box. New tools are regularly added to the framework.

## Web3 Tools

Here is the list of market data API available as tools in the framework:

### [Coingecko](https://github.com/galadriel-ai/galadriel/blob/main/galadriel/tools/web3/market_data/coingecko.py)

Current provided set of tools related with Coingecko:

* [`GetCoinPriceTool`](/galadriel-network/reference/web3_tools#getcoinpricetool): Retrieves the current price, market cap, 24hr volume, and 24hr change for a given cryptocurrency.
* [`GetCoinMarketDataTool`](/galadriel-network/reference/web3_tools#getcoinmarketdatatool): Retrieves market data for a given cryptocurrency.
* [`GetCoinHistoricalDataTool`](/galadriel-network/reference/web3_tools#getcoinhistoricaldatatool): Retrieves historical market data for a given cryptocurrency.
* [`FetchMarketDataPerCategoriesTool`](/galadriel-network/reference/web3_tools#fetchmarketdatapercategoriestool): Retrieves market data for cryptocurrencies in specific categories.
* [`FetchTrendingCoinsTool`](/galadriel-network/reference/web3_tools#fetchtrendingcoinstool): Retrieves the current trending coins on CoinGecko.

### [Dexscreener](https://github.com/galadriel-ai/galadriel/blob/main/galadriel/tools/web3/market_data/dexscreener.py)

Tools for interacting with the Dexscreener API to retrieve token information and market data.

* [`GetTokenDataTool`](/galadriel-network/reference/web3_tools#gettokendatatool): Retrieves and formats token data from the DexScreener API.

### [Devnet mock](https://github.com/galadriel-ai/galadriel/blob/main/galadriel/tools/web3/market_data/market_data_devnet.py)

Tools for interacting with the Dexscreener API to retrieve token information and market data.

* [`fetch_mock_market_data`](/galadriel-network/reference/web3_tools#fetch-mock-market-data): Fetches mocked market data for the Solana Devnet.

### [Jupiter](https://github.com/galadriel-ai/galadriel/blob/main/galadriel/tools/web3/onchain/solana/jupiter.py)

Tool for swapping tokens on the Solana blockchain using the Jupiter Aggregator:

* [`SwapTokenTool`](/galadriel-network/reference/web3_tools#swaptokentool): This tool allows an agent to swap one token for another.

### [Solana](https://github.com/galadriel-ai/galadriel/tree/main/galadriel/tools/web3/onchain/solana)

Set of tools for managing user token balances on the Solana blockchain

* [`GetUserBalanceTool`](/galadriel-network/reference/web3_tools#getuserbalancetool): Updates the balance of a specific token for a given user.
* [`GetAdminWalletAddressTool`](/galadriel-network/reference/web3_tools#getadminwalletaddresstool): Retrieves the wallet address of the admin.
* [`BuyTokenWithSolTool (Raydium CPMM)`](/galadriel-network/reference/web3_tools#buytokenwithsoltool-raydium-cpmm): Tool for buying tokens using SOL on Raydium CPMM.
* [`SellTokenForSolTool (Raydium CPMM)`](/galadriel-network/reference/web3_tools#selltokenforsoltool-raydium-cpmm): Tool for selling tokens for SOL using Raydium CPMM.
* [`BuyTokenWithSolTool (Raydium AMM V4)`](/galadriel-network/reference/web3_tools#buytokenwithsoltool-raydium-amm-v4): Tool for buying tokens using SOL on Raydium AMM V4.
* [`SellTokenForSolTool (Raydium AMM V4)`](/galadriel-network/reference/web3_tools#selltokenforsoltool-raydium-amm-v4): Tool for selling tokens for SOL using Raydium AMM V4.

## Composio Tools

[Composio](/galadriel-network/reference/utility_tools#composio-converter-tools) is a service for connecting AI Agents to hundreds external tools like  Gmail, GitHub, Salesforce, etc. Each of these tools can be added by it’s name by using `convert_action` helper.

Galadriel framework empowers you to use any tool from Composio, here’s how to do it:

### How to use

```python theme={null}
from galadriel.tools.composio_converter import convert_action
composio_weather_tool = convert_action(
    os.getenv("COMPOSIO_API_KEY"), "WEATHERMAP_WEATHER"
)

agent = CodeAgent(
    model=model,
    tools=[composio_weather_tool],
)
```

## Langchain Tools

Galadriel framework allows you to use any tool from Langchain.

### How to use

Take the following example where we convert the [langchain’s wikipedia](https://python.langchain.com/v0.1/docs/modules/tools/) tool:

```python theme={null}
from galadriel.core_agent import Tool
from langchain_community.tools import WikipediaQueryRun
from langchain_community.utilities import WikipediaAPIWrapper

api_wrapper = WikipediaAPIWrapper(top_k_results=1, doc_content_chars_max=100)
tool = WikipediaQueryRun(api_wrapper=api_wrapper)
wikipedia_tool = Tool.from_langchain(langchain_tool=tool)
```

## [Retriever](https://localhost:3000/galadriel-network/reference/utility_tools#retriever-tool) tool

Retriever provides access to loaded documents, which can be queried to retrieve knowledge.

### How to use

```python theme={null}
# Load documents: https://python.langchain.com/docs/tutorials/rag/#loading-documents
# Split documents: https://python.langchain.com/docs/tutorials/rag/#splitting-documents

retriever_tool = RetrieverTool(docs)
agent = CodeAgent(
    tools=[retriever_tool], model=model, max_steps=4, verbosity_level=2
)
```

Check out [Agentic RAG](/galadriel-network/tutorials/rag) where `RetrieverTool` is used to build an agent that leverages a knowledge base.

## Twitter/X Tools

Galadriel provided multiple tools to build Twitter/X agents:

* [`TwitterPostTool`](/galadriel-network/reference/twitter_tools#1-twitterposttool) for posting a new tweet
* [`TwitterRepliesTool`](/galadriel-network/reference/twitter_tools#3-twitterrepliestool) for replying to existing tweet
* [`TwitterGetPostTool`](/galadriel-network/reference/twitter_tools#4-twittergetposttool) for fetching a specific tweet by its ID
* [`TwitterSearchTool`](/galadriel-network/reference/twitter_tools#2-twittersearchtool) which searches tweets based on a provided query

## Conclusion

Galadriel provides a robust set of built-in tools, covering Web3, AI-powered integrations, retrieval-augmented generation, and social media automation. With support for external platforms like Composio and Langchain, the framework enables seamless interaction with a wide range of services. As new tools continue to be added, Galadriel remains a powerful and evolving solution for building AI-driven applications. Stay updated with the latest additions and enhancements by following the official repository.
