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

# search_dql

> Run a Dataview DQL query via the companion plugin bridge.

Run a Dataview DQL query via the companion plugin bridge. Returns headers/rows and the matched note paths. Requires the Dataview bridge; reports plugin\_missing when it is not configured.

| | |
| - | - |
| **Domain** | search |
| **Scopes** | `read:notes`, `read:dataview` |
| **Access** | read |
| **Tags** | `read-only`, `plugin-bridge`, `domain:search` |
| **Profile** | core, full |

## Annotations

| Annotation | Value |
| - | - |
| Read-only | yes |
| Destructive | no |
| Idempotent | no |
| Accepts an idempotency key | no |

`Idempotent` is the advisory MCP `idempotentHint`. `Destructive` is also `yes` for a tool that
asks for confirmation only on some calls.

## Confirmation (human in the loop)

No human confirmation is required to call this tool.

## Input

| Parameter | Type | Required | Default | Description |
| - | - | - | - | - |
| `vault` | `string` | | — | Vault id. May be omitted when only one vault is available. length 1–64; pattern `^[a-z0-9_-]+$` |
| `dql` | `string` | yes | — | length ≥ 1 |
| `format` | `enum` | | `"table"` | One of: `"table"`, `"list"`, `"task"`, `"calendar"` |

## Output

| Field | Type | Always present | Description |
| - | - | - | - |
| `vault` | `string` | yes | — |
| `headers` | `string[]` | | — |
| `rows` | `any[][]` | yes | — |
| `note_paths` | `string[]` | yes | — |

## Related tools

Other tools in the `search` domain: [`query_datacore`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/query_datacore/), [`search`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/search/), [`search_and_read`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/search_and_read/), [`search_jsonlogic`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/search_jsonlogic/), [`search_omnisearch`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/search_omnisearch/), [`search_regex`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/search_regex/), [`search_semantic`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/search_semantic/), [`search_text`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/search_text/), [`search_vault`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/search_vault/).

Back to the [tool catalog](https://docs.the40thieves.dev/reliquary-tc/tools/tool-catalog.md).


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