> ## 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.

# validate_dql

> Check a Dataview DQL query by running it through Dataview and reporting only whether it succeeded.

Check a Dataview DQL query by running it through Dataview and reporting only whether it succeeded. Returns `valid`; an invalid query also returns `error.message`. No rows are returned.

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

## 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 |

## Output

| Field | Type | Always present | Description |
| - | - | - | - |
| `valid` | `boolean` | yes | — |
| `error` | `object` | | — |
| `error.message` | `string` | with parent | — |
| `vault` | `string` | yes | — |

## Related tools

Other tools in the `automation` domain: [`bundle_files`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/bundle_files/), [`bundle_folder`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/bundle_folder/), [`eval_dataview_field`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/eval_dataview_field/), [`execute_command`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/execute_command/), [`execute_template`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/execute_template/), [`generate_uri`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/generate_uri/), [`list_commands`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/list_commands/), [`list_quickadd_actions`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/list_quickadd_actions/), [`list_tasks`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/list_tasks/), [`list_templates`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/list_templates/), [`makemd_list_spaces`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/makemd_list_spaces/), [`makemd_query`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/makemd_query/), [`remotely_save_status`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/remotely_save_status/), [`remotely_save_trigger`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/remotely_save_trigger/), [`show_file_in_obsidian`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/show_file_in_obsidian/), [`tasks_filter`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/tasks_filter/), [`trigger_quickadd`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/trigger_quickadd/), [`update_task`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/update_task/).

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.