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

# Data Source Tools

> Retrieval and search tools used by DZap AI.

## `RagOverDocsTool`

Retrieves relevant chunks from indexed DZap docs.

Input:

* `query: string`

Output:

* `documents[]` with `source`, `chunkIndex`, `text`, `score`

```ts theme={null}
await sdk.executeTool("RagOverDocsTool", {
  query: "How do I use DZap MCP over HTTP?",
});
```

Current indexed URLs:

* `https://docs.dzap.io/`
* `https://docs.dzap.io/sdk/overview`
* `https://docs.dzap.io/ai/mcp`
* `https://docs.dzap.io/api-reference/config/fetch-supported-providers`

## `WebSearchTool`

General/news search via Tavily.

Input fields:

* `query`
* `topic: "general" | "news"`
* `include_answer: boolean`
* `max_results: number`
* `time_range: "day" | "week" | "month" | "year" | "d" | "w" | "m" | "y"`
* `days: number`
* `search_depth: "basic" | "advanced"`

```ts theme={null}
await sdk.executeTool("WebSearchTool", {
  query: "latest ETH ETF flows",
  topic: "news",
  include_answer: true,
  max_results: 5,
  time_range: "week",
  days: 7,
  search_depth: "basic",
});
```

## External wrappers present in repo

The codebase also contains wrappers in `src/tools` that are currently not part of the exposed tool list:

* CoinStats wrapper
* Moralis wrapper
* Limit order helper

Related optional env vars:

* `COINSTATS_API_KEY`
* `MORALIS_API_KEY`
