Skip to main content
Glama
Obsidian MCP Server
by Kynlos

validate_dataview_query

Checks Dataview query syntax and flags invalid queries before execution, helping you catch errors early.

Instructions

Check if dataview query syntax is valid

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "validate_dataview_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesDataview query to validate

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0

TDQS

B3/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full behavioral burden; it does convey that this is a non-mutating check rather than an execution, which is the key trait. However, it never says whether validation parses only or touches the vault/dataview index, nor what a failing result looks like.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One front-loaded sentence with no filler; every word earns its place. It is terse to the point of under-specification, but not padded or disorganized.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple one-parameter tool this is minimally adequate, but with no output schema the description should state what a check returns (boolean, error message, parsed diagnostics) and whether execution occurs. Those gaps leave an agent unsure how to consume the result.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There is a single parameter with 100% schema coverage ('Dataview query to validate'), so the schema already does the work and the description adds no meaning beyond it. Nothing is said about query syntax expectations, length, or whether partial queries are accepted.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Check') and resource ('dataview query syntax') with the outcome ('valid'), so the operation is unambiguous. It does not explicitly contrast itself with the sibling execute_dataview_query, but the validate/execute distinction is clear enough from the naming.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use guidance appears beyond the implied 'before running a query'. The natural alternative, execute_dataview_query, is never mentioned, so an agent must infer on its own that this is the pre-flight check rather than the execution path.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools