Skip to main content
Glama
bezata

kObsidian MCP

List Fenced Blocks

blocks.list
Read-onlyIdempotent

List fenced code blocks (dataview, dataviewjs, mermaid) in an Obsidian note or across the vault to discover what blocks exist before reading or updating them. Returns filePath, language, index, and id for each block. Read-only.

Instructions

List fenced code blocks of the supported knowledge-base languages (dataview, dataviewjs, mermaid) in a single note or across the vault. Use this to discover what DQL, DataviewJS, or Mermaid blocks exist before reading or updating them. Omit language to list blocks of all three types in one call. Vault-wide scanning is only supported for Mermaid; for Dataview languages a filePath is required. Returns {total, items} where each item carries at minimum {filePath, language, index, id?}. Read-only.

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
filePathNoScope the listing to a single note. Omit to scan the whole vault (slower; useful for discovery).
languageNoFilter to one language. Omit to list blocks of all supported languages.
vaultPathNoOverride the ambient OBSIDIAN_VAULT_PATH for this call. Rarely needed.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
totalYesNumber of blocks returned.
itemsYesThe listed blocks.
filePathNoEchoed from the input when a single-file scope was used.
Behavior5/5

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

Annotations declare readOnlyHint=true and destructiveHint=false, which the description echoes with 'Read-only'. Additionally, it reveals critical behavioral constraint: vault-wide scanning only for Mermaid, and describes the return format. No contradictions.

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

Conciseness5/5

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

Two paragraphs, front-loaded with the main action. Every sentence adds value; no wasted words. Efficiently covers purpose, usage, constraints, and return info.

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

Completeness5/5

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

Given the presence of an output schema (context signal), the description appropriately summarizes the return type. Covers all key aspects: what, when, how, constraints, and result shape. Complete for a discovery tool.

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

Parameters4/5

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

Schema coverage is 100% (baseline 3). The description adds meaning by explaining the effects of omitting filePath and language, and the vaultPath override context. Goes beyond schema definitions.

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 clearly states the verb 'List' and the resource 'fenced code blocks', specifies the supported languages, and distinguishes from siblings like blocks.read and blocks.update by positioning it as a discovery tool.

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?

Explicit guidance on when to use (before reading/updating), and how to adjust parameters (omit language for all, omit filePath for vault-wide but only for Mermaid). Missing explicit 'when not to use' but context is sufficient.

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

Install Server

Other Tools

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