Skip to main content
Glama
bezata

kObsidian MCP

by bezata

Run Dataview Table Query

dataview.table
Read-onlyIdempotent

Run Dataview TABLE queries on Obsidian vaults to get structured columnar data. Specify fields, optional filters, sorting, and limits for precise output.

Instructions

Convenience wrapper that runs TABLE field1, field2, … FROM … with optional WHERE, SORT, and LIMIT clauses. Use this when you need structured columnar output. Requires the Dataview and Local REST API plugins.

Operates on the session-active vault (see vault.current — selectable via vault.select) unless an explicit vaultPath argument is passed, which always wins.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoOptional `LIMIT` n clause.
fieldsYesField expressions to project as table columns (e.g. `file.name`, `priority`).
sortByNoOptional DQL `SORT` clause body (without the `SORT` keyword). Example: `file.ctime desc`.
fromClauseNoOptional DQL `FROM` clause body. Example: `#projects AND -#archive`.
whereClauseNoOptional DQL `WHERE` clause body (without the `WHERE` keyword).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Addedv0.3.5
  2. Removedv0.3.4
  3. Changed8 schema fields changedv0.1.2
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / description
      Added value: +"Sugar wrapper around `TABLE … FROM …`."
    • addedInput schema / properties / fields / description
      Added value: +"Field expressions to project as table columns (e.g. `file.name`, `priority`)."
    • addedInput schema / properties / fromClause / description
      Added value: +"Optional DQL `FROM` clause body. Example: `#projects AND -#archive`."
    • addedInput schema / properties / limit / description
      Added value: +"Optional `LIMIT` n clause."
    • addedInput schema / properties / sortBy / description
      Added value: +"Optional DQL `SORT` clause body (without the `SORT` keyword). Example: `file.ctime desc`."
    • addedInput schema / properties / whereClause / description
      Added value: +"Optional DQL `WHERE` clause body (without the `WHERE` keyword)."
    • addedOutput schema / description
      Added value: +"Freeform object. The specific shape depends on the tool; see the tool description."
  4. First observedv0.1.0

TDQS

A3.5/5.0
Behavior2/5

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

Annotations already cover readOnly, idempotent, openWorld, and non-destructive behavior, so the description adds value by mentioning plugin prerequisites and vault resolution semantics. However, it claims an explicit `vaultPath` argument 'always wins,' but that parameter is absent from the input schema and additionalProperties is false. This is a misleading behavioral claim that an agent cannot actually act on, which undermines transparency.

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?

The description is appropriately short and front-loaded: the first sentence defines the operation, the second gives the use case, the third gives prerequisites, and the final paragraph explains vault behavior. The vaultPath sentence is somewhat misleading and the vault.current/vault.select references add a small distraction, but overall the structure is compact and readable.

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?

The description covers the core purpose, prerequisites, vault resolution, and structured output, and the output schema plus annotations handle return values and safety. However, it leaves the vaultPath mismatch unresolved and does not clarify what happens when `fromClause` is omitted, which is relevant for correct invocation. These gaps prevent it from being fully complete.

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?

Schema description coverage is 100%, so the schema already documents all real parameters; the description only restates that WHERE, SORT, and LIMIT are optional, adding no new meaning. Worse, it introduces a phantom `vaultPath` parameter not present in the schema, actively confusing parameter expectations. This is a net negative beyond the baseline.

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

Purpose5/5

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

The description uses a specific verb ('runs') and names the exact DQL TABLE form it wraps. It also explicitly says 'structured columnar output,' which differentiates this tool from list-oriented siblings like dataview.listByTag and dataview.listByFolder. This is a clear, distinguishing statement of purpose.

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

Usage Guidelines4/5

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

It gives an explicit usage trigger: 'Use this when you need structured columnar output.' It also notes a prerequisite (Dataview and Local REST API plugins), which is useful for pre-call checks. However, it never names alternatives or explains when to prefer dataview.query or listByTag, so exclusions are left implied rather than stated.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bezata/kObsidian'

If you have feedback or need assistance with the MCP directory API, please join our Discord server